Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_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.1_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.1_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.001189/0.001189, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001364/0.001364, allocations: 194.2 kB / 16.13 MB, free: 6.66 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.51/1.51, allocations: 205.1 MB / 222 MB, free: 4.727 MB / 174.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.001498/0.001498, allocations: 55.92 kB / 278.1 MB, free: 12.75 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2614/0.2629, allocations: 46.63 MB / 324.7 MB, free: 1.93 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.03847/0.3014, allocations: 38.69 MB / 363.4 MB, free: 13.32 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0236/0.3251, allocations: 8.51 MB / 371.9 MB, free: 4.789 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009221/0.3344, allocations: 163.6 kB / 372 MB, free: 4.629 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005055/0.3395, allocations: 2.201 MB / 374.2 MB, free: 2.422 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005675/0.3452, allocations: 1.709 MB / 375.9 MB, free: 0.707 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001841/0.3471, allocations: 0.6592 MB / 376.6 MB, free: 48 kB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00754/0.3546, allocations: 5.915 MB / 382.5 MB, free: 10.11 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004895/0.3596, allocations: 2.881 MB / 385.4 MB, free: 7.176 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002976/0.3626, allocations: 1.339 MB / 386.7 MB, free: 5.832 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003706/0.3663, allocations: 2.239 MB / 389 MB, free: 3.586 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001214/0.3675, allocations: 216 kB / 389.2 MB, free: 3.375 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003415/0.371, allocations: 0.9088 MB / 390.1 MB, free: 2.465 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002957/0.374, allocations: 1.769 MB / 391.9 MB, free: 0.6914 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004385/0.3784, allocations: 2.046 MB / 393.9 MB, free: 14.63 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008152/0.3865, allocations: 6.12 MB / 400 MB, free: 8.492 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.079e-06/0.3866, allocations: 0 / 400 MB, free: 8.492 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.3866, allocations: 0 / 400 MB, free: 8.492 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001679/0.3867, allocations: 0 / 400 MB, free: 8.492 MB / 334.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.008782/0.3955, allocations: 4.607 MB / 404.6 MB, free: 3.816 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.114e-05/0.3956, allocations: 12.03 kB / 404.7 MB, free: 3.805 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00748/0.4031, allocations: 1.918 MB / 406.6 MB, free: 1.879 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00505/0.4082, allocations: 2.347 MB / 408.9 MB, free: 15.47 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002482/0.4085, allocations: 229.6 kB / 409.1 MB, free: 15.24 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001192/0.4097, allocations: 299.7 kB / 409.4 MB, free: 14.95 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01835/0.4281, allocations: 9.643 MB / 419.1 MB, free: 4.547 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002046/0.4283, allocations: 47.53 kB / 419.1 MB, free: 4.5 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001001/0.4293, allocations: 147.9 kB / 419.3 MB, free: 4.355 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003031/0.4324, allocations: 1.915 MB / 421.2 MB, free: 2.438 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01724/0.4496, allocations: 7.633 MB / 428.8 MB, free: 10.79 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2692/0.7188, allocations: 37.74 MB / 466.6 MB, free: 86.61 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007006/0.7259, allocations: 2.879 MB / 469.4 MB, free: 85.94 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00143/0.7273, allocations: 0.8667 MB / 470.3 MB, free: 85.9 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006868/0.7342, allocations: 3.777 MB / 474.1 MB, free: 83.65 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.457e-05/0.7343, allocations: 47.72 kB / 474.1 MB, free: 83.6 MB / 382.1 MB Notification: Performance of pre-optimization done (n=134): time 4.418e-06/0.7344, allocations: 3.031 kB / 474.1 MB, free: 83.6 MB / 382.1 MB Notification: Performance of matching and sorting (n=152): time 0.02322/0.7576, allocations: 9.068 MB / 483.2 MB, free: 78.92 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.889e-05/0.7577, allocations: 140.9 kB / 483.3 MB, free: 78.76 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006343/0.7641, allocations: 3.939 MB / 487.3 MB, free: 76.32 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002034/0.7643, allocations: 52.72 kB / 487.3 MB, free: 76.27 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0018/0.7661, allocations: 3.083 MB / 490.4 MB, free: 73.19 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006595/0.7668, allocations: 0.615 MB / 491 MB, free: 72.58 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001695/0.7685, allocations: 1.167 MB / 492.2 MB, free: 71.4 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.52e-05/0.7686, allocations: 301.1 kB / 492.5 MB, free: 71.11 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002325/0.7709, allocations: 1.577 MB / 494.1 MB, free: 69.52 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003691/0.7746, allocations: 5.356 MB / 499.4 MB, free: 62.45 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006671/0.7813, allocations: 7.534 MB / 0.4951 GB, free: 53.18 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.71e-05/0.7814, allocations: 43.94 kB / 0.4951 GB, free: 53.14 MB / 382.1 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.009861/0.7913, allocations: 6.658 MB / 0.5016 GB, free: 46.48 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.617e-05/0.7914, allocations: 65 kB / 0.5017 GB, free: 46.42 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001005/0.7915, allocations: 136 kB / 0.5018 GB, free: 46.29 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000118/0.7916, allocations: 183.9 kB / 0.502 GB, free: 46.11 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003422/0.7951, allocations: 1.384 MB / 0.5033 GB, free: 44.72 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001382/0.7952, allocations: 265.7 kB / 0.5036 GB, free: 44.46 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004803/0.8, allocations: 279.6 kB / 0.5039 GB, free: 44.19 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007767/0.8008, allocations: 368 kB / 0.5042 GB, free: 43.83 MB / 382.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.003096/0.8039, allocations: 1.983 MB / 0.5061 GB, free: 41.84 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006192/0.8046, allocations: 335.6 kB / 0.5065 GB, free: 41.5 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001928/0.8065, allocations: 1.254 MB / 0.5077 GB, free: 40.25 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.164e-05/0.8066, allocations: 20 kB / 0.5077 GB, free: 40.23 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.651e-05/0.8066, allocations: 0 / 0.5077 GB, free: 40.23 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.505e-05/0.8066, allocations: 11.97 kB / 0.5077 GB, free: 40.21 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008043/0.8146, allocations: 5.754 MB / 0.5133 GB, free: 34.16 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.681e-05/0.8147, allocations: 16 kB / 0.5134 GB, free: 34.14 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008871/0.8156, allocations: 275.5 kB / 0.5136 GB, free: 33.88 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.039e-05/0.8156, allocations: 24 kB / 0.5136 GB, free: 33.85 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.504e-05/0.8157, allocations: 55.98 kB / 0.5137 GB, free: 33.8 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.932e-05/0.8157, allocations: 35.86 kB / 0.5137 GB, free: 33.76 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.271e-05/0.8158, allocations: 28.25 kB / 0.5138 GB, free: 33.73 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003099/0.8189, allocations: 3.221 MB / 0.5169 GB, free: 30.25 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001065/0.8199, allocations: 0.5083 MB / 0.5174 GB, free: 29.72 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003386/0.8203, allocations: 47.98 kB / 0.5174 GB, free: 29.68 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001077/0.8214, allocations: 59.95 kB / 0.5175 GB, free: 29.62 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001687/0.8216, allocations: 154.7 kB / 0.5176 GB, free: 29.47 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.669e-05/0.8217, allocations: 64 kB / 0.5177 GB, free: 29.41 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.003514/0.8252, allocations: 2.454 MB / 0.5201 GB, free: 26.97 MB / 382.1 MB Notification: Performance of sort global known variables: time 5.41e-07/0.8252, allocations: 0 / 0.5201 GB, free: 26.97 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.004491/0.8297, allocations: 0.8735 MB / 0.521 GB, free: 26.11 MB / 382.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.0003498/0.83, allocations: 200.3 kB / 0.5212 GB, free: 25.91 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004959/0.835, allocations: 3.643 MB / 0.5247 GB, free: 22.3 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.056e-05/0.835, allocations: 0 / 0.5247 GB, free: 22.3 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000843/0.8359, allocations: 0.731 MB / 0.5254 GB, free: 21.57 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002776/0.8387, allocations: 442.7 kB / 0.5258 GB, free: 21.14 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01411/0.8528, allocations: 10.54 MB / 0.5361 GB, free: 10.32 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002705/0.8556, allocations: 3.107 MB / 0.5392 GB, free: 7.184 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.004132/0.8597, allocations: 1.765 MB / 0.5409 GB, free: 5.41 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005495/0.8603, allocations: 231.4 kB / 0.5411 GB, free: 5.184 MB / 382.1 MB Notification: Performance of SimCode: time 1.152e-06/0.8603, allocations: 0 / 0.5411 GB, free: 5.184 MB / 382.1 MB Notification: Performance of Templates: time 0.05591/0.9162, allocations: 26.24 MB / 0.5667 GB, free: 10.98 MB / 414.1 MB make -j1 -f Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.makefile (rm -f Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; mkfifo Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe >> ../files/Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.sim & ./Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe 2>&1)