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.001179/0.001179, allocations: 108.7 kB / 16.51 MB, free: 6.707 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.00118/0.00118, allocations: 186.5 kB / 17.42 MB, free: 6.07 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.412/1.412, allocations: 205.1 MB / 223.3 MB, free: 12.48 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.001062/0.001063, allocations: 48.31 kB / 279.3 MB, free: 3.574 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08884/0.08991, allocations: 46.62 MB / 326 MB, free: 4.883 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.03575/0.1257, allocations: 38.69 MB / 364.7 MB, free: 14.02 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01939/0.1451, allocations: 8.486 MB / 373.1 MB, free: 5.512 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007528/0.1528, allocations: 163.6 kB / 373.3 MB, free: 5.352 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004918/0.1577, allocations: 2.213 MB / 375.5 MB, free: 3.133 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005092/0.1628, allocations: 1.713 MB / 377.2 MB, free: 1.414 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001888/0.1647, allocations: 0.667 MB / 377.9 MB, free: 0.7461 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.2083/0.3731, allocations: 5.904 MB / 383.8 MB, free: 10.27 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005845/0.379, allocations: 2.875 MB / 386.7 MB, free: 9.977 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003013/0.382, allocations: 1.34 MB / 388 MB, free: 9.973 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00382/0.3859, allocations: 2.241 MB / 390.3 MB, free: 9.816 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009276/0.3868, allocations: 219.3 kB / 390.5 MB, free: 9.816 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002484/0.3893, allocations: 0.9002 MB / 391.4 MB, free: 9.816 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002295/0.3916, allocations: 1.768 MB / 393.1 MB, free: 9.629 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002766/0.3944, allocations: 2.048 MB / 395.2 MB, free: 8.859 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006681/0.4011, allocations: 6.122 MB / 401.3 MB, free: 6.934 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.589e-06/0.4011, allocations: 0 / 401.3 MB, free: 6.934 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.4011, allocations: 2.531 kB / 401.3 MB, free: 6.934 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001833/0.4013, allocations: 0 / 401.3 MB, free: 6.934 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.009617/0.4109, allocations: 4.61 MB / 405.9 MB, free: 4.109 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.592e-05/0.411, allocations: 8.781 kB / 405.9 MB, free: 4.109 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006702/0.4177, allocations: 1.922 MB / 407.8 MB, free: 3.117 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004629/0.4224, allocations: 2.344 MB / 410.2 MB, free: 1.789 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002305/0.4226, allocations: 234.2 kB / 410.4 MB, free: 1.715 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007121/0.4233, allocations: 293 kB / 410.7 MB, free: 1.648 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01746/0.4408, allocations: 9.642 MB / 420.3 MB, free: 8.895 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001802/0.441, allocations: 48 kB / 420.4 MB, free: 8.871 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000945/0.442, allocations: 149.6 kB / 420.5 MB, free: 8.762 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002898/0.4449, allocations: 1.919 MB / 422.5 MB, free: 6.871 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01757/0.4625, allocations: 7.622 MB / 430.1 MB, free: 15.43 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05391/0.5164, allocations: 37.76 MB / 467.8 MB, free: 8.992 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007349/0.5238, allocations: 2.89 MB / 470.7 MB, free: 5.969 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001651/0.5255, allocations: 0.8721 MB / 471.6 MB, free: 5.086 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006831/0.5324, allocations: 3.763 MB / 475.4 MB, free: 1.148 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.615e-05/0.5325, allocations: 54.05 kB / 475.4 MB, free: 1.094 MB / 382.1 MB Notification: Performance of pre-optimization done (n=134): time 3.977e-06/0.5325, allocations: 0 / 475.4 MB, free: 1.094 MB / 382.1 MB Notification: Performance of matching and sorting (n=152): time 0.02513/0.5576, allocations: 9.069 MB / 484.5 MB, free: 7.938 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.884e-05/0.5578, allocations: 147.8 kB / 484.6 MB, free: 7.77 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007804/0.5656, allocations: 3.944 MB / 488.6 MB, free: 3.844 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001707/0.5658, allocations: 45.7 kB / 488.6 MB, free: 3.793 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002362/0.5681, allocations: 3.09 MB / 491.7 MB, free: 0.707 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007156/0.5689, allocations: 0.6028 MB / 492.3 MB, free: 112 kB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001966/0.5708, allocations: 1.17 MB / 493.5 MB, free: 14.93 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 9.523e-05/0.5709, allocations: 305.1 kB / 493.8 MB, free: 14.62 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00276/0.5737, allocations: 1.577 MB / 495.4 MB, free: 13.04 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005118/0.5788, allocations: 5.361 MB / 0.489 GB, free: 5.852 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008333/0.5872, allocations: 7.534 MB / 0.4963 GB, free: 12.98 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001728/0.5874, allocations: 40 kB / 0.4964 GB, free: 12.95 MB / 430.1 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.01182/0.5992, allocations: 6.659 MB / 0.5029 GB, free: 6.758 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001164/0.5994, allocations: 60 kB / 0.5029 GB, free: 6.699 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002105/0.5996, allocations: 140.1 kB / 0.5031 GB, free: 6.562 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001749/0.5998, allocations: 176 kB / 0.5032 GB, free: 6.391 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004065/0.6038, allocations: 1.388 MB / 0.5046 GB, free: 5 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002179/0.6041, allocations: 259 kB / 0.5048 GB, free: 4.746 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004407/0.6085, allocations: 279.7 kB / 0.5051 GB, free: 4.473 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009924/0.6095, allocations: 372 kB / 0.5055 GB, free: 4.109 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.004268/0.6138, allocations: 1.982 MB / 0.5074 GB, free: 2.117 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007527/0.6145, allocations: 335.6 kB / 0.5077 GB, free: 1.785 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002646/0.6172, allocations: 1.25 MB / 0.5089 GB, free: 0.5273 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.181e-05/0.6173, allocations: 18.81 kB / 0.509 GB, free: 0.5117 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.421e-05/0.6173, allocations: 4 kB / 0.509 GB, free: 0.5078 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.384e-05/0.6173, allocations: 4.047 kB / 0.509 GB, free: 0.5039 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01254/0.6298, allocations: 5.758 MB / 0.5146 GB, free: 10.45 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.438e-05/0.6299, allocations: 20 kB / 0.5146 GB, free: 10.43 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001068/0.631, allocations: 275.5 kB / 0.5149 GB, free: 10.16 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.262e-05/0.6311, allocations: 31.94 kB / 0.5149 GB, free: 10.13 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001431/0.6312, allocations: 48 kB / 0.515 GB, free: 10.09 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.91e-05/0.6313, allocations: 36.36 kB / 0.515 GB, free: 10.05 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.314e-05/0.6313, allocations: 39.86 kB / 0.515 GB, free: 10.01 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004154/0.6354, allocations: 3.209 MB / 0.5182 GB, free: 6.543 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001393/0.6369, allocations: 0.5121 MB / 0.5187 GB, free: 6.008 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007574/0.6376, allocations: 47.98 kB / 0.5187 GB, free: 5.961 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001882/0.6395, allocations: 63.89 kB / 0.5188 GB, free: 5.898 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001987/0.6397, allocations: 147.4 kB / 0.5189 GB, free: 5.754 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001082/0.6398, allocations: 70.66 kB / 0.519 GB, free: 5.688 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.005297/0.6452, allocations: 2.451 MB / 0.5214 GB, free: 3.258 MB / 446.1 MB Notification: Performance of sort global known variables: time 4.01e-07/0.6452, allocations: 0 / 0.5214 GB, free: 3.258 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.007977/0.6532, allocations: 0.8672 MB / 0.5222 GB, free: 2.391 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.000717/0.6539, allocations: 206 kB / 0.5224 GB, free: 2.18 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007252/0.6612, allocations: 3.635 MB / 0.526 GB, free: 14.57 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.965e-05/0.6612, allocations: 4 kB / 0.526 GB, free: 14.57 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001288/0.6625, allocations: 0.7273 MB / 0.5267 GB, free: 13.85 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005266/0.6678, allocations: 449.3 kB / 0.5271 GB, free: 13.41 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02101/0.6888, allocations: 10.53 MB / 0.5374 GB, free: 2.609 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1842/0.8731, allocations: 3.107 MB / 0.5404 GB, free: 171.8 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.005709/0.8788, allocations: 1.772 MB / 0.5421 GB, free: 171.7 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005529/0.8794, allocations: 235 kB / 0.5424 GB, free: 171.7 MB / 462.1 MB Notification: Performance of SimCode: time 1.142e-06/0.8794, allocations: 3.812 kB / 0.5424 GB, free: 171.7 MB / 462.1 MB Notification: Performance of Templates: time 0.05374/0.9331, allocations: 26.24 MB / 0.568 GB, free: 164.4 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)