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.001493/0.001493, allocations: 114.1 kB / 16.63 MB, free: 6.816 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.001761/0.001761, allocations: 189.8 kB / 17.55 MB, free: 5.93 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.283/1.283, allocations: 222.9 MB / 241.2 MB, free: 15.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009576/0.0009577, allocations: 42.94 kB / 300.2 MB, free: 6.082 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07942/0.0804, allocations: 49.44 MB / 349.7 MB, free: 4.633 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum): time 0.01295/0.09337, allocations: 14.08 MB / 363.8 MB, free: 6.484 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0076/0.101, allocations: 4.265 MB / 368 MB, free: 2.207 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001343/0.1024, allocations: 51.88 kB / 368.1 MB, free: 2.156 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001471/0.1039, allocations: 0.7437 MB / 368.8 MB, free: 1.41 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002193/0.1061, allocations: 1.236 MB / 370.1 MB, free: 176 kB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.1481/0.2542, allocations: 463.4 kB / 370.5 MB, free: 9.387 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003346/0.2576, allocations: 2.543 MB / 373.1 MB, free: 9.387 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001373/0.2589, allocations: 1.235 MB / 374.3 MB, free: 9.297 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008813/0.2598, allocations: 0.7622 MB / 375.1 MB, free: 9.258 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00134/0.2612, allocations: 1.248 MB / 376.3 MB, free: 9.113 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002173/0.2614, allocations: 134.5 kB / 376.4 MB, free: 9.113 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00146/0.2629, allocations: 0.8941 MB / 377.3 MB, free: 9.109 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009604/0.2639, allocations: 1.024 MB / 378.4 MB, free: 8.992 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009628/0.2648, allocations: 1.21 MB / 379.6 MB, free: 8.523 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003435/0.2683, allocations: 3.845 MB / 383.4 MB, free: 7.844 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.307e-06/0.2683, allocations: 0 / 383.4 MB, free: 7.844 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.184e-06/0.2683, allocations: 1.031 kB / 383.4 MB, free: 7.844 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.876e-05/0.2683, allocations: 2.719 kB / 383.4 MB, free: 7.844 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.00436/0.2727, allocations: 2.906 MB / 386.3 MB, free: 6.18 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.016e-05/0.2728, allocations: 9.281 kB / 386.3 MB, free: 6.18 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004448/0.2732, allocations: 452.1 kB / 386.8 MB, free: 5.898 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005372/0.2786, allocations: 1.65 MB / 388.4 MB, free: 5.047 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002373/0.281, allocations: 1.61 MB / 390 MB, free: 4.125 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.353e-05/0.2811, allocations: 122.8 kB / 390.2 MB, free: 4.094 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003207/0.2814, allocations: 161.7 kB / 390.3 MB, free: 4.059 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007538/0.289, allocations: 6.359 MB / 396.7 MB, free: 180 kB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.741e-05/0.289, allocations: 37.42 kB / 396.7 MB, free: 172 kB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002098/0.2892, allocations: 78.56 kB / 396.8 MB, free: 148 kB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002172/0.2914, allocations: 1.434 MB / 398.2 MB, free: 15.25 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008291/0.2997, allocations: 5.673 MB / 403.9 MB, free: 9.723 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02544/0.3252, allocations: 26.3 MB / 430.2 MB, free: 14.86 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004077/0.3293, allocations: 2.263 MB / 432.4 MB, free: 12.46 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00125/0.3306, allocations: 1.021 MB / 433.5 MB, free: 11.43 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.845e-05/0.3306, allocations: 14.41 kB / 433.5 MB, free: 11.41 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.297e-05/0.3307, allocations: 46.56 kB / 433.5 MB, free: 11.36 MB / 350.1 MB Notification: Performance of pre-optimization done (n=98): time 3.577e-06/0.3307, allocations: 0 / 433.5 MB, free: 11.36 MB / 350.1 MB Notification: Performance of matching and sorting (n=106): time 0.02077/0.3515, allocations: 8.584 MB / 442.1 MB, free: 2.645 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.463e-05/0.3516, allocations: 143.1 kB / 442.3 MB, free: 2.477 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004559/0.3561, allocations: 2.829 MB / 445.1 MB, free: 15.63 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.798e-05/0.3562, allocations: 37.7 kB / 445.1 MB, free: 15.59 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001364/0.3576, allocations: 2.07 MB / 447.2 MB, free: 13.52 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004217/0.358, allocations: 439.5 kB / 447.6 MB, free: 13.1 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001194/0.3592, allocations: 0.8834 MB / 448.5 MB, free: 12.2 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 7.853e-05/0.3593, allocations: 301.1 kB / 448.8 MB, free: 11.91 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001976/0.3613, allocations: 1.41 MB / 450.2 MB, free: 10.49 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003555/0.3649, allocations: 4.24 MB / 454.4 MB, free: 4.824 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005925/0.3708, allocations: 6.117 MB / 460.6 MB, free: 13.31 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.717e-05/0.3709, allocations: 28 kB / 460.6 MB, free: 13.28 MB / 382.1 MB Notification: Performance of matching and sorting (n=569) (initialization): time 0.009649/0.3805, allocations: 6.086 MB / 466.7 MB, free: 7.184 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.451e-05/0.3806, allocations: 48.97 kB / 466.7 MB, free: 7.137 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001047/0.3807, allocations: 100 kB / 466.8 MB, free: 7.039 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002138/0.3829, allocations: 0.8005 MB / 467.6 MB, free: 6.238 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002547/0.3854, allocations: 0.9903 MB / 468.6 MB, free: 5.246 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005344/0.3908, allocations: 4.471 MB / 473.1 MB, free: 0.6406 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002714/0.3935, allocations: 247.5 kB / 473.3 MB, free: 408 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003975/0.3939, allocations: 283.1 kB / 473.6 MB, free: 128 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.00212/0.3961, allocations: 1.368 MB / 475 MB, free: 14.75 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003912/0.3965, allocations: 233 kB / 475.2 MB, free: 14.52 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003601/0.4001, allocations: 1.849 MB / 477 MB, free: 12.65 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.171e-05/0.4001, allocations: 16 kB / 477.1 MB, free: 12.63 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.494e-06/0.4001, allocations: 7.938 kB / 477.1 MB, free: 12.62 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.113e-05/0.4001, allocations: 11.92 kB / 477.1 MB, free: 12.61 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007954/0.4081, allocations: 4.804 MB / 481.9 MB, free: 7.75 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.983e-06/0.4081, allocations: 0 / 481.9 MB, free: 7.75 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005929/0.4087, allocations: 131.8 kB / 482 MB, free: 7.621 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001906/0.4106, allocations: 0.6483 MB / 482.7 MB, free: 6.969 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.582e-05/0.4107, allocations: 23.12 kB / 482.7 MB, free: 6.949 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00472/0.4155, allocations: 3.942 MB / 486.6 MB, free: 2.859 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.916e-06/0.4155, allocations: 0 / 486.6 MB, free: 2.859 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005525/0.421, allocations: 3.686 MB / 490.3 MB, free: 15.14 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006513/0.4217, allocations: 293.9 kB / 490.6 MB, free: 14.84 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000392/0.4221, allocations: 23.33 kB / 490.6 MB, free: 14.82 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009743/0.4231, allocations: 59.92 kB / 490.7 MB, free: 14.76 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001741/0.4232, allocations: 63.8 kB / 490.7 MB, free: 14.7 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.352e-05/0.4233, allocations: 32.27 kB / 490.8 MB, free: 14.66 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.003376/0.4267, allocations: 1.758 MB / 492.5 MB, free: 12.9 MB / 414.1 MB Notification: Performance of sort global known variables: time 3.21e-07/0.4267, allocations: 0 / 492.5 MB, free: 12.9 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003572/0.4303, allocations: 0.6406 MB / 493.2 MB, free: 12.26 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.005859/0.4362, allocations: 4.332 MB / 497.5 MB, free: 7.883 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.005292/0.4415, allocations: 3.62 MB / 0.4894 GB, free: 4.277 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.437e-06/0.4415, allocations: 0 / 0.4894 GB, free: 4.277 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001149/0.4427, allocations: 0.9308 MB / 0.4903 GB, free: 3.336 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00167/0.4443, allocations: 260.5 kB / 0.4905 GB, free: 3.082 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1909/0.6353, allocations: 33.43 MB / 0.5232 GB, free: 152 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002077/0.6374, allocations: 2.186 MB / 0.5253 GB, free: 151.3 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003186/0.6406, allocations: 1.399 MB / 0.5267 GB, free: 151.3 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001149/0.6417, allocations: 1.049 MB / 0.5277 GB, free: 151.3 MB / 446.1 MB Notification: Performance of SimCode: time 9.72e-07/0.6417, allocations: 3.625 kB / 0.5277 GB, free: 151.3 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9001/1.542, allocations: 44.4 MB / 0.5711 GB, free: 120 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001913/1.542, allocations: 226.8 kB / 0.5713 GB, free: 119.7 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.946/4.488, allocations: 0 / 0.5713 GB, free: 119.7 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