Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.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.001656/0.001656, allocations: 107 kB / 21.18 MB, free: 0.6484 MB / 14.72 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.002562/0.002562, allocations: 214.8 kB / 24.48 MB, free: 3.941 MB / 14.72 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.694/1.694, allocations: 230.6 MB / 258.2 MB, free: 7.785 MB / 206.1 MB " [Timeout remaining time 178] 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.SpringMassSystem,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|p1.s|p1.v|p2.s|p2.v",fileNamePrefix="Modelica_4.1.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.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001734/0.001734, allocations: 43.94 kB / 379 MB, free: 2.438 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3675/0.3692, allocations: 53.37 MB / 432.3 MB, free: 6.691 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.01307/0.3823, allocations: 9.352 MB / 441.7 MB, free: 13.3 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.009701/0.392, allocations: 3.704 MB / 445.4 MB, free: 9.586 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002178/0.3942, allocations: 71.62 kB / 445.5 MB, free: 9.516 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005046/0.3992, allocations: 2.18 MB / 447.6 MB, free: 7.328 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006043/0.4053, allocations: 1.852 MB / 449.5 MB, free: 5.469 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002105/0.4074, allocations: 0.7136 MB / 450.2 MB, free: 4.754 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.007585/0.415, allocations: 4.312 MB / 454.5 MB, free: 444 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004387/0.4194, allocations: 2.451 MB / 457 MB, free: 13.93 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00351/0.4229, allocations: 1.495 MB / 458.5 MB, free: 12.43 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004451/0.4273, allocations: 2.247 MB / 460.7 MB, free: 10.18 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009586/0.4283, allocations: 296 kB / 461 MB, free: 9.891 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002135/0.4304, allocations: 0.8348 MB / 461.8 MB, free: 9.055 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002117/0.4325, allocations: 1.854 MB / 463.7 MB, free: 7.195 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002166/0.4347, allocations: 1.541 MB / 465.2 MB, free: 5.645 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008615/0.4433, allocations: 6.407 MB / 471.6 MB, free: 15.21 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.123e-06/0.4433, allocations: 0 / 471.6 MB, free: 15.21 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.225e-06/0.4433, allocations: 0 / 471.6 MB, free: 15.21 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000229/0.4435, allocations: 0 / 471.6 MB, free: 15.21 MB / 382.1 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.009606/0.4531, allocations: 4.602 MB / 476.2 MB, free: 10.55 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.568e-05/0.4532, allocations: 8.031 kB / 476.3 MB, free: 10.54 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007498/0.4607, allocations: 1.952 MB / 478.2 MB, free: 8.586 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006401/0.4671, allocations: 2.19 MB / 480.4 MB, free: 6.344 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002446/0.4673, allocations: 229.6 kB / 480.6 MB, free: 6.117 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001021/0.4684, allocations: 291.8 kB / 480.9 MB, free: 5.832 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0185/0.4869, allocations: 9.684 MB / 490.6 MB, free: 11.38 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001318/0.487, allocations: 43.58 kB / 490.6 MB, free: 11.34 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004099/0.4874, allocations: 151.9 kB / 490.8 MB, free: 11.19 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003185/0.4906, allocations: 1.915 MB / 492.7 MB, free: 9.27 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01933/0.5099, allocations: 7.629 MB / 0.4886 GB, free: 1.621 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05572/0.5656, allocations: 35.24 MB / 0.523 GB, free: 13.23 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006869/0.5725, allocations: 2.329 MB / 0.5253 GB, free: 10.86 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001359/0.5739, allocations: 0.7949 MB / 0.5261 GB, free: 10.05 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006895/0.5808, allocations: 2.848 MB / 0.5288 GB, free: 7.176 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.498e-05/0.5808, allocations: 51.09 kB / 0.5289 GB, free: 7.117 MB / 446.1 MB Notification: Performance of pre-optimization done (n=134): time 3.316e-06/0.5808, allocations: 0 / 0.5289 GB, free: 7.117 MB / 446.1 MB Notification: Performance of matching and sorting (n=152): time 0.3729/0.9537, allocations: 9.083 MB / 0.5378 GB, free: 100.9 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.647e-05/0.9538, allocations: 144.7 kB / 0.5379 GB, free: 100.7 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006092/0.9599, allocations: 3.701 MB / 0.5415 GB, free: 99.48 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000256/0.9602, allocations: 50.88 kB / 0.5416 GB, free: 99.43 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002164/0.9623, allocations: 3.23 MB / 0.5447 GB, free: 97.34 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006882/0.963, allocations: 0.6316 MB / 0.5453 GB, free: 96.89 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001354/0.9644, allocations: 1.175 MB / 0.5465 GB, free: 96.3 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.861e-05/0.9644, allocations: 303.4 kB / 0.5468 GB, free: 96 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001977/0.9664, allocations: 1.59 MB / 0.5483 GB, free: 95.53 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003263/0.9697, allocations: 5.36 MB / 0.5536 GB, free: 89.95 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006467/0.9761, allocations: 7.552 MB / 0.5609 GB, free: 83.21 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001098/0.9762, allocations: 39.97 kB / 0.561 GB, free: 83.21 MB / 446.1 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.01025/0.9865, allocations: 6.652 MB / 0.5675 GB, free: 77.29 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.137e-05/0.9866, allocations: 64 kB / 0.5675 GB, free: 77.23 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001315/0.9867, allocations: 140.1 kB / 0.5677 GB, free: 77.09 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001342/0.9868, allocations: 183.4 kB / 0.5678 GB, free: 76.92 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00376/0.9906, allocations: 1.387 MB / 0.5692 GB, free: 75.7 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001503/0.9907, allocations: 262.4 kB / 0.5694 GB, free: 75.46 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004101/0.9948, allocations: 283.4 kB / 0.5697 GB, free: 75.2 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005321/0.9954, allocations: 380.4 kB / 0.5701 GB, free: 74.84 MB / 446.1 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.002858/0.9982, allocations: 1.974 MB / 0.572 GB, free: 73.07 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008013/0.999, allocations: 313.9 kB / 0.5723 GB, free: 72.76 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005547/0.9996, allocations: 373.2 kB / 0.5727 GB, free: 72.39 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.348e-05/0.9996, allocations: 20 kB / 0.5727 GB, free: 72.37 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.602e-05/0.9996, allocations: 0 / 0.5727 GB, free: 72.37 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.186e-05/0.9997, allocations: 7.984 kB / 0.5727 GB, free: 72.36 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007612/1.007, allocations: 4.582 MB / 0.5772 GB, free: 67.54 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.971e-05/1.007, allocations: 20 kB / 0.5772 GB, free: 67.52 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009672/1.008, allocations: 283.6 kB / 0.5774 GB, free: 67.24 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.153e-05/1.008, allocations: 24 kB / 0.5775 GB, free: 67.22 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.619e-05/1.008, allocations: 48 kB / 0.5775 GB, free: 67.17 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.976e-05/1.008, allocations: 35.86 kB / 0.5776 GB, free: 67.14 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.24e-05/1.008, allocations: 27.88 kB / 0.5776 GB, free: 67.11 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003214/1.012, allocations: 3.212 MB / 0.5807 GB, free: 63.63 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001006/1.013, allocations: 311.5 kB / 0.581 GB, free: 63.33 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003258/1.013, allocations: 55.98 kB / 0.5811 GB, free: 63.27 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001151/1.014, allocations: 63.23 kB / 0.5811 GB, free: 63.21 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001545/1.014, allocations: 151.3 kB / 0.5813 GB, free: 63.07 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.882e-05/1.014, allocations: 67.98 kB / 0.5813 GB, free: 63 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002706/1.017, allocations: 2.111 MB / 0.5834 GB, free: 60.9 MB / 446.1 MB Notification: Performance of sort global known variables: time 8e-08/1.017, allocations: 0 / 0.5834 GB, free: 60.9 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005388/1.022, allocations: 0.8475 MB / 0.5842 GB, free: 60.05 MB / 446.1 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.0005092/1.023, allocations: 194.1 kB / 0.5844 GB, free: 59.85 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005528/1.028, allocations: 3.556 MB / 0.5879 GB, free: 56.34 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.226e-05/1.028, allocations: 4.844 kB / 0.5879 GB, free: 56.34 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008627/1.029, allocations: 0.6911 MB / 0.5886 GB, free: 55.65 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002931/1.032, allocations: 397.8 kB / 0.5889 GB, free: 55.27 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01426/1.047, allocations: 8.58 MB / 0.5973 GB, free: 46.41 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003693/1.05, allocations: 2.552 MB / 0.5998 GB, free: 43.82 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003421/1.054, allocations: 1.727 MB / 0.6015 GB, free: 42.09 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004438/1.054, allocations: 215.4 kB / 0.6017 GB, free: 41.88 MB / 446.1 MB Notification: Performance of SimCode: time 1.383e-06/1.054, allocations: 0 / 0.6017 GB, free: 41.88 MB / 446.1 MB Notification: Performance of Templates: time 0.049/1.103, allocations: 25.97 MB / 0.6271 GB, free: 16.43 MB / 446.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.sim & ./Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringMassSystem/SpringMassSystem.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_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: 7.0209174569899915]