Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.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.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.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.001173/0.001173, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001333/0.001334, allocations: 196.4 kB / 16.14 MB, free: 6.707 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.435/1.435, allocations: 205.1 MB / 222 MB, free: 5.008 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.00111/0.00111, allocations: 51.92 kB / 278.1 MB, free: 13.01 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2464/0.2475, allocations: 46.63 MB / 324.7 MB, free: 1.824 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.03613/0.2837, allocations: 38.69 MB / 363.4 MB, free: 13.35 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02064/0.3044, allocations: 8.494 MB / 371.9 MB, free: 4.828 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007919/0.3124, allocations: 167.6 kB / 372 MB, free: 4.664 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00485/0.3172, allocations: 2.205 MB / 374.2 MB, free: 2.453 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005857/0.3231, allocations: 1.713 MB / 376 MB, free: 0.7344 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002045/0.3252, allocations: 0.6592 MB / 376.6 MB, free: 76 kB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.007212/0.3324, allocations: 5.923 MB / 382.5 MB, free: 10.13 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003803/0.3363, allocations: 2.885 MB / 385.4 MB, free: 7.195 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002285/0.3386, allocations: 1.331 MB / 386.7 MB, free: 5.859 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002995/0.3416, allocations: 2.239 MB / 389 MB, free: 3.613 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005874/0.3422, allocations: 216 kB / 389.2 MB, free: 3.402 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001944/0.3441, allocations: 0.9088 MB / 390.1 MB, free: 2.492 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001622/0.3458, allocations: 1.761 MB / 391.9 MB, free: 0.7266 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002279/0.3481, allocations: 2.05 MB / 393.9 MB, free: 14.66 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006412/0.3545, allocations: 6.117 MB / 400 MB, free: 8.527 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.42e-06/0.3545, allocations: 0 / 400 MB, free: 8.527 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.3545, allocations: 0 / 400 MB, free: 8.527 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001929/0.3547, allocations: 0 / 400 MB, free: 8.527 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.01098/0.3657, allocations: 4.61 MB / 404.6 MB, free: 3.848 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.53e-05/0.3658, allocations: 8.031 kB / 404.7 MB, free: 3.84 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007027/0.3728, allocations: 1.929 MB / 406.6 MB, free: 1.902 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004347/0.3772, allocations: 2.347 MB / 408.9 MB, free: 15.49 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001732/0.3774, allocations: 225.6 kB / 409.2 MB, free: 15.27 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005992/0.378, allocations: 303.7 kB / 409.4 MB, free: 14.97 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0178/0.3958, allocations: 9.635 MB / 419.1 MB, free: 4.578 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001263/0.396, allocations: 47.53 kB / 419.1 MB, free: 4.531 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004221/0.3964, allocations: 147.8 kB / 419.3 MB, free: 4.387 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003186/0.3996, allocations: 1.915 MB / 421.2 MB, free: 2.469 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01501/0.4146, allocations: 7.629 MB / 428.8 MB, free: 10.82 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2478/0.6625, allocations: 37.75 MB / 466.6 MB, free: 86.48 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006703/0.6692, allocations: 2.883 MB / 469.4 MB, free: 85.8 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001232/0.6705, allocations: 0.869 MB / 470.3 MB, free: 85.77 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006208/0.6767, allocations: 3.767 MB / 474.1 MB, free: 83.56 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.428e-05/0.6768, allocations: 56.22 kB / 474.1 MB, free: 83.5 MB / 382.1 MB Notification: Performance of pre-optimization done (n=134): time 3.506e-06/0.6768, allocations: 0 / 474.1 MB, free: 83.5 MB / 382.1 MB Notification: Performance of matching and sorting (n=152): time 0.02003/0.6969, allocations: 9.07 MB / 483.2 MB, free: 78.79 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.236e-05/0.6969, allocations: 145 kB / 483.4 MB, free: 78.62 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004367/0.7013, allocations: 3.941 MB / 487.3 MB, free: 76.33 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001378/0.7015, allocations: 45.7 kB / 487.3 MB, free: 76.28 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001271/0.7028, allocations: 3.078 MB / 490.4 MB, free: 73.21 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003757/0.7031, allocations: 0.6198 MB / 491 MB, free: 72.59 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009984/0.7041, allocations: 1.17 MB / 492.2 MB, free: 71.41 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.986e-05/0.7042, allocations: 301.1 kB / 492.5 MB, free: 71.12 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001854/0.7061, allocations: 1.573 MB / 494.1 MB, free: 69.54 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003428/0.7095, allocations: 5.359 MB / 499.4 MB, free: 62.46 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005884/0.7154, allocations: 7.541 MB / 0.4951 GB, free: 53.19 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.416e-05/0.7155, allocations: 40 kB / 0.4951 GB, free: 53.15 MB / 382.1 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.008659/0.7242, allocations: 6.651 MB / 0.5016 GB, free: 46.5 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.474e-05/0.7243, allocations: 64 kB / 0.5017 GB, free: 46.43 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.971e-05/0.7244, allocations: 136 kB / 0.5018 GB, free: 46.3 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001174/0.7245, allocations: 184 kB / 0.502 GB, free: 46.12 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003291/0.7278, allocations: 1.384 MB / 0.5033 GB, free: 44.73 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001305/0.7279, allocations: 259 kB / 0.5036 GB, free: 44.48 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003527/0.7315, allocations: 283.6 kB / 0.5039 GB, free: 44.2 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003265/0.7318, allocations: 364 kB / 0.5042 GB, free: 43.85 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.002521/0.7343, allocations: 1.986 MB / 0.5061 GB, free: 41.86 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005608/0.7349, allocations: 339.6 kB / 0.5065 GB, free: 41.52 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00184/0.7368, allocations: 1.254 MB / 0.5077 GB, free: 40.26 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.853e-05/0.7368, allocations: 16 kB / 0.5077 GB, free: 40.25 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.138e-05/0.7368, allocations: 3.938 kB / 0.5077 GB, free: 40.24 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.271e-05/0.7368, allocations: 7.984 kB / 0.5077 GB, free: 40.23 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007547/0.7444, allocations: 5.753 MB / 0.5133 GB, free: 34.18 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-05/0.7444, allocations: 16 kB / 0.5134 GB, free: 34.16 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008322/0.7452, allocations: 284.4 kB / 0.5136 GB, free: 33.89 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.017e-05/0.7453, allocations: 24 kB / 0.5136 GB, free: 33.86 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.594e-05/0.7454, allocations: 51.98 kB / 0.5137 GB, free: 33.81 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.128e-05/0.7454, allocations: 35.86 kB / 0.5137 GB, free: 33.78 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.587e-05/0.7454, allocations: 29.88 kB / 0.5138 GB, free: 33.75 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002995/0.7484, allocations: 3.223 MB / 0.5169 GB, free: 30.27 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009057/0.7493, allocations: 0.5044 MB / 0.5174 GB, free: 29.74 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002926/0.7496, allocations: 51.48 kB / 0.5174 GB, free: 29.7 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009843/0.7506, allocations: 63.95 kB / 0.5175 GB, free: 29.63 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000138/0.7508, allocations: 151.4 kB / 0.5177 GB, free: 29.48 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.819e-05/0.7508, allocations: 67.44 kB / 0.5177 GB, free: 29.42 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002769/0.7536, allocations: 2.45 MB / 0.5201 GB, free: 26.99 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.7536, allocations: 0 / 0.5201 GB, free: 26.99 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.004225/0.7579, allocations: 0.8696 MB / 0.521 GB, free: 26.13 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.0003243/0.7582, allocations: 204.8 kB / 0.5212 GB, free: 25.93 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005099/0.7633, allocations: 3.639 MB / 0.5247 GB, free: 22.32 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.935e-06/0.7633, allocations: 3.938 kB / 0.5247 GB, free: 22.31 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000749/0.7641, allocations: 0.7269 MB / 0.5254 GB, free: 21.59 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002467/0.7666, allocations: 443.6 kB / 0.5258 GB, free: 21.16 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01186/0.7784, allocations: 10.54 MB / 0.5361 GB, free: 10.35 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00239/0.7808, allocations: 3.107 MB / 0.5392 GB, free: 7.207 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.003703/0.7846, allocations: 1.771 MB / 0.5409 GB, free: 5.43 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004128/0.785, allocations: 231.4 kB / 0.5411 GB, free: 5.203 MB / 382.1 MB Notification: Performance of SimCode: time 8.21e-07/0.785, allocations: 0 / 0.5411 GB, free: 5.203 MB / 382.1 MB Notification: Performance of Templates: time 0.05492/0.8399, allocations: 26.23 MB / 0.5667 GB, free: 11 MB / 414.1 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.makefile (rm -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; mkfifo Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe >> ../files/Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.sim & ./Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe 2>&1)