Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_Pendulum",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_Pendulum",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009759/0.0009759, allocations: 87 kB / 16.65 MB, free: 6.535 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001032/0.001032, allocations: 176.2 kB / 17.56 MB, free: 6.18 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.297/1.297, allocations: 223.3 MB / 241.6 MB, free: 14.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000266/0.0002661, allocations: 8 kB / 301.5 MB, free: 5.785 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1073/0.1076, allocations: 50.41 MB / 351.9 MB, free: 3.363 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum): time 0.01263/0.1203, allocations: 13.51 MB / 365.5 MB, free: 5.793 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.009115/0.1294, allocations: 4.3 MB / 369.8 MB, free: 1.48 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00252/0.132, allocations: 59.81 kB / 369.8 MB, free: 1.422 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001091/0.1331, allocations: 270.8 kB / 370.1 MB, free: 1.156 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.1994/0.3326, allocations: 1.229 MB / 371.3 MB, free: 9.25 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001529/0.3341, allocations: 456.7 kB / 371.7 MB, free: 9.25 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005303/0.3395, allocations: 3.439 MB / 375.2 MB, free: 9.246 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002396/0.3419, allocations: 1.409 MB / 376.6 MB, free: 9.051 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001269/0.3432, allocations: 0.6307 MB / 377.2 MB, free: 9.023 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00171/0.3449, allocations: 1.152 MB / 378.4 MB, free: 8.879 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002417/0.3451, allocations: 77.06 kB / 378.5 MB, free: 8.879 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002103/0.3472, allocations: 0.8867 MB / 379.3 MB, free: 8.879 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001114/0.3484, allocations: 0.9638 MB / 380.3 MB, free: 8.762 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001067/0.3495, allocations: 1.17 MB / 381.5 MB, free: 8.262 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004287/0.3537, allocations: 3.706 MB / 385.2 MB, free: 7.184 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.3538, allocations: 0 / 385.2 MB, free: 7.184 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.3538, allocations: 0 / 385.2 MB, free: 7.184 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.533e-05/0.3538, allocations: 5.5 kB / 385.2 MB, free: 7.18 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 934 * Number of variables: 934 Notification: Performance of Generate backend data structure: time 0.004394/0.3582, allocations: 2.41 MB / 387.6 MB, free: 5.59 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.065e-05/0.3583, allocations: 9.188 kB / 387.6 MB, free: 5.59 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004932/0.3588, allocations: 450.3 kB / 388 MB, free: 5.445 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005865/0.3647, allocations: 1.696 MB / 389.7 MB, free: 4.645 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002559/0.3672, allocations: 1.617 MB / 391.4 MB, free: 3.957 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.044e-05/0.3673, allocations: 119 kB / 391.5 MB, free: 3.926 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003083/0.3677, allocations: 155.4 kB / 391.6 MB, free: 3.895 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007356/0.375, allocations: 6.378 MB / 398 MB, free: 12 kB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.988e-05/0.3751, allocations: 32.38 kB / 398 MB, free: 8 kB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002565/0.3754, allocations: 80.03 kB / 398.1 MB, free: 0 / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002341/0.3777, allocations: 1.438 MB / 399.6 MB, free: 14.76 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009601/0.3874, allocations: 5.696 MB / 405.2 MB, free: 9.211 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03111/0.4185, allocations: 26.27 MB / 431.5 MB, free: 14.28 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004483/0.423, allocations: 2.258 MB / 433.8 MB, free: 11.88 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001428/0.4245, allocations: 1.026 MB / 434.8 MB, free: 10.84 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.413e-05/0.4246, allocations: 10.89 kB / 434.8 MB, free: 10.83 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.582e-05/0.4246, allocations: 42.56 kB / 434.9 MB, free: 10.78 MB / 350.1 MB Notification: Performance of pre-optimization done (n=98): time 4.308e-06/0.4246, allocations: 0 / 434.9 MB, free: 10.78 MB / 350.1 MB Notification: Performance of matching and sorting (n=106): time 0.02153/0.4462, allocations: 8.557 MB / 443.4 MB, free: 2.09 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.349e-05/0.4463, allocations: 144.4 kB / 443.6 MB, free: 1.918 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004906/0.4512, allocations: 2.824 MB / 446.4 MB, free: 15.08 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 9.338e-05/0.4513, allocations: 41.7 kB / 446.4 MB, free: 15.03 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001576/0.4529, allocations: 2.069 MB / 448.5 MB, free: 12.96 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004449/0.4533, allocations: 440.1 kB / 448.9 MB, free: 12.54 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005666/0.4539, allocations: 375.3 kB / 449.3 MB, free: 12.16 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.339e-05/0.454, allocations: 309.1 kB / 449.6 MB, free: 11.86 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002275/0.4563, allocations: 1.406 MB / 451 MB, free: 10.45 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004214/0.4605, allocations: 4.232 MB / 455.2 MB, free: 4.785 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007021/0.4676, allocations: 6.13 MB / 461.4 MB, free: 13.26 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001314/0.4677, allocations: 28 kB / 461.4 MB, free: 13.23 MB / 382.1 MB Notification: Performance of matching and sorting (n=569) (initialization): time 0.01082/0.4785, allocations: 6.084 MB / 467.5 MB, free: 7.137 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.383e-05/0.4786, allocations: 48 kB / 467.5 MB, free: 7.09 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001507/0.4788, allocations: 100 kB / 467.6 MB, free: 6.992 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00228/0.4811, allocations: 0.7974 MB / 468.4 MB, free: 6.191 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00278/0.4839, allocations: 0.9863 MB / 469.4 MB, free: 5.203 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005458/0.4893, allocations: 4.154 MB / 473.5 MB, free: 0.918 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002968/0.4923, allocations: 239.6 kB / 473.8 MB, free: 0.6836 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004642/0.4928, allocations: 272 kB / 474 MB, free: 428 kB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 459 * Number of states: 0 () * Number of discrete variables: 18 (body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.cylinderColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (533): * Single equations (assignments): 529 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,11,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002475/0.4953, allocations: 1.382 MB / 475.4 MB, free: 15.03 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004924/0.4958, allocations: 232.9 kB / 475.7 MB, free: 14.8 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003988/0.4998, allocations: 1.849 MB / 477.5 MB, free: 12.93 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.542e-05/0.4998, allocations: 12.38 kB / 477.5 MB, free: 12.91 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.949e-06/0.4998, allocations: 4 kB / 477.5 MB, free: 12.91 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.345e-05/0.4999, allocations: 11.98 kB / 477.5 MB, free: 12.9 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009297/0.5092, allocations: 4.802 MB / 482.3 MB, free: 8.039 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-05/0.5092, allocations: 7.938 kB / 482.3 MB, free: 8.031 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006043/0.5098, allocations: 135.8 kB / 482.5 MB, free: 7.898 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002013/0.5118, allocations: 0.6483 MB / 483.1 MB, free: 7.246 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.557e-05/0.5119, allocations: 19.98 kB / 483.1 MB, free: 7.227 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004674/0.5166, allocations: 3.69 MB / 486.8 MB, free: 3.402 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.917e-06/0.5167, allocations: 4.031 kB / 486.8 MB, free: 3.398 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0058/0.5225, allocations: 3.688 MB / 490.5 MB, free: 15.68 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007985/0.5233, allocations: 290 kB / 490.8 MB, free: 15.38 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005334/0.5238, allocations: 22.33 kB / 490.8 MB, free: 15.36 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0012/0.525, allocations: 59.92 kB / 490.9 MB, free: 15.3 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001674/0.5252, allocations: 59.92 kB / 490.9 MB, free: 15.24 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.179e-05/0.5253, allocations: 32 kB / 491 MB, free: 15.21 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.003562/0.5289, allocations: 1.754 MB / 492.7 MB, free: 13.45 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.5289, allocations: 0 / 492.7 MB, free: 13.45 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003821/0.5327, allocations: 0.6542 MB / 493.4 MB, free: 12.79 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (rev.phi,rev.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (75): * Single equations (assignments): 71 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00661/0.5393, allocations: 4.324 MB / 497.7 MB, free: 8.426 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.006253/0.5456, allocations: 3.4 MB / 0.4894 GB, free: 5.043 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 6.953e-06/0.5456, allocations: 4.188 kB / 0.4894 GB, free: 5.039 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001468/0.5471, allocations: 0.9274 MB / 0.4903 GB, free: 4.098 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00255/0.5496, allocations: 247.7 kB / 0.4905 GB, free: 3.855 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2461/0.7958, allocations: 33.5 MB / 0.5232 GB, free: 142.3 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002324/0.7981, allocations: 2.185 MB / 0.5254 GB, free: 141.6 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003431/0.8016, allocations: 1.399 MB / 0.5267 GB, free: 141.6 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001513/0.8031, allocations: 1.054 MB / 0.5278 GB, free: 141.6 MB / 446.1 MB Notification: Performance of SimCode: time 1.243e-06/0.8031, allocations: 0 / 0.5278 GB, free: 141.6 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06781/0.8709, allocations: 43.12 MB / 0.5699 GB, free: 114.5 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001812/0.8712, allocations: 236.8 kB / 0.5701 GB, free: 114.2 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.566/4.437, allocations: 3.828 kB / 0.5701 GB, free: 114.2 MB / 446.1 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_Pendulum_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_Pendulum.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/Pendulum/Pendulum.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches