Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.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.001127/0.001127, 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.0009252/0.0009252, allocations: 150.1 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 1.031/1.031, allocations: 173.3 MB / 201.4 MB, free: 9.203 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.SpringMassSystem,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|p1.s|p1.v|p2.s|p2.v",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|p1.s|p1.v|p2.s|p2.v",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.413e-06/1.413e-06, allocations: 0 / 268.4 MB, free: 6.172 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.948e-05/2.089e-05, allocations: 6.25 kB / 268.4 MB, free: 6.164 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.008035/0.008055, allocations: 10.09 MB / 278.5 MB, free: 12.02 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.00663/0.01469, allocations: 3.779 MB / 282.3 MB, free: 8.223 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001332/0.01602, allocations: 71.69 kB / 282.4 MB, free: 8.152 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002511/0.01853, allocations: 2.351 MB / 284.7 MB, free: 5.793 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003587/0.02212, allocations: 1.975 MB / 286.7 MB, free: 3.809 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001415/0.02353, allocations: 0.7953 MB / 287.5 MB, free: 3.012 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.1238/0.1473, allocations: 4.846 MB / 292.3 MB, free: 15.63 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00434/0.1516, allocations: 3.042 MB / 295.4 MB, free: 15.5 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004016/0.1556, allocations: 2.37 MB / 297.7 MB, free: 15.38 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003383/0.159, allocations: 2.343 MB / 300.1 MB, free: 15.23 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001051/0.1601, allocations: 293.2 kB / 300.4 MB, free: 15.23 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001562/0.1616, allocations: 0.8927 MB / 301.3 MB, free: 15.22 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001247/0.1629, allocations: 1.966 MB / 303.2 MB, free: 14.6 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001145/0.164, allocations: 1.218 MB / 304.4 MB, free: 14.09 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003333/0.1674, allocations: 4.272 MB / 308.7 MB, free: 12.6 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.1674, allocations: 0.5 kB / 308.7 MB, free: 12.6 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.202e-06/0.1674, allocations: 1.156 kB / 308.7 MB, free: 12.6 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.597e-05/0.1674, allocations: 0 / 308.7 MB, free: 12.6 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: 1469 * Number of variables: 1469 Notification: Performance of Generate backend data structure: time 0.004527/0.172, allocations: 4.826 MB / 313.5 MB, free: 9.691 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.348e-05/0.172, allocations: 8.938 kB / 313.6 MB, free: 9.691 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003244/0.1752, allocations: 1.518 MB / 315.1 MB, free: 8.707 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002114/0.1774, allocations: 1.82 MB / 316.9 MB, free: 6.992 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.722e-05/0.1774, allocations: 228.4 kB / 317.1 MB, free: 6.805 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002832/0.1777, allocations: 296.5 kB / 317.4 MB, free: 6.555 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005437/0.1832, allocations: 5.494 MB / 322.9 MB, free: 488 kB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.229e-05/0.1833, allocations: 46.62 kB / 322.9 MB, free: 464 kB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002287/0.1835, allocations: 142 kB / 323.1 MB, free: 360 kB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001454/0.1849, allocations: 1.724 MB / 324.8 MB, free: 14.66 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004563/0.1895, allocations: 2.341 MB / 327.2 MB, free: 12.52 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02935/0.2188, allocations: 43.7 MB / 370.9 MB, free: 0.6328 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003083/0.2219, allocations: 1.604 MB / 372.5 MB, free: 15.02 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003805/0.2223, allocations: 326.2 kB / 372.8 MB, free: 14.7 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003336/0.2256, allocations: 2.578 MB / 375.4 MB, free: 12.14 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.495e-05/0.2257, allocations: 50.05 kB / 375.4 MB, free: 12.08 MB / 330.7 MB Notification: Performance of pre-optimization done (n=133): time 3.908e-06/0.2257, allocations: 0 / 375.4 MB, free: 12.08 MB / 330.7 MB Notification: Performance of matching and sorting (n=151): time 0.01032/0.236, allocations: 4.869 MB / 380.3 MB, free: 7.219 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.554e-05/0.2361, allocations: 141.5 kB / 380.4 MB, free: 7.051 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003269/0.2393, allocations: 3.424 MB / 383.8 MB, free: 4.176 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 6.378e-05/0.2394, allocations: 45.7 kB / 383.9 MB, free: 4.125 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001736/0.2411, allocations: 3.403 MB / 387.3 MB, free: 0.8633 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004596/0.2416, allocations: 0.6437 MB / 387.9 MB, free: 220 kB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001397/0.243, allocations: 1.284 MB / 389.2 MB, free: 14.91 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001083/0.2431, allocations: 484.7 kB / 389.7 MB, free: 14.44 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008433/0.2439, allocations: 0.4987 MB / 390.2 MB, free: 13.94 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003972/0.2479, allocations: 6.128 MB / 396.3 MB, free: 5.273 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00587/0.2538, allocations: 7.28 MB / 403.6 MB, free: 11.46 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.707e-05/0.2539, allocations: 40 kB / 403.6 MB, free: 11.42 MB / 362.7 MB Notification: Performance of matching and sorting (n=771) (initialization): time 0.006127/0.26, allocations: 4.627 MB / 408.3 MB, free: 6.797 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.246e-05/0.2601, allocations: 68.03 kB / 408.3 MB, free: 6.73 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001176/0.2602, allocations: 136 kB / 408.5 MB, free: 6.598 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001239/0.2603, allocations: 176 kB / 408.6 MB, free: 6.426 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002288/0.2626, allocations: 1.365 MB / 410 MB, free: 5.059 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001724/0.2628, allocations: 263 kB / 410.2 MB, free: 4.801 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002232/0.265, allocations: 259.7 kB / 410.5 MB, free: 4.547 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002657/0.2653, allocations: 328.8 kB / 410.8 MB, free: 4.227 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 614 * Number of states: 0 () * Number of discrete variables: 36 (spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],p2.boxColor[3],p2.boxColor[2],p2.boxColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],bar2.color[3],bar2.color[2],bar2.color[1],bar1.color[3],bar1.color[2],bar1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],p1.boxColor[3],p1.boxColor[2],p1.boxColor[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 (747): * Single equations (assignments): 744 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001066/0.2663, allocations: 0.6575 MB / 411.5 MB, free: 3.555 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003561/0.2667, allocations: 357.8 kB / 411.8 MB, free: 3.203 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007451/0.2674, allocations: 0.7074 MB / 412.5 MB, free: 2.484 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.806e-05/0.2674, allocations: 16 kB / 412.6 MB, free: 2.469 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-06/0.2674, allocations: 0 / 412.6 MB, free: 2.469 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.122e-05/0.2675, allocations: 15.97 kB / 412.6 MB, free: 2.453 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005473/0.2729, allocations: 4.839 MB / 417.4 MB, free: 13.24 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.325e-05/0.2729, allocations: 20 kB / 417.4 MB, free: 13.22 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005005/0.2734, allocations: 264.4 kB / 417.7 MB, free: 12.96 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.729e-05/0.2735, allocations: 24 kB / 417.7 MB, free: 12.94 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.983e-05/0.2735, allocations: 55.98 kB / 417.8 MB, free: 12.89 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.89e-05/0.2735, allocations: 35.86 kB / 417.8 MB, free: 12.85 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.596e-05/0.2735, allocations: 34.75 kB / 417.8 MB, free: 12.82 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00193/0.2755, allocations: 2.38 MB / 420.2 MB, free: 10.08 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004244/0.2759, allocations: 325.6 kB / 420.5 MB, free: 9.762 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001868/0.2761, allocations: 47.98 kB / 420.6 MB, free: 9.715 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005811/0.2767, allocations: 47.98 kB / 420.6 MB, free: 9.668 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001059/0.2768, allocations: 155.3 kB / 420.8 MB, free: 9.516 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.685e-05/0.2768, allocations: 63.92 kB / 420.8 MB, free: 9.453 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001219/0.278, allocations: 1.369 MB / 422.2 MB, free: 8.094 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.1e-07/0.278, allocations: 0 / 422.2 MB, free: 8.094 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.003207/0.2813, allocations: 0.9608 MB / 423.2 MB, free: 7.133 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 82 * Number of states: 4 (p1.s,p1.v,p2.s,p2.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 (141): * Single equations (assignments): 138 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000356/0.2816, allocations: 237.6 kB / 423.4 MB, free: 6.895 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002975/0.2846, allocations: 2.386 MB / 425.8 MB, free: 4.523 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 8.937e-06/0.2846, allocations: 4 kB / 425.8 MB, free: 4.52 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003906/0.285, allocations: 426.7 kB / 426.2 MB, free: 4.098 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001799/0.2868, allocations: 421.9 kB / 426.6 MB, free: 3.691 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1177/0.4045, allocations: 7.469 MB / 434.1 MB, free: 116.3 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001727/0.4063, allocations: 1.163 MB / 435.2 MB, free: 116.1 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001748/0.408, allocations: 493.8 kB / 435.7 MB, free: 116.1 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009674/0.409, allocations: 0.5701 MB / 436.3 MB, free: 116 MB / 378.7 MB Notification: Performance of SimCode: time 1.994e-06/0.409, allocations: 0 / 436.3 MB, free: 116 MB / 378.7 MB Notification: Performance of Templates: time 0.04026/0.4492, allocations: 23.54 MB / 459.8 MB, free: 106 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringMassSystem/SpringMassSystem.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.722895884886384]