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.001435/0.001435, allocations: 72.08 kB / 21.69 MB, free: 2.859 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.001498/0.001498, allocations: 142.1 kB / 24.97 MB, free: 8.316 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.9375/0.9375, allocations: 173.3 MB / 201.5 MB, free: 9.32 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.873e-06/1.873e-06, allocations: 0 / 268.1 MB, free: 6.711 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.565e-05/2.752e-05, allocations: 6.312 kB / 268.1 MB, free: 6.703 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.008738/0.008766, allocations: 10.39 MB / 278.5 MB, free: 12.26 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005264/0.01403, allocations: 3.798 MB / 282.3 MB, free: 8.449 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000658/0.01469, allocations: 75.62 kB / 282.3 MB, free: 8.375 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002864/0.01755, allocations: 2.386 MB / 284.7 MB, free: 5.98 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002806/0.02036, allocations: 1.956 MB / 286.7 MB, free: 4.016 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001053/0.02141, allocations: 0.803 MB / 287.5 MB, free: 3.211 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.1223/0.1437, allocations: 4.853 MB / 292.3 MB, free: 15.31 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004271/0.148, allocations: 3.039 MB / 295.4 MB, free: 15.18 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003621/0.1516, allocations: 2.293 MB / 297.7 MB, free: 15.13 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003139/0.1547, allocations: 2.427 MB / 300.1 MB, free: 14.99 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007963/0.1555, allocations: 303.8 kB / 300.4 MB, free: 14.99 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001424/0.1569, allocations: 0.8966 MB / 301.3 MB, free: 14.98 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00118/0.1581, allocations: 1.98 MB / 303.3 MB, free: 14.38 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009639/0.1591, allocations: 1.228 MB / 304.5 MB, free: 13.86 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003134/0.1622, allocations: 4.314 MB / 308.8 MB, free: 12.35 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.426e-06/0.1622, allocations: 1.719 kB / 308.8 MB, free: 12.35 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.093e-06/0.1622, allocations: 0 / 308.8 MB, free: 12.35 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.095e-05/0.1623, allocations: 0 / 308.8 MB, free: 12.35 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.004289/0.1666, allocations: 5.088 MB / 313.9 MB, free: 9.043 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.822e-05/0.1666, allocations: 9.531 kB / 313.9 MB, free: 9.043 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004101/0.1707, allocations: 2.461 MB / 316.4 MB, free: 7.363 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001836/0.1725, allocations: 2.008 MB / 318.4 MB, free: 5.469 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.249e-05/0.1726, allocations: 217.3 kB / 318.6 MB, free: 5.289 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002923/0.1729, allocations: 294.5 kB / 318.9 MB, free: 5.039 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005567/0.1785, allocations: 6.046 MB / 324.9 MB, free: 14.16 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.293e-05/0.1786, allocations: 41.8 kB / 325 MB, free: 14.14 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002472/0.1788, allocations: 147.6 kB / 325.1 MB, free: 14.04 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001627/0.1804, allocations: 1.919 MB / 327 MB, free: 12.14 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005341/0.1858, allocations: 2.99 MB / 330 MB, free: 9.352 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02469/0.2105, allocations: 44.08 MB / 374.1 MB, free: 12.32 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003311/0.2138, allocations: 1.7 MB / 375.8 MB, free: 10.58 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000757/0.2145, allocations: 378.2 kB / 376.2 MB, free: 10.2 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003019/0.2176, allocations: 2.675 MB / 378.8 MB, free: 7.516 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.164e-05/0.2176, allocations: 49.61 kB / 378.9 MB, free: 7.461 MB / 330.7 MB Notification: Performance of pre-optimization done (n=134): time 3.236e-06/0.2176, allocations: 4 kB / 378.9 MB, free: 7.457 MB / 330.7 MB Notification: Performance of matching and sorting (n=152): time 0.01271/0.2303, allocations: 7.686 MB / 386.6 MB, free: 15.73 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.158e-05/0.2304, allocations: 148.3 kB / 386.7 MB, free: 15.56 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003086/0.2335, allocations: 3.427 MB / 390.2 MB, free: 12.12 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.646e-05/0.2335, allocations: 45.7 kB / 390.2 MB, free: 12.07 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001812/0.2353, allocations: 3.372 MB / 393.6 MB, free: 8.711 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003733/0.2357, allocations: 0.6461 MB / 394.2 MB, free: 8.074 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001228/0.2369, allocations: 1.259 MB / 395.5 MB, free: 6.801 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001199/0.237, allocations: 476.8 kB / 395.9 MB, free: 6.332 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000904/0.2379, allocations: 0.5502 MB / 396.5 MB, free: 5.777 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003857/0.2418, allocations: 6.132 MB / 402.6 MB, free: 13.11 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006169/0.248, allocations: 7.394 MB / 410 MB, free: 3.191 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001115/0.2481, allocations: 40 kB / 410.1 MB, free: 3.152 MB / 362.7 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.007889/0.256, allocations: 4.938 MB / 415 MB, free: 14.23 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.762e-05/0.2561, allocations: 68 kB / 415.1 MB, free: 14.16 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001242/0.2562, allocations: 132 kB / 415.2 MB, free: 14.03 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000155/0.2563, allocations: 180 kB / 415.4 MB, free: 13.86 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003181/0.2595, allocations: 1.384 MB / 416.8 MB, free: 12.47 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001763/0.2597, allocations: 263 kB / 417 MB, free: 12.21 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003018/0.2627, allocations: 351.6 kB / 417.4 MB, free: 11.87 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003791/0.2631, allocations: 372 kB / 417.7 MB, free: 11.5 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 612 * 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 (746): * Single equations (assignments): 743 * 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.001186/0.2643, allocations: 0.6527 MB / 418.4 MB, free: 10.84 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004076/0.2647, allocations: 365.8 kB / 418.7 MB, free: 10.48 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001131/0.2658, allocations: 0.7698 MB / 419.5 MB, free: 9.703 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.071e-05/0.2658, allocations: 16 kB / 419.5 MB, free: 9.688 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.905e-06/0.2658, allocations: 4 kB / 419.5 MB, free: 9.684 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.71e-05/0.2659, allocations: 11.97 kB / 419.5 MB, free: 9.672 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00706/0.2729, allocations: 4.89 MB / 424.4 MB, free: 4.434 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.826e-05/0.2729, allocations: 16.94 kB / 424.4 MB, free: 4.418 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007493/0.2737, allocations: 279.5 kB / 424.7 MB, free: 4.145 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.264e-05/0.2737, allocations: 28 kB / 424.7 MB, free: 4.117 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.305e-05/0.2738, allocations: 52 kB / 424.8 MB, free: 4.066 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.62e-05/0.2738, allocations: 35.86 kB / 424.8 MB, free: 4.031 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.358e-05/0.2738, allocations: 31.81 kB / 424.8 MB, free: 4 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002408/0.2762, allocations: 2.472 MB / 427.3 MB, free: 1.176 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004605/0.2767, allocations: 337.6 kB / 427.7 MB, free: 0.8438 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002906/0.277, allocations: 51.89 kB / 427.7 MB, free: 0.7969 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009936/0.278, allocations: 103.9 kB / 427.8 MB, free: 0.6953 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001741/0.2782, allocations: 155.3 kB / 428 MB, free: 0.543 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.254e-05/0.2782, allocations: 75.42 kB / 428 MB, free: 484 kB / 378.7 MB Notification: Performance of sorting global known variables: time 0.1727/0.451, allocations: 1.465 MB / 429.5 MB, free: 118.1 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.31e-07/0.451, allocations: 1.094 kB / 429.5 MB, free: 118.1 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.003956/0.4549, allocations: 0.9668 MB / 430.5 MB, free: 118.1 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 (142): * Single equations (assignments): 139 * 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.0003378/0.4553, allocations: 228.9 kB / 430.7 MB, free: 118 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003145/0.4584, allocations: 2.522 MB / 433.2 MB, free: 117.6 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.143e-05/0.4584, allocations: 5.438 kB / 433.2 MB, free: 117.6 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004398/0.4589, allocations: 459.2 kB / 433.7 MB, free: 117.5 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001479/0.4603, allocations: 412.8 kB / 434.1 MB, free: 117.5 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008199/0.4685, allocations: 7.489 MB / 441.6 MB, free: 113.7 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001019/0.4696, allocations: 1.168 MB / 442.7 MB, free: 113.6 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001881/0.4714, allocations: 1.533 MB / 444.3 MB, free: 113.4 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002662/0.4717, allocations: 225.4 kB / 444.5 MB, free: 113.4 MB / 378.7 MB Notification: Performance of SimCode: time 1.683e-06/0.4717, allocations: 0 / 444.5 MB, free: 113.4 MB / 378.7 MB Notification: Performance of Templates: time 0.0279/0.4996, allocations: 20.69 MB / 465.2 MB, free: 100.3 MB / 378.7 MB " [Timeout remaining time 659] 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.7006813890766352]