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.001077/0.001077, allocations: 113.5 kB / 17.06 MB, free: 5.992 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.001129/0.00113, allocations: 200 kB / 18.01 MB, free: 5.066 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.322/1.322, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009061/0.0009061, allocations: 47.92 kB / 351.3 MB, free: 3.234 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.233/0.2339, allocations: 49.43 MB / 400.7 MB, free: 8.746 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum): time 0.007525/0.2415, allocations: 7.108 MB / 407.8 MB, free: 1.734 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00511/0.2466, allocations: 3.158 MB / 411 MB, free: 14.57 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005292/0.2472, allocations: 31.88 kB / 411 MB, free: 14.54 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001569/0.2488, allocations: 0.7898 MB / 411.8 MB, free: 13.74 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002687/0.2515, allocations: 1.321 MB / 413.1 MB, free: 12.41 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001031/0.2525, allocations: 498.9 kB / 413.6 MB, free: 11.93 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00277/0.2553, allocations: 2.53 MB / 416.2 MB, free: 9.391 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001203/0.2565, allocations: 1.161 MB / 417.3 MB, free: 8.207 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007247/0.2573, allocations: 0.751 MB / 418.1 MB, free: 7.453 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001181/0.2585, allocations: 1.102 MB / 419.2 MB, free: 6.348 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002383/0.2587, allocations: 140 kB / 419.3 MB, free: 6.211 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001384/0.2601, allocations: 0.8775 MB / 420.2 MB, free: 5.332 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007846/0.2609, allocations: 0.9972 MB / 421.2 MB, free: 4.332 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009486/0.2619, allocations: 1.195 MB / 422.4 MB, free: 3.129 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00369/0.2655, allocations: 3.983 MB / 426.4 MB, free: 15.13 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.2656, allocations: 3.938 kB / 426.4 MB, free: 15.13 MB / 350.1 MB Notification: Performance of FrontEnd: time 4.83e-06/0.2656, allocations: 0 / 426.4 MB, free: 15.13 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.723e-05/0.2656, allocations: 3.938 kB / 426.4 MB, free: 15.12 MB / 350.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.004417/0.27, allocations: 2.956 MB / 429.3 MB, free: 12.11 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.904e-05/0.2701, allocations: 8.031 kB / 429.3 MB, free: 12.1 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006115/0.2762, allocations: 1.66 MB / 431 MB, free: 10.43 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002292/0.2785, allocations: 1.34 MB / 432.3 MB, free: 9.051 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.204e-05/0.2786, allocations: 114.9 kB / 432.4 MB, free: 8.938 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002843/0.2789, allocations: 151.9 kB / 432.6 MB, free: 8.789 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008342/0.2873, allocations: 6.363 MB / 438.9 MB, free: 1.902 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.79e-05/0.2874, allocations: 31.7 kB / 439 MB, free: 1.871 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002409/0.2876, allocations: 83.88 kB / 439.1 MB, free: 1.789 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002431/0.2901, allocations: 1.437 MB / 440.5 MB, free: 364 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008952/0.299, allocations: 5.67 MB / 446.2 MB, free: 10.67 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02555/0.3246, allocations: 26.25 MB / 472.4 MB, free: 15.59 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004114/0.3287, allocations: 2.258 MB / 474.7 MB, free: 13.19 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001209/0.33, allocations: 1.027 MB / 475.7 MB, free: 12.15 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.643e-05/0.33, allocations: 19.92 kB / 475.7 MB, free: 12.13 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.392e-05/0.3301, allocations: 38.56 kB / 475.8 MB, free: 12.08 MB / 398.1 MB Notification: Performance of pre-optimization done (n=98): time 2.956e-06/0.3301, allocations: 0 / 475.8 MB, free: 12.08 MB / 398.1 MB Notification: Performance of matching and sorting (n=106): time 0.02032/0.3504, allocations: 8.715 MB / 484.5 MB, free: 3.234 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.635e-05/0.3505, allocations: 144.5 kB / 484.6 MB, free: 3.062 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003941/0.3545, allocations: 2.832 MB / 487.4 MB, free: 220 kB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001388/0.3546, allocations: 37.7 kB / 487.5 MB, free: 176 kB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001416/0.356, allocations: 2.163 MB / 489.6 MB, free: 13.99 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004137/0.3565, allocations: 460.7 kB / 490.1 MB, free: 13.54 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00103/0.3575, allocations: 0.8855 MB / 491 MB, free: 12.64 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 9.398e-05/0.3576, allocations: 301.1 kB / 491.3 MB, free: 12.34 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002012/0.3596, allocations: 1.418 MB / 492.7 MB, free: 10.91 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003751/0.3634, allocations: 4.246 MB / 496.9 MB, free: 5.238 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005983/0.3694, allocations: 6.141 MB / 0.4913 GB, free: 13.69 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.855e-05/0.3694, allocations: 32 kB / 0.4913 GB, free: 13.66 MB / 430.1 MB Notification: Performance of matching and sorting (n=573) (initialization): time 0.009465/0.3789, allocations: 6.111 MB / 0.4973 GB, free: 7.539 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.096e-05/0.379, allocations: 48 kB / 0.4973 GB, free: 7.492 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.946e-05/0.3791, allocations: 100 kB / 0.4974 GB, free: 7.395 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002223/0.3813, allocations: 0.8088 MB / 0.4982 GB, free: 6.582 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002836/0.3842, allocations: 0.9864 MB / 0.4992 GB, free: 5.594 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005651/0.3898, allocations: 4.475 MB / 0.5036 GB, free: 0.9805 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003283/0.3931, allocations: 239.7 kB / 0.5038 GB, free: 0.7461 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004481/0.3936, allocations: 280 kB / 0.5041 GB, free: 484 kB / 430.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.002041/0.3957, allocations: 1.369 MB / 0.5054 GB, free: 15.09 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004141/0.3961, allocations: 246.4 kB / 0.5056 GB, free: 14.85 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003842/0.3999, allocations: 1.845 MB / 0.5074 GB, free: 12.98 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.549e-05/0.4, allocations: 23.94 kB / 0.5074 GB, free: 12.96 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.133e-06/0.4, allocations: 0 / 0.5074 GB, free: 12.96 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.347e-05/0.4, allocations: 7.984 kB / 0.5075 GB, free: 12.95 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00804/0.4081, allocations: 4.803 MB / 0.5121 GB, free: 8.074 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.061e-05/0.4081, allocations: 4.359 kB / 0.5122 GB, free: 8.07 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006104/0.4087, allocations: 131.9 kB / 0.5123 GB, free: 7.941 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001985/0.4107, allocations: 0.656 MB / 0.5129 GB, free: 7.281 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.338e-05/0.4108, allocations: 16 kB / 0.5129 GB, free: 7.266 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00497/0.4158, allocations: 3.953 MB / 0.5168 GB, free: 3.172 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.345e-06/0.4158, allocations: 0 / 0.5168 GB, free: 3.172 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00572/0.4215, allocations: 3.698 MB / 0.5204 GB, free: 15.45 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006022/0.4222, allocations: 303.3 kB / 0.5207 GB, free: 15.13 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002263/0.4224, allocations: 19.94 kB / 0.5207 GB, free: 15.11 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000845/0.4232, allocations: 63.91 kB / 0.5208 GB, free: 15.05 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001548/0.4234, allocations: 48 kB / 0.5208 GB, free: 15 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.665e-05/0.4235, allocations: 39.98 kB / 0.5209 GB, free: 14.96 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002439/0.4259, allocations: 1.746 MB / 0.5226 GB, free: 13.21 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.855e-06/0.426, allocations: 0 / 0.5226 GB, free: 13.21 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003077/0.429, allocations: 0.6561 MB / 0.5232 GB, free: 12.55 MB / 462.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.0003247/0.4294, allocations: 155.7 kB / 0.5234 GB, free: 12.39 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.00494/0.4343, allocations: 3.42 MB / 0.5267 GB, free: 8.98 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.35e-06/0.4344, allocations: 0 / 0.5267 GB, free: 8.98 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001147/0.4355, allocations: 0.9315 MB / 0.5276 GB, free: 8.035 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001465/0.437, allocations: 268.3 kB / 0.5279 GB, free: 7.773 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007636/0.4446, allocations: 5.502 MB / 0.5332 GB, free: 2.219 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002042/0.4467, allocations: 2.184 MB / 0.5354 GB, free: 0 / 462.1 MB Notification: Performance of simCode: alias equations: time 0.2088/0.6555, allocations: 1.393 MB / 0.5367 GB, free: 130 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005097/0.656, allocations: 160.9 kB / 0.5369 GB, free: 130 MB / 462.1 MB Notification: Performance of SimCode: time 6.22e-07/0.656, allocations: 0 / 0.5369 GB, free: 130 MB / 462.1 MB Notification: Performance of Templates: time 0.03222/0.6883, allocations: 20.71 MB / 0.5571 GB, free: 117.5 MB / 462.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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/Pendulum/Pendulum.csv","/var/lib/jenkins/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