Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/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_3.2.3_cpp_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_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008543/0.0008543, allocations: 178.1 kB / 16.41 MB, free: 5.578 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.592/1.592, allocations: 205.4 MB / 222.6 MB, free: 13.61 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008829/0.0008831, allocations: 98.25 kB / 270.9 MB, free: 13.14 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003926/0.0003926, allocations: 12 kB / 327 MB, free: 15.04 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1093/0.1097, allocations: 47.58 MB / 374.6 MB, free: 15.38 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.2426/0.3523, allocations: 35.01 MB / 409.6 MB, free: 2.637 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.02318/0.3756, allocations: 8.015 MB / 417.6 MB, free: 13.2 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007865/0.3835, allocations: 165.5 kB / 417.7 MB, free: 13.18 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005375/0.3889, allocations: 1.789 MB / 419.5 MB, free: 12.3 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01529/0.4042, allocations: 5.505 MB / 425 MB, free: 8.559 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002603/0.4069, allocations: 0.6277 MB / 425.7 MB, free: 8.16 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.006088/0.413, allocations: 4.715 MB / 430.4 MB, free: 4.734 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004764/0.4178, allocations: 3.377 MB / 433.8 MB, free: 1.316 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002187/0.42, allocations: 1.269 MB / 435 MB, free: 44 kB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002737/0.4227, allocations: 2.013 MB / 437 MB, free: 14.02 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005085/0.4233, allocations: 148 kB / 437.2 MB, free: 13.88 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001592/0.4249, allocations: 0.7138 MB / 437.9 MB, free: 13.16 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001424/0.4263, allocations: 1.636 MB / 439.5 MB, free: 11.52 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008409/0.4272, allocations: 0.7882 MB / 440.3 MB, free: 10.73 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004449/0.4316, allocations: 4.853 MB / 445.2 MB, free: 5.863 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.5e-06/0.4316, allocations: 0 / 445.2 MB, free: 5.863 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.014e-06/0.4316, allocations: 0 / 445.2 MB, free: 5.863 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001836/0.4318, allocations: 0 / 445.2 MB, free: 5.863 MB / 314.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.006717/0.4386, allocations: 3.858 MB / 449 MB, free: 1.938 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.604e-05/0.4386, allocations: 8.031 kB / 449 MB, free: 1.93 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006879/0.4455, allocations: 1.972 MB / 451 MB, free: 15.95 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004252/0.4498, allocations: 2.307 MB / 453.3 MB, free: 13.58 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001664/0.45, allocations: 225.6 kB / 453.5 MB, free: 13.36 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000488/0.4505, allocations: 299.8 kB / 453.8 MB, free: 13.07 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01427/0.4647, allocations: 9.636 MB / 463.5 MB, free: 2.672 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001001/0.4649, allocations: 47.52 kB / 463.5 MB, free: 2.625 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003506/0.4652, allocations: 151.8 kB / 463.7 MB, free: 2.477 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002625/0.4679, allocations: 1.915 MB / 465.6 MB, free: 0.5547 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01335/0.4812, allocations: 7.611 MB / 473.2 MB, free: 8.93 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04186/0.5231, allocations: 37.75 MB / 0.499 GB, free: 2.016 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006591/0.5297, allocations: 2.874 MB / 0.5018 GB, free: 14.99 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001431/0.5312, allocations: 0.8763 MB / 0.5026 GB, free: 14.11 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006181/0.5374, allocations: 3.767 MB / 0.5063 GB, free: 10.14 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.46e-05/0.5375, allocations: 51.2 kB / 0.5064 GB, free: 10.08 MB / 394.7 MB Notification: Performance of pre-optimization done (n=134): time 4.849e-06/0.5375, allocations: 0 / 0.5064 GB, free: 10.08 MB / 394.7 MB Notification: Performance of matching and sorting (n=152): time 0.02189/0.5594, allocations: 9.051 MB / 0.5152 GB, free: 0.9062 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.781e-05/0.5595, allocations: 145.5 kB / 0.5153 GB, free: 0.7344 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005824/0.5654, allocations: 3.913 MB / 0.5192 GB, free: 12.84 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001911/0.5656, allocations: 49.7 kB / 0.5192 GB, free: 12.79 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002065/0.5677, allocations: 3.089 MB / 0.5222 GB, free: 9.652 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006065/0.5683, allocations: 0.6057 MB / 0.5228 GB, free: 9.039 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001893/0.5685, allocations: 116 kB / 0.5229 GB, free: 8.926 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0003572/0.5688, allocations: 0.5501 MB / 0.5235 GB, free: 8.367 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002363/0.5712, allocations: 1.557 MB / 0.525 GB, free: 6.805 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004755/0.576, allocations: 5.335 MB / 0.5302 GB, free: 15.57 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004026/0.58, allocations: 2.813 MB / 0.5329 GB, free: 12.76 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.279e-05/0.5801, allocations: 40.28 kB / 0.533 GB, free: 12.72 MB / 426.7 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.01036/0.5904, allocations: 6.616 MB / 0.5394 GB, free: 6.098 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.174e-05/0.5905, allocations: 68.12 kB / 0.5395 GB, free: 6.031 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001289/0.5907, allocations: 135.9 kB / 0.5396 GB, free: 5.898 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001671/0.5909, allocations: 199.9 kB / 0.5398 GB, free: 5.703 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003729/0.5946, allocations: 1.384 MB / 0.5412 GB, free: 4.316 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001839/0.5948, allocations: 263 kB / 0.5414 GB, free: 4.059 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003319/0.5981, allocations: 287.6 kB / 0.5417 GB, free: 3.777 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004641/0.5986, allocations: 372 kB / 0.5421 GB, free: 3.414 MB / 426.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004665/0.6033, allocations: 1.978 MB / 0.544 GB, free: 1.422 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009253/0.6042, allocations: 343.5 kB / 0.5443 GB, free: 1.082 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1733/0.7775, allocations: 1.234 MB / 0.5455 GB, free: 142.4 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.858e-05/0.7776, allocations: 17.53 kB / 0.5455 GB, free: 142.4 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.171e-05/0.7776, allocations: 1.75 kB / 0.5455 GB, free: 142.4 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.313e-05/0.7777, allocations: 7.359 kB / 0.5455 GB, free: 142.4 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009751/0.7874, allocations: 5.746 MB / 0.5512 GB, free: 140.6 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.805e-05/0.7875, allocations: 17.94 kB / 0.5512 GB, free: 140.6 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009764/0.7885, allocations: 273.3 kB / 0.5514 GB, free: 140.5 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.43e-05/0.7885, allocations: 28.66 kB / 0.5515 GB, free: 140.5 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.391e-05/0.7886, allocations: 51.81 kB / 0.5515 GB, free: 140.5 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.631e-05/0.7887, allocations: 40.12 kB / 0.5516 GB, free: 140.5 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.293e-05/0.7887, allocations: 32.45 kB / 0.5516 GB, free: 140.5 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003838/0.7925, allocations: 3.203 MB / 0.5547 GB, free: 138.7 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00119/0.7938, allocations: 0.5155 MB / 0.5552 GB, free: 138.6 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003207/0.7941, allocations: 50.86 kB / 0.5553 GB, free: 138.6 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001112/0.7952, allocations: 63.45 kB / 0.5553 GB, free: 138.6 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001705/0.7954, allocations: 150.5 kB / 0.5555 GB, free: 138.5 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.263e-05/0.7955, allocations: 66.2 kB / 0.5555 GB, free: 138.5 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.004237/0.7997, allocations: 2.427 MB / 0.5579 GB, free: 137.7 MB / 426.7 MB Notification: Performance of sort global known variables: time 3.21e-07/0.7997, allocations: 0 / 0.5579 GB, free: 137.7 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.005014/0.8048, allocations: 0.865 MB / 0.5587 GB, free: 137.6 MB / 426.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004239/0.8052, allocations: 207.4 kB / 0.5589 GB, free: 137.5 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.005781/0.811, allocations: 3.608 MB / 0.5625 GB, free: 136.3 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.251e-05/0.811, allocations: 1.812 kB / 0.5625 GB, free: 136.3 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009013/0.8119, allocations: 0.733 MB / 0.5632 GB, free: 136.1 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002686/0.8146, allocations: 452.9 kB / 0.5636 GB, free: 135.9 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01277/0.8274, allocations: 10.58 MB / 0.5739 GB, free: 129.9 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002587/0.8301, allocations: 3.096 MB / 0.577 GB, free: 128.7 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006994/0.8308, allocations: 282 kB / 0.5772 GB, free: 128.7 MB / 426.7 MB Notification: Performance of SimCode: time 9.82e-07/0.8308, allocations: 0 / 0.5772 GB, free: 128.7 MB / 426.7 MB Notification: Performance of Templates: time 0.06264/0.8934, allocations: 50.78 MB / 0.6268 GB, free: 79.09 MB / 426.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.sim & ./Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringMassSystem/SpringMassSystem.csv","../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches