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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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=5000,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=5000,variableFilter="time|p1.s|p1.v|p2.s|p2.v",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001393/0.001393, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001696/0.001696, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.408/1.408, allocations: 227.4 MB / 246.8 MB, free: 10.64 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001175/0.001176, allocations: 55.69 kB / 306.9 MB, free: 0.6484 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09309/0.09428, allocations: 50.53 MB / 357.5 MB, free: 14.11 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.01201/0.1063, allocations: 10.68 MB / 368.1 MB, free: 3.379 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.169/0.2753, allocations: 3.883 MB / 372 MB, free: 9.074 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001481/0.2768, allocations: 61.5 kB / 372.1 MB, free: 9.074 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003819/0.2807, allocations: 2.225 MB / 374.3 MB, free: 9.074 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003939/0.2847, allocations: 1.795 MB / 376.1 MB, free: 8.992 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001313/0.286, allocations: 0.7122 MB / 376.8 MB, free: 8.973 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004974/0.291, allocations: 4.306 MB / 381.1 MB, free: 8.555 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003092/0.2941, allocations: 2.897 MB / 384 MB, free: 7.418 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001912/0.296, allocations: 1.462 MB / 385.5 MB, free: 6.902 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002205/0.2982, allocations: 2.081 MB / 387.6 MB, free: 6.027 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005752/0.2988, allocations: 291.4 kB / 387.8 MB, free: 6.027 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00164/0.3005, allocations: 0.9155 MB / 388.8 MB, free: 5.707 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001281/0.3017, allocations: 1.797 MB / 390.6 MB, free: 4.676 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001687/0.3034, allocations: 2.077 MB / 392.6 MB, free: 3.105 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004581/0.308, allocations: 6.118 MB / 398.8 MB, free: 15.07 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.3081, allocations: 0 / 398.8 MB, free: 15.07 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.3081, allocations: 0 / 398.8 MB, free: 15.07 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.474e-05/0.3082, allocations: 2.969 kB / 398.8 MB, free: 15.07 MB / 318.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.007124/0.3153, allocations: 4.549 MB / 403.3 MB, free: 10.98 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.575e-05/0.3153, allocations: 12.03 kB / 403.3 MB, free: 10.96 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007056/0.3224, allocations: 1.918 MB / 405.2 MB, free: 9.039 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003723/0.3261, allocations: 2.192 MB / 407.4 MB, free: 6.812 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001709/0.3263, allocations: 241.4 kB / 407.7 MB, free: 6.609 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005199/0.3269, allocations: 304.3 kB / 408 MB, free: 6.352 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01463/0.3415, allocations: 9.636 MB / 417.6 MB, free: 12.06 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001195/0.3416, allocations: 55.52 kB / 417.7 MB, free: 12 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004187/0.3421, allocations: 149.5 kB / 417.8 MB, free: 11.89 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002763/0.3448, allocations: 1.912 MB / 419.7 MB, free: 9.988 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01449/0.3593, allocations: 7.647 MB / 427.4 MB, free: 2.324 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04035/0.3997, allocations: 37.75 MB / 465.1 MB, free: 11.6 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006694/0.4064, allocations: 2.913 MB / 468 MB, free: 8.539 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001215/0.4077, allocations: 0.8691 MB / 468.9 MB, free: 7.656 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005416/0.4131, allocations: 3.844 MB / 472.7 MB, free: 3.617 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.137e-05/0.4132, allocations: 51.22 kB / 472.8 MB, free: 3.559 MB / 382.1 MB Notification: Performance of pre-optimization done (n=134): time 3.136e-06/0.4132, allocations: 0 / 472.8 MB, free: 3.559 MB / 382.1 MB Notification: Performance of matching and sorting (n=152): time 0.02176/0.4349, allocations: 9.052 MB / 481.8 MB, free: 10.39 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.589e-05/0.435, allocations: 141.5 kB / 482 MB, free: 10.22 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004928/0.44, allocations: 3.912 MB / 485.9 MB, free: 6.328 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.00011/0.4401, allocations: 45.7 kB / 485.9 MB, free: 6.277 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001902/0.442, allocations: 3.078 MB / 489 MB, free: 3.203 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004758/0.4425, allocations: 0.6054 MB / 489.6 MB, free: 2.602 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00132/0.4438, allocations: 1.169 MB / 490.8 MB, free: 1.422 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 8.318e-05/0.4439, allocations: 305.1 kB / 491.1 MB, free: 1.121 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002318/0.4462, allocations: 1.589 MB / 492.7 MB, free: 15.53 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004443/0.4507, allocations: 5.355 MB / 498 MB, free: 8.273 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007474/0.4582, allocations: 7.56 MB / 0.4937 GB, free: 14.84 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.008e-05/0.4583, allocations: 40 kB / 0.4938 GB, free: 14.8 MB / 430.1 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.009805/0.4681, allocations: 6.664 MB / 0.5003 GB, free: 8.129 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.825e-05/0.4682, allocations: 60 kB / 0.5003 GB, free: 8.07 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001185/0.4683, allocations: 136.9 kB / 0.5005 GB, free: 7.938 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002319/0.4686, allocations: 176 kB / 0.5006 GB, free: 7.766 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003857/0.4724, allocations: 1.384 MB / 0.502 GB, free: 6.379 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002027/0.4727, allocations: 274.9 kB / 0.5022 GB, free: 6.109 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003333/0.476, allocations: 283.6 kB / 0.5025 GB, free: 5.832 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003949/0.4764, allocations: 370.6 kB / 0.5029 GB, free: 5.473 MB / 430.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.002541/0.4789, allocations: 1.982 MB / 0.5048 GB, free: 3.48 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004692/0.4794, allocations: 331.7 kB / 0.5051 GB, free: 3.152 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006171/0.48, allocations: 397.3 kB / 0.5055 GB, free: 2.766 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.442e-05/0.4801, allocations: 16 kB / 0.5055 GB, free: 2.75 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.21e-05/0.4801, allocations: 4 kB / 0.5055 GB, free: 2.746 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.419e-05/0.4801, allocations: 11.97 kB / 0.5055 GB, free: 2.734 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008127/0.4883, allocations: 5.749 MB / 0.5111 GB, free: 12.7 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.347e-05/0.4883, allocations: 16 kB / 0.5112 GB, free: 12.68 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00095/0.4893, allocations: 283.6 kB / 0.5114 GB, free: 12.4 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.796e-05/0.4893, allocations: 31.94 kB / 0.5115 GB, free: 12.37 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.04e-05/0.4894, allocations: 51.5 kB / 0.5115 GB, free: 12.32 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.185e-05/0.4894, allocations: 35.86 kB / 0.5115 GB, free: 12.29 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.98e-05/0.4895, allocations: 35.86 kB / 0.5116 GB, free: 12.25 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003577/0.493, allocations: 3.23 MB / 0.5147 GB, free: 8.762 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006127/0.4937, allocations: 409.1 kB / 0.5151 GB, free: 8.34 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000318/0.494, allocations: 51.98 kB / 0.5152 GB, free: 8.289 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001019/0.495, allocations: 59.95 kB / 0.5152 GB, free: 8.23 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001794/0.4952, allocations: 147.4 kB / 0.5154 GB, free: 8.086 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.528e-05/0.4953, allocations: 67.98 kB / 0.5154 GB, free: 8.02 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003285/0.4986, allocations: 2.43 MB / 0.5178 GB, free: 5.609 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.4986, allocations: 4 kB / 0.5178 GB, free: 5.605 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004049/0.5027, allocations: 0.8507 MB / 0.5186 GB, free: 4.758 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.0003432/0.503, allocations: 201.5 kB / 0.5188 GB, free: 4.555 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005526/0.5086, allocations: 3.826 MB / 0.5226 GB, free: 0.7578 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.462e-05/0.5086, allocations: 4 kB / 0.5226 GB, free: 0.7539 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001034/0.5096, allocations: 0.7349 MB / 0.5233 GB, free: 24 kB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.1934/0.703, allocations: 448.7 kB / 0.5237 GB, free: 132.1 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01737/0.7204, allocations: 8.603 MB / 0.5321 GB, free: 129 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005115/0.7256, allocations: 3.096 MB / 0.5351 GB, free: 128.1 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.004956/0.7306, allocations: 1.772 MB / 0.5369 GB, free: 128 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005719/0.7312, allocations: 228.9 kB / 0.5371 GB, free: 128 MB / 446.1 MB Notification: Performance of SimCode: time 9.52e-07/0.7312, allocations: 7.562 kB / 0.5371 GB, free: 128 MB / 446.1 MB Notification: Performance of Templates: time 0.04744/0.7786, allocations: 27 MB / 0.5635 GB, free: 111.6 MB / 446.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.makefile (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=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe 2>&1) diffSimulationResults("Modelica_trunk_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","/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) Reference file matches