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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007248/0.0007248, allocations: 77.36 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001059/0.001784, allocations: 445.8 kB / 10.44 MB, free: 256 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0006462/0.0006462, allocations: 148.9 kB / 11.34 MB, free: 2.836 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001525/0.002171, allocations: 475.6 kB / 11.8 MB, free: 2.367 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9394/0.9394, allocations: 173.4 MB / 186 MB, free: 7.523 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1467/1.086, allocations: 52.49 MB / 238.5 MB, free: 7.617 MB / 234.7 MB " [Timeout remaining time 179] 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=5002,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=5002,variableFilter="time|rev.phi|rev.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.333e-06/1.333e-06, allocations: 0 / 239.7 MB, free: 6.348 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.617e-05/1.75e-05, allocations: 4.5 kB / 239.8 MB, free: 6.344 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum): time 0.005101/0.005119, allocations: 6.889 MB / 246.6 MB, free: 15.43 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.004182/0.009301, allocations: 3.178 MB / 249.8 MB, free: 12.26 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005335/0.009834, allocations: 40.44 kB / 249.9 MB, free: 12.22 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000985/0.01082, allocations: 0.8236 MB / 250.7 MB, free: 11.4 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001806/0.01263, allocations: 1.373 MB / 252.1 MB, free: 10.03 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006602/0.01329, allocations: 498.8 kB / 252.5 MB, free: 9.543 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.001953/0.01524, allocations: 2.738 MB / 255.3 MB, free: 6.801 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009634/0.0162, allocations: 1.171 MB / 256.5 MB, free: 5.609 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001034/0.01724, allocations: 1.277 MB / 257.7 MB, free: 4.328 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001031/0.01827, allocations: 1.2 MB / 258.9 MB, free: 3.125 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000161/0.01843, allocations: 136 kB / 259.1 MB, free: 2.992 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009701/0.0194, allocations: 0.8578 MB / 259.9 MB, free: 2.133 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005209/0.01992, allocations: 0.9661 MB / 260.9 MB, free: 1.164 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004059/0.02033, allocations: 0.5255 MB / 261.4 MB, free: 0.6367 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001806/0.02213, allocations: 2.568 MB / 264 MB, free: 14.05 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.987e-06/0.02214, allocations: 0 / 264 MB, free: 14.05 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.523e-06/0.02214, allocations: 4 kB / 264 MB, free: 14.05 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.292e-05/0.02217, allocations: 0 / 264 MB, free: 14.05 MB / 266.7 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.002697/0.02487, allocations: 3.196 MB / 267.2 MB, free: 10.8 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.993e-05/0.0249, allocations: 12.03 kB / 267.2 MB, free: 10.79 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001948/0.02685, allocations: 0.7888 MB / 268 MB, free: 9.996 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000966/0.02782, allocations: 0.9814 MB / 269 MB, free: 8.984 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.736e-05/0.02787, allocations: 119.2 kB / 269.1 MB, free: 8.867 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000184/0.02806, allocations: 159.8 kB / 269.2 MB, free: 8.711 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002632/0.03069, allocations: 3.109 MB / 272.3 MB, free: 5.07 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.333e-05/0.03073, allocations: 27.75 kB / 272.4 MB, free: 5.043 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001439/0.03088, allocations: 79.89 kB / 272.4 MB, free: 4.965 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009586/0.03184, allocations: 1.132 MB / 273.6 MB, free: 3.828 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002182/0.03402, allocations: 1.615 MB / 275.2 MB, free: 2.203 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01335/0.04736, allocations: 21.07 MB / 296.3 MB, free: 12.25 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001365/0.04873, allocations: 0.7334 MB / 297 MB, free: 11.48 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001946/0.04892, allocations: 171.8 kB / 297.2 MB, free: 11.3 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002194/0.05112, allocations: 1.766 MB / 298.9 MB, free: 9.516 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.707e-05/0.05114, allocations: 42.55 kB / 299 MB, free: 9.465 MB / 298.7 MB Notification: Performance of pre-optimization done (n=74): time 3.526e-06/0.05115, allocations: 0 / 299 MB, free: 9.465 MB / 298.7 MB Notification: Performance of matching and sorting (n=75): time 0.003551/0.0547, allocations: 1.682 MB / 300.7 MB, free: 7.746 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.276e-05/0.05475, allocations: 136.5 kB / 300.8 MB, free: 7.582 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001675/0.05643, allocations: 2.259 MB / 303.1 MB, free: 5.289 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.456e-05/0.05646, allocations: 33.7 kB / 303.1 MB, free: 5.25 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000936/0.0574, allocations: 2.151 MB / 305.2 MB, free: 3.078 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001825/0.05758, allocations: 345.5 kB / 305.6 MB, free: 2.738 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005668/0.05815, allocations: 0.8223 MB / 306.4 MB, free: 1.902 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.29e-05/0.05824, allocations: 353.8 kB / 306.7 MB, free: 1.551 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006576/0.0589, allocations: 0.4986 MB / 307.2 MB, free: 1.043 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0019/0.0608, allocations: 3.317 MB / 310.6 MB, free: 12.23 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003284/0.06408, allocations: 4.558 MB / 315.1 MB, free: 6.195 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.497e-05/0.06412, allocations: 32 kB / 315.1 MB, free: 6.164 MB / 314.7 MB Notification: Performance of matching and sorting (n=562) (initialization): time 0.002979/0.0671, allocations: 2.972 MB / 318.1 MB, free: 3.176 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.167e-05/0.06714, allocations: 48 kB / 318.2 MB, free: 3.129 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.058e-05/0.06722, allocations: 120.8 kB / 318.3 MB, free: 3.012 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002527/0.06747, allocations: 179.6 kB / 318.5 MB, free: 2.832 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001784/0.06925, allocations: 1.068 MB / 319.5 MB, free: 1.762 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009222/0.07018, allocations: 1.451 MB / 321 MB, free: 216 kB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001438/0.07161, allocations: 207.8 kB / 321.2 MB, free: 8 kB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002006/0.07181, allocations: 244.1 kB / 321.4 MB, free: 15.77 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 479 * Number of states: 0 () * Number of discrete variables: 18 (world.gravitySphereColor[1],world.gravitySphereColor[2],world.gravitySphereColor[3],world.groundColor[1],world.groundColor[2],world.groundColor[3],world.axisColor_x[1],world.axisColor_x[2],world.axisColor_x[3],world.gravityArrowColor[1],world.gravityArrowColor[2],world.gravityArrowColor[3],rev.cylinderColor[1],rev.cylinderColor[2],rev.cylinderColor[3],body.sphereColor[1],body.sphereColor[2],body.sphereColor[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (536): * Single equations (assignments): 532 * 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,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005694/0.07238, allocations: 480.2 kB / 321.9 MB, free: 15.29 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000162/0.07255, allocations: 127.8 kB / 322 MB, free: 15.16 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003962/0.07294, allocations: 344.1 kB / 322.3 MB, free: 14.81 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.213e-05/0.07295, allocations: 7.984 kB / 322.4 MB, free: 14.8 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.612e-06/0.07296, allocations: 4 kB / 322.4 MB, free: 14.8 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.835e-06/0.07297, allocations: 7.938 kB / 322.4 MB, free: 14.79 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002107/0.07508, allocations: 1.915 MB / 324.3 MB, free: 12.82 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.304e-05/0.07509, allocations: 11.98 kB / 324.3 MB, free: 12.81 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002214/0.07531, allocations: 88.06 kB / 324.4 MB, free: 12.72 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001692/0.07548, allocations: 198.4 kB / 324.6 MB, free: 12.53 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001225/0.0756, allocations: 39.64 kB / 324.6 MB, free: 12.48 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.933e-05/0.07563, allocations: 16 kB / 324.6 MB, free: 12.47 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001022/0.07665, allocations: 1.391 MB / 326 MB, free: 10.97 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.843e-06/0.07666, allocations: 0 / 326 MB, free: 10.97 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006987/0.07735, allocations: 1.041 MB / 327.1 MB, free: 9.887 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001069/0.07746, allocations: 12 kB / 327.1 MB, free: 9.875 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003229/0.07778, allocations: 11.98 kB / 327.1 MB, free: 9.863 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.645e-05/0.07784, allocations: 39.88 kB / 327.1 MB, free: 9.824 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.829e-05/0.07787, allocations: 20 kB / 327.1 MB, free: 9.805 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.000581/0.07845, allocations: 0.7832 MB / 327.9 MB, free: 9.004 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.07845, allocations: 3.938 kB / 327.9 MB, free: 9 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001642/0.08009, allocations: 0.6249 MB / 328.6 MB, free: 8.375 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 2 (rev.w,damper.phi_rel) * 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 (51): * Single equations (assignments): 47 * 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,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002545/0.08035, allocations: 148.1 kB / 328.7 MB, free: 8.223 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001599/0.08195, allocations: 1.773 MB / 330.5 MB, free: 6.465 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 9.64e-05/0.08204, allocations: 67.88 kB / 330.5 MB, free: 6.391 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003096/0.08235, allocations: 324 kB / 330.9 MB, free: 6.059 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001344/0.0837, allocations: 1.624 MB / 332.5 MB, free: 4.23 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09718/0.1809, allocations: 4.249 MB / 336.7 MB, free: 73.67 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001037/0.1819, allocations: 0.7059 MB / 337.4 MB, free: 73.55 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0008271/0.1827, allocations: 319.2 kB / 337.7 MB, free: 73.53 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003744/0.1831, allocations: 332.7 kB / 338.1 MB, free: 73.48 MB / 330.7 MB Notification: Performance of SimCode: time 1.382e-06/0.1831, allocations: 0 / 338.1 MB, free: 73.48 MB / 330.7 MB Notification: Performance of Templates: time 0.02246/0.2056, allocations: 14.42 MB / 352.5 MB, free: 70.02 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.makefile [Timeout 660] (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=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.8318723076954484]