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: translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|rev.phi|rev.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|rev.phi|rev.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001185/0.001185, allocations: 104.2 kB / 17.59 MB, free: 5.559 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.001219/0.001219, allocations: 191.4 kB / 18.51 MB, free: 4.641 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.409/1.409, allocations: 222.9 MB / 242.2 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00121/0.001211, allocations: 58.19 kB / 301.3 MB, free: 5.863 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1098/0.111, allocations: 49.44 MB / 350.7 MB, free: 4.418 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum): time 0.00864/0.1197, allocations: 7.104 MB / 357.8 MB, free: 13.27 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006567/0.1263, allocations: 3.162 MB / 361 MB, free: 10.1 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001218/0.1276, allocations: 35.88 kB / 361 MB, free: 10.06 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00211/0.1297, allocations: 0.7859 MB / 361.8 MB, free: 9.273 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003863/0.1336, allocations: 1.319 MB / 363.1 MB, free: 7.949 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001382/0.135, allocations: 0.4912 MB / 363.6 MB, free: 7.457 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003883/0.1389, allocations: 2.523 MB / 366.2 MB, free: 4.93 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002031/0.141, allocations: 1.157 MB / 367.3 MB, free: 3.762 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001582/0.1426, allocations: 0.7666 MB / 368.1 MB, free: 2.992 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001871/0.1445, allocations: 1.102 MB / 369.2 MB, free: 1.887 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005456/0.145, allocations: 132 kB / 369.3 MB, free: 1.758 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00198/0.147, allocations: 0.8775 MB / 370.2 MB, free: 0.8789 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.2215/0.3686, allocations: 0.997 MB / 371.2 MB, free: 11.78 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003589/0.3722, allocations: 1.192 MB / 372.4 MB, free: 11.47 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008968/0.3812, allocations: 3.788 MB / 376.2 MB, free: 10.93 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.345e-06/0.3812, allocations: 3.281 kB / 376.2 MB, free: 10.93 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.166e-06/0.3812, allocations: 1.625 kB / 376.2 MB, free: 10.93 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0002465/0.3815, allocations: 0.6875 kB / 376.2 MB, free: 10.93 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.01144/0.3929, allocations: 2.876 MB / 379 MB, free: 9.656 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.511e-05/0.393, allocations: 11.22 kB / 379.1 MB, free: 9.656 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007519/0.4005, allocations: 1.636 MB / 380.7 MB, free: 9.488 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005684/0.4063, allocations: 1.324 MB / 382 MB, free: 9.078 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003102/0.4066, allocations: 113.5 kB / 382.1 MB, free: 9.074 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001493/0.4082, allocations: 160.2 kB / 382.3 MB, free: 9.066 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01572/0.4239, allocations: 6.366 MB / 388.6 MB, free: 6.562 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001866/0.4241, allocations: 25.38 kB / 388.7 MB, free: 6.562 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008363/0.425, allocations: 86.8 kB / 388.8 MB, free: 6.535 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002885/0.4279, allocations: 1.43 MB / 390.2 MB, free: 6.316 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01161/0.4395, allocations: 5.681 MB / 395.9 MB, free: 4.176 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03709/0.4767, allocations: 26.29 MB / 422.2 MB, free: 10.95 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00499/0.4817, allocations: 2.266 MB / 424.4 MB, free: 8.547 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001572/0.4833, allocations: 1.018 MB / 425.4 MB, free: 7.516 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.309e-05/0.4834, allocations: 6.734 kB / 425.5 MB, free: 7.512 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.659e-05/0.4835, allocations: 45.38 kB / 425.5 MB, free: 7.461 MB / 334.1 MB Notification: Performance of pre-optimization done (n=98): time 4.829e-06/0.4835, allocations: 8 kB / 425.5 MB, free: 7.453 MB / 334.1 MB Notification: Performance of matching and sorting (n=106): time 0.02522/0.5087, allocations: 8.584 MB / 434.1 MB, free: 14.77 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.912e-05/0.5089, allocations: 136.5 kB / 434.2 MB, free: 14.61 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006139/0.515, allocations: 2.819 MB / 437 MB, free: 11.77 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003738/0.5155, allocations: 41.7 kB / 437.1 MB, free: 11.72 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002038/0.5175, allocations: 2.068 MB / 439.2 MB, free: 9.66 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008205/0.5183, allocations: 435.4 kB / 439.6 MB, free: 9.238 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002128/0.5205, allocations: 0.8848 MB / 440.5 MB, free: 8.34 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000117/0.5206, allocations: 305.1 kB / 440.8 MB, free: 8.039 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002551/0.5232, allocations: 1.414 MB / 442.2 MB, free: 6.617 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004892/0.5281, allocations: 4.25 MB / 446.4 MB, free: 0.9883 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008182/0.5363, allocations: 6.135 MB / 452.6 MB, free: 9.844 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.82e-05/0.5365, allocations: 31.31 kB / 452.6 MB, free: 9.816 MB / 366.1 MB Notification: Performance of matching and sorting (n=573) (initialization): time 0.01392/0.5504, allocations: 6.108 MB / 458.7 MB, free: 3.703 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.375e-05/0.5505, allocations: 48.94 kB / 458.7 MB, free: 3.656 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001274/0.5507, allocations: 100 kB / 458.8 MB, free: 3.559 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002517/0.5532, allocations: 0.7967 MB / 459.6 MB, free: 2.758 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003548/0.5568, allocations: 0.9981 MB / 460.6 MB, free: 1.758 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006131/0.5629, allocations: 4.469 MB / 465.1 MB, free: 13.16 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003948/0.5669, allocations: 251.5 kB / 465.4 MB, free: 12.91 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001018/0.568, allocations: 276 kB / 465.6 MB, free: 12.64 MB / 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 (537): * Single equations (assignments): 533 * 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.003199/0.5712, allocations: 1.374 MB / 467 MB, free: 11.26 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005979/0.5718, allocations: 229 kB / 467.2 MB, free: 11.03 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004266/0.5761, allocations: 1.853 MB / 469.1 MB, free: 9.16 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.492e-05/0.5762, allocations: 16 kB / 469.1 MB, free: 9.145 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.267e-05/0.5762, allocations: 4 kB / 469.1 MB, free: 9.141 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.892e-05/0.5762, allocations: 7.922 kB / 469.1 MB, free: 9.133 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01093/0.5872, allocations: 4.79 MB / 473.9 MB, free: 4.285 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-05/0.5872, allocations: 8 kB / 473.9 MB, free: 4.277 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006894/0.5879, allocations: 139.8 kB / 474 MB, free: 4.141 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002026/0.59, allocations: 0.6497 MB / 474.7 MB, free: 3.488 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000118/0.5901, allocations: 16 kB / 474.7 MB, free: 3.473 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005125/0.5952, allocations: 3.96 MB / 478.7 MB, free: 15.37 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.819e-06/0.5953, allocations: 4.031 kB / 478.7 MB, free: 15.37 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006156/0.6014, allocations: 3.676 MB / 482.3 MB, free: 11.66 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009543/0.6024, allocations: 294 kB / 482.6 MB, free: 11.36 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003316/0.6028, allocations: 20.06 kB / 482.6 MB, free: 11.34 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000974/0.6038, allocations: 63.91 kB / 482.7 MB, free: 11.27 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001956/0.604, allocations: 63.8 kB / 482.8 MB, free: 11.21 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.837e-05/0.6041, allocations: 26.5 kB / 482.8 MB, free: 11.19 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.003204/0.6073, allocations: 1.758 MB / 484.6 MB, free: 9.422 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.6073, allocations: 0 / 484.6 MB, free: 9.422 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.004827/0.6121, allocations: 0.6406 MB / 485.2 MB, free: 8.781 MB / 398.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.0005876/0.6128, allocations: 154 kB / 485.3 MB, free: 8.625 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.007717/0.6205, allocations: 3.631 MB / 489 MB, free: 5 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 6.201e-06/0.6205, allocations: 0 / 489 MB, free: 5 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001383/0.6219, allocations: 0.9286 MB / 489.9 MB, free: 4.059 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002072/0.624, allocations: 256.5 kB / 490.2 MB, free: 3.809 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01116/0.6352, allocations: 5.773 MB / 495.9 MB, free: 13.99 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002468/0.6377, allocations: 2.184 MB / 498.1 MB, free: 11.77 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007044/0.6384, allocations: 203.3 kB / 498.3 MB, free: 11.57 MB / 414.1 MB Notification: Performance of SimCode: time 8.92e-07/0.6385, allocations: 0 / 498.3 MB, free: 11.57 MB / 414.1 MB Notification: Performance of Templates: time 0.2707/0.9092, allocations: 47.09 MB / 0.5326 GB, free: 150.5 MB / 446.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.makefile (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 & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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