Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001147/0.001147, allocations: 78.66 kB / 21.42 MB, free: 3.074 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001721/0.001721, allocations: 165.8 kB / 24.82 MB, free: 9.266 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1/1, allocations: 177.1 MB / 205.3 MB, free: 5.473 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.754e-06/1.754e-06, allocations: 0 / 273.4 MB, free: 1.254 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.146e-05/2.321e-05, allocations: 2.312 kB / 273.4 MB, free: 1.25 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.01149/0.01151, allocations: 9.716 MB / 283.1 MB, free: 7.492 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.007659/0.01917, allocations: 3.781 MB / 286.9 MB, free: 3.699 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00146/0.02063, allocations: 63.69 kB / 287 MB, free: 3.637 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003613/0.02424, allocations: 2.188 MB / 289.2 MB, free: 1.441 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.1089/0.1332, allocations: 1.719 MB / 290.9 MB, free: 14.88 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00141/0.1346, allocations: 0.7434 MB / 291.6 MB, free: 14.88 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.004207/0.1388, allocations: 3.768 MB / 295.4 MB, free: 14.42 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002971/0.1417, allocations: 2.533 MB / 297.9 MB, free: 14.17 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003255/0.145, allocations: 1.979 MB / 299.9 MB, free: 13.79 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002559/0.1476, allocations: 1.858 MB / 301.8 MB, free: 13.46 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006954/0.1482, allocations: 259.9 kB / 302 MB, free: 13.46 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001703/0.15, allocations: 1.045 MB / 303.1 MB, free: 13.34 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001126/0.1511, allocations: 1.659 MB / 304.7 MB, free: 12.67 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00137/0.1524, allocations: 1.049 MB / 305.8 MB, free: 12.22 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003947/0.1564, allocations: 3.968 MB / 309.7 MB, free: 10.34 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.511e-06/0.1564, allocations: 2.875 kB / 309.7 MB, free: 10.34 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.11e-07/0.1564, allocations: 0 / 309.7 MB, free: 10.34 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001798/0.1566, allocations: 0.5938 kB / 309.7 MB, free: 10.34 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.005027/0.1616, allocations: 4.347 MB / 314.1 MB, free: 6.758 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.775e-05/0.1617, allocations: 12.02 kB / 314.1 MB, free: 6.746 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002845/0.1645, allocations: 1.367 MB / 315.5 MB, free: 5.41 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00173/0.1662, allocations: 1.545 MB / 317 MB, free: 3.98 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.694e-05/0.1663, allocations: 207.5 kB / 317.2 MB, free: 3.809 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002793/0.1666, allocations: 271.5 kB / 317.5 MB, free: 3.578 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006468/0.1731, allocations: 5.281 MB / 322.8 MB, free: 13.78 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.178e-05/0.1731, allocations: 38.52 kB / 322.8 MB, free: 13.76 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002379/0.1734, allocations: 133.9 kB / 322.9 MB, free: 13.66 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001341/0.1747, allocations: 1.585 MB / 324.5 MB, free: 12.11 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005338/0.1801, allocations: 2.429 MB / 326.9 MB, free: 9.867 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02586/0.2059, allocations: 40.35 MB / 367.3 MB, free: 1.328 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003846/0.2098, allocations: 1.836 MB / 369.1 MB, free: 15.49 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005587/0.2103, allocations: 485.9 kB / 369.6 MB, free: 15.01 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004413/0.2147, allocations: 3.651 MB / 373.3 MB, free: 11.4 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.17e-05/0.2148, allocations: 53.14 kB / 373.3 MB, free: 11.34 MB / 330.7 MB Notification: Performance of pre-optimization done (n=135): time 3.156e-06/0.2148, allocations: 0 / 373.3 MB, free: 11.34 MB / 330.7 MB Notification: Performance of matching and sorting (n=145): time 0.01213/0.2269, allocations: 5.452 MB / 378.8 MB, free: 5.875 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.803e-05/0.227, allocations: 149.2 kB / 378.9 MB, free: 5.703 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003528/0.2305, allocations: 3.106 MB / 382 MB, free: 2.988 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000156/0.2307, allocations: 45.7 kB / 382.1 MB, free: 2.938 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001512/0.2322, allocations: 3.103 MB / 385.2 MB, free: 15.8 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004709/0.2326, allocations: 0.6165 MB / 385.8 MB, free: 15.18 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001255/0.2339, allocations: 1.239 MB / 387 MB, free: 13.92 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.487e-05/0.234, allocations: 484.7 kB / 387.5 MB, free: 13.45 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008023/0.2348, allocations: 0.5028 MB / 388 MB, free: 12.94 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003565/0.2384, allocations: 5.839 MB / 393.8 MB, free: 4.691 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004919/0.2433, allocations: 6.987 MB / 400.8 MB, free: 11.29 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.336e-05/0.2434, allocations: 36 kB / 400.8 MB, free: 11.25 MB / 362.7 MB Notification: Performance of matching and sorting (n=736) (initialization): time 0.006255/0.2496, allocations: 4.532 MB / 405.4 MB, free: 6.723 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.021e-05/0.2497, allocations: 64.91 kB / 405.4 MB, free: 6.66 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001143/0.2498, allocations: 128 kB / 405.6 MB, free: 6.535 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005585/0.2503, allocations: 299.5 kB / 405.9 MB, free: 6.238 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002115/0.2525, allocations: 1.275 MB / 407.1 MB, free: 4.961 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00165/0.2541, allocations: 2.469 MB / 409.6 MB, free: 2.383 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002182/0.2563, allocations: 263.7 kB / 409.9 MB, free: 2.125 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002828/0.2566, allocations: 300 kB / 410.2 MB, free: 1.832 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.0009894/0.2576, allocations: 0.6302 MB / 410.8 MB, free: 1.188 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006407/0.2582, allocations: 326.1 kB / 411.1 MB, free: 0.8672 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001075/0.2593, allocations: 0.8554 MB / 412 MB, free: 15.99 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.742e-05/0.2593, allocations: 16 kB / 412 MB, free: 15.98 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.214e-06/0.2593, allocations: 4 kB / 412 MB, free: 15.97 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.336e-06/0.2593, allocations: 7.875 kB / 412 MB, free: 15.97 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005852/0.2652, allocations: 4.004 MB / 416 MB, free: 11.78 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.26e-05/0.2652, allocations: 8.844 kB / 416 MB, free: 11.77 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007311/0.2659, allocations: 203.7 kB / 416.2 MB, free: 11.57 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005322/0.2664, allocations: 146 kB / 416.3 MB, free: 11.43 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.802e-05/0.2665, allocations: 36 kB / 416.4 MB, free: 11.39 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002046/0.2686, allocations: 2.247 MB / 418.6 MB, free: 9.035 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.071e-06/0.2686, allocations: 11.94 kB / 418.6 MB, free: 9.023 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002102/0.2707, allocations: 2.016 MB / 420.7 MB, free: 6.859 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004284/0.2711, allocations: 269.9 kB / 420.9 MB, free: 6.594 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001726/0.2713, allocations: 40.11 kB / 421 MB, free: 6.555 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005167/0.2718, allocations: 35.94 kB / 421 MB, free: 6.52 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001089/0.2719, allocations: 104.3 kB / 421.1 MB, free: 6.418 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.681e-05/0.272, allocations: 43.98 kB / 421.1 MB, free: 6.375 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001225/0.2732, allocations: 1.219 MB / 422.4 MB, free: 5.156 MB / 378.7 MB Notification: Performance of sort global known variables: time 8e-08/0.2732, allocations: 0 / 422.4 MB, free: 5.156 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002914/0.2761, allocations: 0.8553 MB / 423.2 MB, free: 4.301 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.0003082/0.2764, allocations: 182.8 kB / 423.4 MB, free: 4.113 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003296/0.2797, allocations: 2.523 MB / 425.9 MB, free: 1.586 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.099e-06/0.2797, allocations: 0 / 425.9 MB, free: 1.586 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006162/0.2803, allocations: 0.5986 MB / 426.5 MB, free: 0.9688 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00131/0.2816, allocations: 331.4 kB / 426.8 MB, free: 0.6484 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008696/0.2903, allocations: 6.456 MB / 433.3 MB, free: 10 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009352/0.2913, allocations: 1.036 MB / 434.3 MB, free: 8.941 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001162/0.2924, allocations: 444.2 kB / 434.8 MB, free: 8.504 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006353/0.2931, allocations: 0.5059 MB / 435.3 MB, free: 7.996 MB / 394.7 MB Notification: Performance of SimCode: time 1.774e-06/0.2931, allocations: 0 / 435.3 MB, free: 7.996 MB / 394.7 MB Notification: Performance of Templates: time 0.1442/0.4372, allocations: 23.66 MB / 458.9 MB, free: 125 MB / 394.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.sim & ./Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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.779908929951489]