Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001069/0.001069, allocations: 95.23 kB / 16.65 MB, free: 6.535 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001398/0.001398, allocations: 175.4 kB / 17.56 MB, free: 6.18 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.456/1.456, allocations: 205.4 MB / 223.7 MB, free: 13 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004777/0.0004778, allocations: 18.81 kB / 280.7 MB, free: 3.402 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0983/0.09879, allocations: 47.58 MB / 328.3 MB, free: 3.746 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.03513/0.134, allocations: 37.61 MB / 365.9 MB, free: 13.98 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02094/0.1549, allocations: 8.432 MB / 374.4 MB, free: 5.523 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007832/0.1628, allocations: 159.6 kB / 374.5 MB, free: 5.367 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00183/0.1647, allocations: 421.8 kB / 374.9 MB, free: 4.953 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005324/0.17, allocations: 1.713 MB / 376.6 MB, free: 3.234 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002053/0.1721, allocations: 0.667 MB / 377.3 MB, free: 2.566 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.2254/0.3975, allocations: 5.907 MB / 383.2 MB, free: 9.641 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006673/0.4042, allocations: 3.702 MB / 386.9 MB, free: 9.23 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002828/0.4071, allocations: 1.171 MB / 388.1 MB, free: 9.227 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003899/0.411, allocations: 2.031 MB / 390.1 MB, free: 9.156 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001016/0.4121, allocations: 142.8 kB / 390.3 MB, free: 9.156 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002307/0.4144, allocations: 0.8335 MB / 391.1 MB, free: 9.156 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002075/0.4165, allocations: 1.671 MB / 392.8 MB, free: 8.969 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002466/0.4189, allocations: 1.946 MB / 394.7 MB, free: 8.168 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006763/0.4257, allocations: 5.963 MB / 400.7 MB, free: 5.961 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.532e-06/0.4258, allocations: 0 / 400.7 MB, free: 5.961 MB / 318.1 MB Notification: Performance of FrontEnd: time 5.19e-06/0.4258, allocations: 1.844 kB / 400.7 MB, free: 5.961 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.00028/0.4261, allocations: 0 / 400.7 MB, free: 5.961 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.008317/0.4344, allocations: 3.801 MB / 404.5 MB, free: 3.566 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.259e-05/0.4345, allocations: 10.31 kB / 404.5 MB, free: 3.566 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007918/0.4424, allocations: 1.979 MB / 406.5 MB, free: 2.621 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005393/0.4478, allocations: 2.35 MB / 408.8 MB, free: 1.738 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001871/0.448, allocations: 231.7 kB / 409 MB, free: 1.727 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008396/0.4489, allocations: 298.5 kB / 409.3 MB, free: 1.719 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01722/0.4661, allocations: 9.657 MB / 419 MB, free: 11.38 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001319/0.4663, allocations: 45.84 kB / 419 MB, free: 11.36 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004031/0.4667, allocations: 146.6 kB / 419.2 MB, free: 11.25 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003017/0.4697, allocations: 1.921 MB / 421.1 MB, free: 9.352 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01733/0.4871, allocations: 7.65 MB / 428.8 MB, free: 1.887 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06458/0.5517, allocations: 37.76 MB / 466.5 MB, free: 11.44 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01266/0.5644, allocations: 2.898 MB / 469.4 MB, free: 8.41 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002554/0.5671, allocations: 0.8714 MB / 470.3 MB, free: 7.527 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0112/0.5783, allocations: 3.763 MB / 474 MB, free: 3.59 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.267e-05/0.5784, allocations: 46.31 kB / 474.1 MB, free: 3.539 MB / 382.1 MB Notification: Performance of pre-optimization done (n=134): time 6.803e-06/0.5784, allocations: 0 / 474.1 MB, free: 3.539 MB / 382.1 MB Notification: Performance of matching and sorting (n=152): time 0.02769/0.6061, allocations: 9.081 MB / 483.2 MB, free: 10.37 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.245e-05/0.6063, allocations: 149.2 kB / 483.3 MB, free: 10.2 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005762/0.612, allocations: 3.94 MB / 487.3 MB, free: 6.273 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002275/0.6123, allocations: 41.7 kB / 487.3 MB, free: 6.227 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002703/0.615, allocations: 3.09 MB / 490.4 MB, free: 3.141 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000846/0.6159, allocations: 0.6103 MB / 491 MB, free: 2.535 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006115/0.6165, allocations: 0.4951 MB / 491.5 MB, free: 2.031 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001266/0.6166, allocations: 309.1 kB / 491.8 MB, free: 1.727 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002506/0.6191, allocations: 1.58 MB / 493.4 MB, free: 148 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004922/0.6241, allocations: 5.352 MB / 498.7 MB, free: 8.961 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008437/0.6325, allocations: 7.543 MB / 0.4944 GB, free: 72 kB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001102/0.6327, allocations: 40 kB / 0.4944 GB, free: 32 kB / 414.1 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.01173/0.6444, allocations: 6.663 MB / 0.501 GB, free: 9.973 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.312e-05/0.6445, allocations: 64 kB / 0.501 GB, free: 9.91 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000149/0.6447, allocations: 136.1 kB / 0.5011 GB, free: 9.777 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001638/0.6448, allocations: 180 kB / 0.5013 GB, free: 9.602 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00452/0.6494, allocations: 1.384 MB / 0.5027 GB, free: 8.215 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002074/0.6496, allocations: 263 kB / 0.5029 GB, free: 7.957 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004009/0.6536, allocations: 286.8 kB / 0.5032 GB, free: 7.68 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005139/0.6541, allocations: 372 kB / 0.5035 GB, free: 7.316 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.003924/0.6581, allocations: 1.974 MB / 0.5055 GB, free: 5.332 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000886/0.659, allocations: 335.7 kB / 0.5058 GB, free: 5 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002301/0.6613, allocations: 1.254 MB / 0.507 GB, free: 3.738 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.682e-05/0.6613, allocations: 16 kB / 0.507 GB, free: 3.723 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.866e-06/0.6613, allocations: 0 / 0.507 GB, free: 3.723 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.655e-05/0.6613, allocations: 12.03 kB / 0.507 GB, free: 3.711 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009093/0.6704, allocations: 5.753 MB / 0.5127 GB, free: 13.67 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.342e-05/0.6705, allocations: 20 kB / 0.5127 GB, free: 13.65 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009448/0.6714, allocations: 275.5 kB / 0.5129 GB, free: 13.38 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.841e-05/0.6715, allocations: 28 kB / 0.513 GB, free: 13.35 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.541e-05/0.6716, allocations: 47.98 kB / 0.513 GB, free: 13.3 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.695e-05/0.6716, allocations: 36.39 kB / 0.5131 GB, free: 13.27 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.219e-05/0.6716, allocations: 35.88 kB / 0.5131 GB, free: 13.23 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003811/0.6755, allocations: 3.207 MB / 0.5162 GB, free: 9.766 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001163/0.6766, allocations: 0.52 MB / 0.5167 GB, free: 9.223 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000314/0.677, allocations: 51.92 kB / 0.5168 GB, free: 9.172 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001066/0.678, allocations: 63.95 kB / 0.5168 GB, free: 9.109 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001883/0.6782, allocations: 149.6 kB / 0.517 GB, free: 8.965 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.707e-05/0.6783, allocations: 79.86 kB / 0.5171 GB, free: 8.887 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004252/0.6826, allocations: 2.45 MB / 0.5194 GB, free: 6.457 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.6826, allocations: 0 / 0.5194 GB, free: 6.457 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004936/0.6876, allocations: 0.8633 MB / 0.5203 GB, free: 5.594 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.0004424/0.688, allocations: 199.6 kB / 0.5205 GB, free: 5.391 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006238/0.6943, allocations: 3.638 MB / 0.524 GB, free: 1.781 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.29e-05/0.6943, allocations: 0 / 0.524 GB, free: 1.781 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001051/0.6954, allocations: 0.7307 MB / 0.5247 GB, free: 1.059 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01176/0.7071, allocations: 453.4 kB / 0.5252 GB, free: 0.6172 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01554/0.7227, allocations: 10.63 MB / 0.5356 GB, free: 5.699 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003282/0.726, allocations: 3.104 MB / 0.5386 GB, free: 2.562 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.00458/0.7306, allocations: 1.77 MB / 0.5403 GB, free: 0.7852 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006137/0.7313, allocations: 235.4 kB / 0.5405 GB, free: 0.5547 MB / 462.1 MB Notification: Performance of SimCode: time 1.854e-06/0.7313, allocations: 0 / 0.5405 GB, free: 0.5547 MB / 462.1 MB Notification: Performance of Templates: time 0.2586/0.9898, allocations: 26.08 MB / 0.566 GB, free: 164.6 MB / 462.1 MB make -j1 -f Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.makefile (rm -f Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; mkfifo Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe >> ../files/Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.sim & ./Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe 2>&1)