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.0009023/0.0009023, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.001021/0.001021, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.437/1.437, allocations: 205.4 MB / 222.1 MB, free: 5.664 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.0004487/0.0004487, allocations: 12 kB / 278.9 MB, free: 12.84 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2388/0.2392, allocations: 47.58 MB / 326.4 MB, free: 1.641 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.02956/0.2688, allocations: 33.07 MB / 359.5 MB, free: 2.527 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01796/0.2868, allocations: 8.339 MB / 367.9 MB, free: 10.17 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006063/0.2929, allocations: 167.6 kB / 368 MB, free: 10 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005218/0.2981, allocations: 1.606 MB / 369.6 MB, free: 8.391 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01462/0.3128, allocations: 4.87 MB / 374.5 MB, free: 3.508 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002322/0.3151, allocations: 0.624 MB / 375.1 MB, free: 2.883 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004098/0.3193, allocations: 2.413 MB / 377.5 MB, free: 472 kB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004465/0.3237, allocations: 3.353 MB / 380.9 MB, free: 13.05 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001466/0.3252, allocations: 1.055 MB / 381.9 MB, free: 12 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001679/0.3269, allocations: 1.464 MB / 383.4 MB, free: 10.53 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00039/0.3273, allocations: 148 kB / 383.6 MB, free: 10.38 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001415/0.3287, allocations: 0.6905 MB / 384.2 MB, free: 9.691 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001354/0.3301, allocations: 1.531 MB / 385.8 MB, free: 8.156 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007992/0.3309, allocations: 0.792 MB / 386.6 MB, free: 7.355 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004369/0.3353, allocations: 4.867 MB / 391.4 MB, free: 2.477 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.386e-06/0.3353, allocations: 0 / 391.4 MB, free: 2.477 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.3353, allocations: 0 / 391.4 MB, free: 2.477 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001061/0.3354, allocations: 0 / 391.4 MB, free: 2.477 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.006566/0.342, allocations: 3.885 MB / 395.3 MB, free: 14.52 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.698e-05/0.3421, allocations: 8.031 kB / 395.3 MB, free: 14.52 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008008/0.3501, allocations: 2.272 MB / 397.6 MB, free: 12.23 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005475/0.3556, allocations: 2.707 MB / 400.3 MB, free: 9.465 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001826/0.3558, allocations: 221.6 kB / 400.5 MB, free: 9.246 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007052/0.3565, allocations: 299.8 kB / 400.8 MB, free: 8.953 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01677/0.3733, allocations: 9.702 MB / 410.5 MB, free: 14.49 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001189/0.3735, allocations: 47.53 kB / 410.6 MB, free: 14.45 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003926/0.3739, allocations: 143.8 kB / 410.7 MB, free: 14.3 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002695/0.3766, allocations: 1.919 MB / 412.6 MB, free: 12.38 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01473/0.3913, allocations: 7.695 MB / 420.3 MB, free: 4.668 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2488/0.6401, allocations: 37.87 MB / 458.2 MB, free: 102.8 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006339/0.6465, allocations: 2.896 MB / 461.1 MB, free: 102.2 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006081/0.6526, allocations: 3.819 MB / 464.9 MB, free: 100.7 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.414e-05/0.6527, allocations: 46.22 kB / 464.9 MB, free: 100.6 MB / 382.1 MB Notification: Performance of pre-optimization done (n=134): time 4.458e-06/0.6527, allocations: 0 / 464.9 MB, free: 100.6 MB / 382.1 MB Notification: Performance of matching and sorting (n=152): time 0.01999/0.6727, allocations: 9.434 MB / 474.4 MB, free: 97.09 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.517e-05/0.6728, allocations: 143.7 kB / 474.5 MB, free: 96.93 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004605/0.6774, allocations: 4.167 MB / 478.7 MB, free: 95.23 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001407/0.6776, allocations: 47.23 kB / 478.7 MB, free: 95.18 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001432/0.679, allocations: 3.091 MB / 481.8 MB, free: 92.48 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004161/0.6794, allocations: 0.6118 MB / 482.4 MB, free: 91.98 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001539/0.6796, allocations: 116 kB / 482.6 MB, free: 91.89 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002311/0.6798, allocations: 0.5472 MB / 483.1 MB, free: 91.41 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002098/0.6819, allocations: 1.544 MB / 484.6 MB, free: 90.68 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003288/0.6852, allocations: 5.284 MB / 489.9 MB, free: 84.27 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002982/0.6882, allocations: 2.806 MB / 492.7 MB, free: 81.64 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.262e-05/0.6883, allocations: 40 kB / 492.8 MB, free: 81.6 MB / 382.1 MB Notification: Performance of matching and sorting (n=762) (initialization): time 0.008189/0.6965, allocations: 6.564 MB / 499.3 MB, free: 75.04 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.773e-05/0.6966, allocations: 67.94 kB / 499.4 MB, free: 74.98 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.253e-05/0.6967, allocations: 136 kB / 499.5 MB, free: 74.84 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001414/0.6968, allocations: 196 kB / 499.7 MB, free: 74.65 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003294/0.7001, allocations: 1.369 MB / 0.4894 GB, free: 73.28 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001319/0.7003, allocations: 259 kB / 0.4896 GB, free: 73.03 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00362/0.7039, allocations: 299 kB / 0.4899 GB, free: 72.74 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003698/0.7043, allocations: 364.7 kB / 0.4902 GB, free: 72.38 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 (738): * Single equations (assignments): 735 * 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.002549/0.7068, allocations: 1.971 MB / 0.4922 GB, free: 70.4 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007233/0.7076, allocations: 342.7 kB / 0.4925 GB, free: 70.06 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001817/0.7094, allocations: 1.254 MB / 0.4937 GB, free: 68.79 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.574e-05/0.7094, allocations: 21.28 kB / 0.4937 GB, free: 68.77 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.131e-05/0.7095, allocations: 0 / 0.4937 GB, free: 68.77 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.112e-05/0.7095, allocations: 3.984 kB / 0.4937 GB, free: 68.77 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007865/0.7173, allocations: 5.765 MB / 0.4994 GB, free: 62.7 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.82e-05/0.7174, allocations: 19.95 kB / 0.4994 GB, free: 62.68 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008483/0.7183, allocations: 276.3 kB / 0.4996 GB, free: 62.41 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.089e-05/0.7183, allocations: 28 kB / 0.4997 GB, free: 62.38 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.712e-05/0.7184, allocations: 48 kB / 0.4997 GB, free: 62.34 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.995e-05/0.7184, allocations: 39.86 kB / 0.4998 GB, free: 62.3 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.247e-05/0.7184, allocations: 27.88 kB / 0.4998 GB, free: 62.27 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003502/0.7219, allocations: 5.298 MB / 0.505 GB, free: 56.09 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001261/0.7232, allocations: 0.5238 MB / 0.5055 GB, free: 55.54 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003114/0.7235, allocations: 52.61 kB / 0.5055 GB, free: 55.49 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001043/0.7246, allocations: 59.95 kB / 0.5056 GB, free: 55.43 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001416/0.7247, allocations: 148.2 kB / 0.5057 GB, free: 55.29 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.423e-05/0.7248, allocations: 68.92 kB / 0.5058 GB, free: 55.22 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.00352/0.7283, allocations: 2.615 MB / 0.5083 GB, free: 52.59 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.7283, allocations: 4 kB / 0.5083 GB, free: 52.59 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.005641/0.734, allocations: 0.8877 MB / 0.5092 GB, free: 51.71 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 (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.0004877/0.7345, allocations: 220 kB / 0.5094 GB, free: 51.49 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005508/0.74, allocations: 3.58 MB / 0.5129 GB, free: 47.94 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.522e-05/0.7401, allocations: 4 kB / 0.5129 GB, free: 47.94 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008792/0.7409, allocations: 0.7241 MB / 0.5136 GB, free: 47.22 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002674/0.7436, allocations: 427.5 kB / 0.514 GB, free: 46.8 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01487/0.7585, allocations: 10.13 MB / 0.5239 GB, free: 36.39 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002741/0.7613, allocations: 3.185 MB / 0.527 GB, free: 33.17 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.00396/0.7653, allocations: 1.78 MB / 0.5288 GB, free: 31.39 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004963/0.7658, allocations: 235.4 kB / 0.529 GB, free: 31.16 MB / 382.1 MB Notification: Performance of SimCode: time 1.683e-06/0.7658, allocations: 0 / 0.529 GB, free: 31.16 MB / 382.1 MB Notification: Performance of Templates: time 0.04446/0.8103, allocations: 26.23 MB / 0.5546 GB, free: 4.957 MB / 382.1 MB make -j1 -f Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: