Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.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.001476/0.001476, allocations: 78.97 kB / 21.42 MB, free: 3.078 MB / 18.57 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.001106/0.001106, allocations: 150.5 kB / 24.81 MB, free: 9.285 MB / 18.57 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.9651/0.9651, allocations: 173.4 MB / 201.5 MB, free: 9.215 MB / 186.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.PendulumWithSpringDamper,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|prismatic.s|prismatic.v|revolute.phi|revolute.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|prismatic.s|prismatic.v|revolute.phi|revolute.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.773e-06/1.773e-06, allocations: 0 / 268.4 MB, free: 6.191 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.704e-05/2.881e-05, allocations: 2.312 kB / 268.4 MB, free: 6.188 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.009225/0.009254, allocations: 9.748 MB / 278.2 MB, free: 12.39 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.006752/0.01601, allocations: 3.773 MB / 281.9 MB, free: 8.605 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001699/0.01771, allocations: 59.75 kB / 282 MB, free: 8.547 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003125/0.02083, allocations: 2.199 MB / 284.2 MB, free: 6.34 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004476/0.02531, allocations: 1.753 MB / 286 MB, free: 4.578 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001471/0.02678, allocations: 0.7483 MB / 286.7 MB, free: 3.828 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.004482/0.03126, allocations: 3.708 MB / 290.4 MB, free: 112 kB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.132/0.1633, allocations: 2.539 MB / 292.9 MB, free: 15.39 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006153/0.1694, allocations: 1.997 MB / 294.9 MB, free: 15.39 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00495/0.1744, allocations: 1.855 MB / 296.8 MB, free: 15.39 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008488/0.1752, allocations: 259.3 kB / 297.1 MB, free: 15.39 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005898/0.1811, allocations: 1.062 MB / 298.1 MB, free: 15.39 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001609/0.1827, allocations: 1.69 MB / 299.8 MB, free: 15.23 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004054/0.1868, allocations: 1.06 MB / 300.9 MB, free: 15.05 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009092/0.1959, allocations: 4.025 MB / 304.9 MB, free: 13.74 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.1959, allocations: 3.938 kB / 304.9 MB, free: 13.73 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.72e-07/0.1959, allocations: 0 / 304.9 MB, free: 13.73 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001603/0.196, allocations: 3.219 kB / 304.9 MB, free: 13.73 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: 1349 * Number of variables: 1349 Notification: Performance of Generate backend data structure: time 0.008846/0.2049, allocations: 4.354 MB / 309.2 MB, free: 11.39 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.943e-05/0.2049, allocations: 15.52 kB / 309.3 MB, free: 11.38 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01014/0.2151, allocations: 1.374 MB / 310.6 MB, free: 10.94 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005372/0.2204, allocations: 1.546 MB / 312.2 MB, free: 10.16 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001338/0.2206, allocations: 206.5 kB / 312.4 MB, free: 10.09 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004107/0.221, allocations: 273.1 kB / 312.7 MB, free: 10.03 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007616/0.2286, allocations: 5.257 MB / 317.9 MB, free: 5.324 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.874e-05/0.2287, allocations: 43.23 kB / 318 MB, free: 5.305 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00029/0.229, allocations: 136.7 kB / 318.1 MB, free: 5.203 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001569/0.2305, allocations: 1.582 MB / 319.7 MB, free: 3.652 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006306/0.2368, allocations: 2.415 MB / 322.1 MB, free: 1.434 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03295/0.2698, allocations: 40.35 MB / 362.4 MB, free: 8.898 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005709/0.2755, allocations: 1.819 MB / 364.3 MB, free: 7.074 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008605/0.2763, allocations: 483.6 kB / 364.7 MB, free: 6.598 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005899/0.2822, allocations: 3.629 MB / 368.4 MB, free: 3.008 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.886e-05/0.2823, allocations: 46.05 kB / 368.4 MB, free: 2.953 MB / 314.7 MB Notification: Performance of pre-optimization done (n=135): time 3.897e-06/0.2823, allocations: 4 kB / 368.4 MB, free: 2.949 MB / 314.7 MB Notification: Performance of matching and sorting (n=145): time 0.0192/0.3015, allocations: 5.444 MB / 373.9 MB, free: 13.5 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.177e-05/0.3016, allocations: 148.7 kB / 374 MB, free: 13.32 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003976/0.3055, allocations: 3.113 MB / 377.1 MB, free: 10.69 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001116/0.3057, allocations: 45.7 kB / 377.2 MB, free: 10.64 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002307/0.308, allocations: 3.098 MB / 380.3 MB, free: 7.676 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006137/0.3086, allocations: 0.6231 MB / 380.9 MB, free: 7.082 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001534/0.3101, allocations: 1.235 MB / 382.1 MB, free: 5.953 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001289/0.3102, allocations: 476.8 kB / 382.6 MB, free: 5.484 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001276/0.3115, allocations: 0.5067 MB / 383.1 MB, free: 4.973 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004722/0.3162, allocations: 5.842 MB / 388.9 MB, free: 12.86 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007077/0.3233, allocations: 6.987 MB / 395.9 MB, free: 3.535 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001093/0.3234, allocations: 36 kB / 395.9 MB, free: 3.5 MB / 346.7 MB Notification: Performance of matching and sorting (n=736) (initialization): time 0.008643/0.3321, allocations: 4.532 MB / 400.5 MB, free: 14.96 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.163e-05/0.3321, allocations: 67.92 kB / 400.5 MB, free: 14.89 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001662/0.3323, allocations: 128 kB / 400.7 MB, free: 14.77 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007565/0.3331, allocations: 296.1 kB / 401 MB, free: 14.48 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003016/0.3361, allocations: 1.275 MB / 402.2 MB, free: 13.2 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001765/0.3378, allocations: 2.476 MB / 404.7 MB, free: 10.61 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002246/0.3401, allocations: 259.6 kB / 405 MB, free: 10.36 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002406/0.3403, allocations: 307.2 kB / 405.3 MB, free: 10.06 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 581 * Number of states: 0 () * Number of discrete variables: 36 (prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],damper1.color_b[3],damper1.color_b[2],damper1.color_b[1],damper1.color_a[3],damper1.color_a[2],damper1.color_a[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],bar1.color[3],bar1.color[2],bar1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[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 (706): * Single equations (assignments): 702 * 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,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0009796/0.3413, allocations: 0.6225 MB / 405.9 MB, free: 9.426 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002818/0.3416, allocations: 330 kB / 406.2 MB, free: 9.102 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001031/0.3426, allocations: 0.8601 MB / 407.1 MB, free: 8.23 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.374e-05/0.3426, allocations: 16 kB / 407.1 MB, free: 8.215 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.821e-06/0.3426, allocations: 4 kB / 407.1 MB, free: 8.211 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.185e-06/0.3427, allocations: 3.984 kB / 407.1 MB, free: 8.207 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004605/0.3473, allocations: 4.02 MB / 411.1 MB, free: 4.004 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.664e-06/0.3473, allocations: 4 kB / 411.1 MB, free: 4 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004304/0.3477, allocations: 199.7 kB / 411.3 MB, free: 3.805 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003596/0.3481, allocations: 148.1 kB / 411.5 MB, free: 3.656 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.891e-05/0.3481, allocations: 32 kB / 411.5 MB, free: 3.625 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001211/0.3493, allocations: 2.252 MB / 413.7 MB, free: 1.258 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.459e-06/0.3493, allocations: 8 kB / 413.7 MB, free: 1.25 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001572/0.3509, allocations: 2.013 MB / 415.8 MB, free: 15.09 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002203/0.3511, allocations: 265.9 kB / 416 MB, free: 14.83 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003861/0.3515, allocations: 39.98 kB / 416.1 MB, free: 14.79 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004839/0.352, allocations: 31.94 kB / 416.1 MB, free: 14.76 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.855e-05/0.3521, allocations: 104.3 kB / 416.2 MB, free: 14.66 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.949e-05/0.3521, allocations: 39.98 kB / 416.2 MB, free: 14.62 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0009188/0.3531, allocations: 1.227 MB / 417.5 MB, free: 13.39 MB / 378.7 MB Notification: Performance of sort global known variables: time 8e-08/0.3531, allocations: 0 / 417.5 MB, free: 13.39 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002238/0.3553, allocations: 0.871 MB / 418.3 MB, free: 12.52 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 31 * Number of states: 4 (revolute.phi,revolute.w,prismatic.s,prismatic.v) * 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 (121): * Single equations (assignments): 117 * 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,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002632/0.3556, allocations: 203.1 kB / 418.5 MB, free: 12.31 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002228/0.3578, allocations: 2.524 MB / 421 MB, free: 9.785 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.437e-06/0.3578, allocations: 4 kB / 421.1 MB, free: 9.781 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004688/0.3583, allocations: 0.5906 MB / 421.6 MB, free: 9.164 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009946/0.3592, allocations: 330.7 kB / 422 MB, free: 8.844 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006232/0.3655, allocations: 6.452 MB / 428.4 MB, free: 2.199 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000789/0.3663, allocations: 1.04 MB / 429.5 MB, free: 1.137 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0008798/0.3671, allocations: 452.1 kB / 429.9 MB, free: 0.6914 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008167/0.368, allocations: 0.5098 MB / 430.4 MB, free: 184 kB / 378.7 MB Notification: Performance of SimCode: time 6.21e-07/0.368, allocations: 0 / 430.4 MB, free: 184 kB / 378.7 MB Notification: Performance of Templates: time 0.1273/0.4952, allocations: 23.95 MB / 454.4 MB, free: 110.2 MB / 378.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/PendulumWithSpringDamper/PendulumWithSpringDamper.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.7174910488538444]