Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.002536/0.002536, allocations: 99.53 kB / 20.97 MB, free: 3.457 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002978/0.002978, allocations: 164.8 kB / 24.27 MB, free: 156 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.594/1.594, allocations: 177 MB / 204.4 MB, free: 5.625 MB / 186.7 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.824e-06/1.824e-06, allocations: 0 / 272.2 MB, free: 1.809 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.94e-05/3.122e-05, allocations: 2.312 kB / 272.2 MB, free: 1.805 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.02753/0.02756, allocations: 10.32 MB / 282.5 MB, free: 7.438 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01406/0.04162, allocations: 3.809 MB / 286.3 MB, free: 3.621 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001677/0.0433, allocations: 67.69 kB / 286.4 MB, free: 3.555 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005492/0.04879, allocations: 2.39 MB / 288.8 MB, free: 1.156 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.1421/0.1909, allocations: 1.918 MB / 290.7 MB, free: 14.53 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002109/0.193, allocations: 0.7881 MB / 291.5 MB, free: 14.53 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.007424/0.2004, allocations: 4.997 MB / 296.5 MB, free: 13.98 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005647/0.2061, allocations: 3.039 MB / 299.5 MB, free: 13.5 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006051/0.2121, allocations: 2.281 MB / 301.8 MB, free: 12.71 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004402/0.2165, allocations: 2.422 MB / 304.2 MB, free: 12.26 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001234/0.2177, allocations: 298.2 kB / 304.5 MB, free: 12.26 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002752/0.2205, allocations: 0.8747 MB / 305.4 MB, free: 12.01 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002367/0.2229, allocations: 1.946 MB / 307.3 MB, free: 10.92 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001858/0.2247, allocations: 1.216 MB / 308.6 MB, free: 10.28 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005992/0.2307, allocations: 6.412 MB / 315 MB, free: 5.074 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.683e-06/0.2307, allocations: 4 kB / 315 MB, free: 5.07 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.043e-06/0.2307, allocations: 8 kB / 315 MB, free: 5.062 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0002126/0.2309, allocations: 0 / 315 MB, free: 5.062 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.009828/0.2408, allocations: 5.446 MB / 320.4 MB, free: 15.71 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.772e-05/0.2408, allocations: 11.98 kB / 320.4 MB, free: 15.7 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009774/0.2506, allocations: 2.452 MB / 322.9 MB, free: 13.28 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005991/0.2566, allocations: 2.017 MB / 324.9 MB, free: 11.38 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002366/0.2568, allocations: 226.5 kB / 325.1 MB, free: 11.19 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008591/0.2577, allocations: 294.1 kB / 325.4 MB, free: 10.94 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01507/0.2727, allocations: 6.447 MB / 331.9 MB, free: 3.664 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001296/0.2729, allocations: 45.52 kB / 331.9 MB, free: 3.641 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003932/0.2733, allocations: 149.2 kB / 332.1 MB, free: 3.535 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003452/0.2767, allocations: 1.922 MB / 334 MB, free: 1.637 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01188/0.2886, allocations: 3.285 MB / 337.3 MB, free: 14.54 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06209/0.3507, allocations: 47.41 MB / 384.7 MB, free: 14.13 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006568/0.3573, allocations: 1.731 MB / 386.4 MB, free: 12.36 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009918/0.3583, allocations: 424.1 kB / 386.8 MB, free: 11.93 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007317/0.3656, allocations: 2.734 MB / 389.5 MB, free: 9.195 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.412e-05/0.3656, allocations: 49.98 kB / 389.6 MB, free: 9.137 MB / 346.7 MB Notification: Performance of pre-optimization done (n=134): time 3.907e-06/0.3656, allocations: 0 / 389.6 MB, free: 9.137 MB / 346.7 MB Notification: Performance of matching and sorting (n=152): time 0.02401/0.3896, allocations: 7.842 MB / 397.4 MB, free: 1.23 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00013/0.3898, allocations: 149.5 kB / 397.6 MB, free: 1.055 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007501/0.3973, allocations: 4.227 MB / 401.8 MB, free: 12.82 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002394/0.3975, allocations: 45.7 kB / 401.9 MB, free: 12.77 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003755/0.4013, allocations: 3.553 MB / 405.4 MB, free: 9.223 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001051/0.4023, allocations: 0.6821 MB / 406.1 MB, free: 8.551 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002411/0.4047, allocations: 1.46 MB / 407.6 MB, free: 7.074 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002544/0.405, allocations: 480.8 kB / 408 MB, free: 6.602 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001715/0.4067, allocations: 0.6205 MB / 408.6 MB, free: 5.977 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008451/0.4151, allocations: 6.383 MB / 415 MB, free: 13.01 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01156/0.4267, allocations: 7.698 MB / 422.7 MB, free: 2.758 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001675/0.4269, allocations: 36 kB / 422.8 MB, free: 2.723 MB / 378.7 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.01362/0.4405, allocations: 5.072 MB / 427.8 MB, free: 13.65 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001265/0.4406, allocations: 64 kB / 427.9 MB, free: 13.59 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002027/0.4408, allocations: 132.1 kB / 428 MB, free: 13.46 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002192/0.441, allocations: 184 kB / 428.2 MB, free: 13.28 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005009/0.446, allocations: 1.38 MB / 429.6 MB, free: 11.89 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002748/0.4463, allocations: 270.2 kB / 429.8 MB, free: 11.63 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003994/0.4503, allocations: 351.6 kB / 430.2 MB, free: 11.29 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006344/0.4509, allocations: 368 kB / 430.5 MB, free: 10.93 MB / 394.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.001766/0.4527, allocations: 0.7453 MB / 431.3 MB, free: 10.17 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006749/0.4534, allocations: 361.8 kB / 431.6 MB, free: 9.816 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006402/0.454, allocations: 305.8 kB / 431.9 MB, free: 9.516 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.219e-05/0.4541, allocations: 20 kB / 432 MB, free: 9.496 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.13e-05/0.4541, allocations: 3.984 kB / 432 MB, free: 9.492 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.341e-05/0.4541, allocations: 3.984 kB / 432 MB, free: 9.488 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01145/0.4655, allocations: 5.781 MB / 437.8 MB, free: 3.359 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.739e-05/0.4656, allocations: 24.08 kB / 437.8 MB, free: 3.336 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001036/0.4666, allocations: 275.5 kB / 438 MB, free: 3.066 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.759e-05/0.4666, allocations: 32.67 kB / 438.1 MB, free: 3.035 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.377e-05/0.4667, allocations: 48 kB / 438.1 MB, free: 2.988 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.905e-05/0.4668, allocations: 43.86 kB / 438.2 MB, free: 2.945 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.609e-05/0.4668, allocations: 31.81 kB / 438.2 MB, free: 2.914 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.113/0.5798, allocations: 2.583 MB / 440.8 MB, free: 124.8 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001023/0.5808, allocations: 328.7 kB / 441.1 MB, free: 124.8 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004538/0.5812, allocations: 50.67 kB / 441.2 MB, free: 124.8 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001276/0.5825, allocations: 95.47 kB / 441.2 MB, free: 124.8 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001912/0.5827, allocations: 153.5 kB / 441.4 MB, free: 124.8 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.56e-05/0.5828, allocations: 67.08 kB / 441.5 MB, free: 124.8 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.002725/0.5855, allocations: 1.742 MB / 443.2 MB, free: 124.7 MB / 394.7 MB Notification: Performance of sort global known variables: time 9.1e-08/0.5855, allocations: 0 / 443.2 MB, free: 124.7 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.004336/0.5899, allocations: 0.9442 MB / 444.1 MB, free: 124.7 MB / 394.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.0004003/0.5903, allocations: 215.8 kB / 444.4 MB, free: 124.6 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.004834/0.5951, allocations: 2.815 MB / 447.2 MB, free: 124.1 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.429e-05/0.5951, allocations: 2.969 kB / 447.2 MB, free: 124.1 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008111/0.5959, allocations: 0.5105 MB / 447.7 MB, free: 124.1 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002392/0.5983, allocations: 419 kB / 448.1 MB, free: 124 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0104/0.6087, allocations: 7.577 MB / 455.7 MB, free: 120.3 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002709/0.6114, allocations: 2.312 MB / 458 MB, free: 120 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.00311/0.6145, allocations: 1.54 MB / 459.5 MB, free: 119.9 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003879/0.6149, allocations: 219.2 kB / 459.7 MB, free: 119.9 MB / 394.7 MB Notification: Performance of SimCode: time 2.344e-06/0.6149, allocations: 4 kB / 459.7 MB, free: 119.9 MB / 394.7 MB Notification: Performance of Templates: time 0.04024/0.6552, allocations: 20.51 MB / 480.3 MB, free: 105.5 MB / 394.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringMassSystem/SpringMassSystem.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 6.366355906939134]