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.001079/0.001079, allocations: 116.9 kB / 18.4 MB, free: 4.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001093/0.001093, allocations: 200.6 kB / 19.34 MB, free: 3.676 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.437/1.437, allocations: 227.4 MB / 247.5 MB, free: 10.39 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001277/0.001277, allocations: 62.17 kB / 308.4 MB, free: 15.89 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1136/0.1149, allocations: 50.53 MB / 358.9 MB, free: 13.34 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.01179/0.1267, allocations: 10.67 MB / 369.6 MB, free: 2.617 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.2135/0.3403, allocations: 3.889 MB / 373.5 MB, free: 9.715 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001639/0.342, allocations: 63.09 kB / 373.5 MB, free: 9.715 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004403/0.3464, allocations: 2.22 MB / 375.7 MB, free: 9.703 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005154/0.3516, allocations: 1.799 MB / 377.5 MB, free: 9.566 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001847/0.3535, allocations: 0.7189 MB / 378.3 MB, free: 9.523 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.008168/0.3616, allocations: 4.311 MB / 382.6 MB, free: 8.684 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004316/0.366, allocations: 2.891 MB / 385.5 MB, free: 7.551 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002663/0.3687, allocations: 1.465 MB / 386.9 MB, free: 7.035 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002779/0.3715, allocations: 2.073 MB / 389 MB, free: 5.988 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006966/0.3722, allocations: 292.8 kB / 389.3 MB, free: 5.988 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002019/0.3742, allocations: 0.9221 MB / 390.2 MB, free: 5.66 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001596/0.3758, allocations: 1.793 MB / 392 MB, free: 4.629 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001979/0.3778, allocations: 2.077 MB / 394.1 MB, free: 3.059 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006686/0.3845, allocations: 6.356 MB / 400.4 MB, free: 14.84 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/0.3845, allocations: 4 kB / 400.4 MB, free: 14.83 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.3845, allocations: 0 / 400.4 MB, free: 14.83 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002159/0.3848, allocations: 0 / 400.4 MB, free: 14.83 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.009743/0.3945, allocations: 4.554 MB / 405 MB, free: 10.46 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.173e-05/0.3946, allocations: 12.03 kB / 405 MB, free: 10.45 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007115/0.4017, allocations: 1.922 MB / 406.9 MB, free: 8.516 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005679/0.4074, allocations: 2.237 MB / 409.2 MB, free: 6.242 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001901/0.4076, allocations: 231.5 kB / 409.4 MB, free: 6.051 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009215/0.4085, allocations: 299 kB / 409.7 MB, free: 5.797 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0184/0.4269, allocations: 9.645 MB / 419.3 MB, free: 11.5 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001267/0.4271, allocations: 59.5 kB / 419.4 MB, free: 11.44 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004792/0.4276, allocations: 149.1 kB / 419.5 MB, free: 11.33 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003123/0.4307, allocations: 1.912 MB / 421.4 MB, free: 9.422 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01664/0.4474, allocations: 7.643 MB / 429.1 MB, free: 1.766 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04672/0.4941, allocations: 37.6 MB / 466.7 MB, free: 11.17 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006602/0.5008, allocations: 2.903 MB / 469.6 MB, free: 8.121 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001366/0.5022, allocations: 0.8652 MB / 470.4 MB, free: 7.242 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007626/0.5098, allocations: 3.853 MB / 474.3 MB, free: 3.195 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.088e-05/0.5099, allocations: 43.22 kB / 474.3 MB, free: 3.145 MB / 382.1 MB Notification: Performance of pre-optimization done (n=134): time 4.989e-06/0.5099, allocations: 0 / 474.3 MB, free: 3.145 MB / 382.1 MB Notification: Performance of matching and sorting (n=152): time 0.02115/0.5311, allocations: 9.057 MB / 483.4 MB, free: 9.977 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.628e-05/0.5312, allocations: 145.5 kB / 483.5 MB, free: 9.805 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005815/0.5371, allocations: 3.908 MB / 487.5 MB, free: 5.914 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002148/0.5373, allocations: 45.7 kB / 487.5 MB, free: 5.863 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002087/0.5394, allocations: 3.077 MB / 490.6 MB, free: 2.789 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006779/0.5401, allocations: 0.6105 MB / 491.2 MB, free: 2.184 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001481/0.5416, allocations: 1.165 MB / 492.3 MB, free: 1.008 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001011/0.5417, allocations: 309.1 kB / 492.6 MB, free: 0.7031 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002463/0.5442, allocations: 1.585 MB / 494.2 MB, free: 15.11 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005335/0.5495, allocations: 5.354 MB / 499.6 MB, free: 7.859 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01077/0.5603, allocations: 7.554 MB / 0.4953 GB, free: 14.42 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000137/0.5605, allocations: 40 kB / 0.4953 GB, free: 14.38 MB / 430.1 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.01267/0.5732, allocations: 6.671 MB / 0.5018 GB, free: 7.711 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.599e-05/0.5733, allocations: 64 kB / 0.5019 GB, free: 7.648 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001412/0.5734, allocations: 135.9 kB / 0.502 GB, free: 7.516 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001661/0.5736, allocations: 176 kB / 0.5022 GB, free: 7.344 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004003/0.5776, allocations: 1.384 MB / 0.5035 GB, free: 5.957 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000192/0.5778, allocations: 271.2 kB / 0.5038 GB, free: 5.691 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004145/0.582, allocations: 294.4 kB / 0.5041 GB, free: 5.406 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006625/0.5826, allocations: 368 kB / 0.5044 GB, free: 5.047 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.003671/0.5863, allocations: 1.978 MB / 0.5063 GB, free: 3.059 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007357/0.5871, allocations: 331.7 kB / 0.5067 GB, free: 2.73 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007411/0.5878, allocations: 401.3 kB / 0.507 GB, free: 2.34 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.582e-05/0.5878, allocations: 16 kB / 0.5071 GB, free: 2.324 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.368e-05/0.5879, allocations: 0 / 0.5071 GB, free: 2.324 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.292e-05/0.5879, allocations: 7.969 kB / 0.5071 GB, free: 2.316 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01037/0.5983, allocations: 5.75 MB / 0.5127 GB, free: 12.28 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.664e-05/0.5983, allocations: 16 kB / 0.5127 GB, free: 12.27 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000966/0.5993, allocations: 279.5 kB / 0.513 GB, free: 11.99 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.559e-05/0.5993, allocations: 27.94 kB / 0.513 GB, free: 11.96 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.448e-05/0.5994, allocations: 48 kB / 0.513 GB, free: 11.92 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.872e-05/0.5995, allocations: 35.86 kB / 0.5131 GB, free: 11.88 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.089e-05/0.5995, allocations: 28.34 kB / 0.5131 GB, free: 11.86 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004109/0.6036, allocations: 3.242 MB / 0.5163 GB, free: 8.355 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001156/0.6048, allocations: 408.7 kB / 0.5167 GB, free: 7.934 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003399/0.6051, allocations: 55.97 kB / 0.5167 GB, free: 7.879 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001093/0.6062, allocations: 55.97 kB / 0.5168 GB, free: 7.824 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001895/0.6064, allocations: 155.3 kB / 0.5169 GB, free: 7.672 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001081/0.6065, allocations: 67.98 kB / 0.517 GB, free: 7.605 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004118/0.6107, allocations: 2.426 MB / 0.5193 GB, free: 5.199 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.6107, allocations: 4 kB / 0.5193 GB, free: 5.195 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00553/0.6162, allocations: 0.8502 MB / 0.5202 GB, free: 4.348 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.0004872/0.6167, allocations: 193.3 kB / 0.5204 GB, free: 4.152 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006587/0.6233, allocations: 3.698 MB / 0.524 GB, free: 496 kB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.725e-05/0.6234, allocations: 4 kB / 0.524 GB, free: 492 kB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.2018/0.8252, allocations: 0.7338 MB / 0.5247 GB, free: 142.7 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003455/0.8287, allocations: 452.2 kB / 0.5251 GB, free: 142.7 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0171/0.8458, allocations: 8.498 MB / 0.5334 GB, free: 139.6 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004517/0.8504, allocations: 3.094 MB / 0.5364 GB, free: 138.5 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.005482/0.8559, allocations: 1.763 MB / 0.5382 GB, free: 138.4 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005974/0.8565, allocations: 235 kB / 0.5384 GB, free: 138.4 MB / 446.1 MB Notification: Performance of SimCode: time 1.092e-06/0.8565, allocations: 0 / 0.5384 GB, free: 138.4 MB / 446.1 MB Notification: Performance of Templates: time 0.04784/0.9044, allocations: 21.77 MB / 0.5596 GB, free: 127.7 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 -s cvode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringMassSystem/SpringMassSystem.csv","/var/lib/jenkins1/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