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.0008888/0.0008888, allocations: 100 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.0009805/0.0009805, 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.639/1.639, allocations: 205.4 MB / 222.1 MB, free: 5.648 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.0004918/0.0004919, allocations: 16 kB / 278.9 MB, free: 12.83 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2665/0.267, allocations: 47.58 MB / 326.5 MB, free: 1.41 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.03071/0.2977, allocations: 33.07 MB / 359.5 MB, free: 2.367 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.02552/0.3233, allocations: 8.343 MB / 367.9 MB, free: 10 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008685/0.332, allocations: 163.6 kB / 368 MB, free: 9.844 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00601/0.338, allocations: 1.61 MB / 369.6 MB, free: 8.227 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01581/0.3539, allocations: 4.866 MB / 374.5 MB, free: 3.348 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002804/0.3567, allocations: 0.6201 MB / 375.1 MB, free: 2.723 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004923/0.3617, allocations: 2.41 MB / 377.5 MB, free: 312 kB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005633/0.3673, allocations: 3.349 MB / 380.9 MB, free: 12.9 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002453/0.3698, allocations: 1.055 MB / 381.9 MB, free: 11.84 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002638/0.3724, allocations: 1.468 MB / 383.4 MB, free: 10.37 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009078/0.3734, allocations: 144 kB / 383.5 MB, free: 10.23 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002184/0.3756, allocations: 0.6905 MB / 384.2 MB, free: 9.539 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00227/0.3779, allocations: 1.531 MB / 385.8 MB, free: 8.004 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001648/0.3795, allocations: 0.7882 MB / 386.6 MB, free: 7.207 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006479/0.386, allocations: 4.871 MB / 391.4 MB, free: 2.324 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.3861, allocations: 0 / 391.4 MB, free: 2.324 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.565e-06/0.3861, allocations: 0 / 391.4 MB, free: 2.324 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0003066/0.3864, allocations: 0 / 391.4 MB, free: 2.324 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.008937/0.3953, allocations: 3.881 MB / 395.3 MB, free: 14.38 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.792e-05/0.3954, allocations: 8.031 kB / 395.3 MB, free: 14.37 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00839/0.4038, allocations: 2.272 MB / 397.6 MB, free: 12.09 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005811/0.4096, allocations: 2.711 MB / 400.3 MB, free: 9.312 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001966/0.4099, allocations: 225.6 kB / 400.5 MB, free: 9.09 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007268/0.4106, allocations: 295.8 kB / 400.8 MB, free: 8.801 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01634/0.4269, allocations: 9.694 MB / 410.5 MB, free: 14.34 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001186/0.4271, allocations: 51.53 kB / 410.6 MB, free: 14.29 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003754/0.4275, allocations: 147.8 kB / 410.7 MB, free: 14.15 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002821/0.4303, allocations: 1.915 MB / 412.6 MB, free: 12.23 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01586/0.4462, allocations: 7.699 MB / 420.3 MB, free: 4.516 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2533/0.6996, allocations: 37.88 MB / 458.2 MB, free: 102.7 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006476/0.7061, allocations: 2.901 MB / 461.1 MB, free: 102.1 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006893/0.713, allocations: 3.81 MB / 464.9 MB, free: 100.6 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.405e-05/0.7131, allocations: 46.62 kB / 464.9 MB, free: 100.5 MB / 382.1 MB Notification: Performance of pre-optimization done (n=134): time 5.06e-06/0.7131, allocations: 0 / 464.9 MB, free: 100.5 MB / 382.1 MB Notification: Performance of matching and sorting (n=152): time 0.02363/0.7367, allocations: 9.435 MB / 474.4 MB, free: 96.89 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.871e-05/0.7368, allocations: 144.8 kB / 474.5 MB, free: 96.73 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004934/0.7418, allocations: 4.165 MB / 478.7 MB, free: 95.01 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001338/0.7419, allocations: 45.64 kB / 478.7 MB, free: 94.96 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00141/0.7434, allocations: 3.091 MB / 481.8 MB, free: 92.26 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003886/0.7438, allocations: 0.6054 MB / 482.4 MB, free: 91.76 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001612/0.7439, allocations: 118.4 kB / 482.5 MB, free: 91.67 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002224/0.7442, allocations: 0.5522 MB / 483.1 MB, free: 91.18 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001942/0.7461, allocations: 1.546 MB / 484.6 MB, free: 90.46 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003066/0.7492, allocations: 5.283 MB / 489.9 MB, free: 83.96 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002886/0.7521, allocations: 2.801 MB / 492.7 MB, free: 81.32 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.037e-05/0.7521, allocations: 40 kB / 492.8 MB, free: 81.29 MB / 382.1 MB Notification: Performance of matching and sorting (n=762) (initialization): time 0.008585/0.7607, allocations: 6.572 MB / 499.3 MB, free: 74.72 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.902e-05/0.7608, allocations: 64.06 kB / 499.4 MB, free: 74.66 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.414e-05/0.7609, allocations: 143.1 kB / 499.5 MB, free: 74.52 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001324/0.761, allocations: 196 kB / 499.7 MB, free: 74.33 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00354/0.7646, allocations: 1.369 MB / 0.4894 GB, free: 72.96 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001566/0.7648, allocations: 266.9 kB / 0.4896 GB, free: 72.7 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004139/0.7689, allocations: 291.5 kB / 0.4899 GB, free: 72.41 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003533/0.7693, allocations: 360.9 kB / 0.4902 GB, free: 72.06 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.002619/0.7719, allocations: 1.975 MB / 0.4922 GB, free: 70.07 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005769/0.7725, allocations: 342.7 kB / 0.4925 GB, free: 69.74 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001697/0.7742, allocations: 1.246 MB / 0.4937 GB, free: 68.48 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.28e-05/0.7742, allocations: 25.12 kB / 0.4937 GB, free: 68.45 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.017e-05/0.7742, allocations: 0 / 0.4937 GB, free: 68.45 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.206e-05/0.7743, allocations: 7.969 kB / 0.4937 GB, free: 68.45 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00762/0.7819, allocations: 5.748 MB / 0.4993 GB, free: 62.39 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.829e-05/0.7819, allocations: 23.95 kB / 0.4994 GB, free: 62.37 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008792/0.7828, allocations: 283.5 kB / 0.4996 GB, free: 62.09 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.652e-05/0.7829, allocations: 28.75 kB / 0.4997 GB, free: 62.06 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.121e-05/0.7829, allocations: 44 kB / 0.4997 GB, free: 62.02 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.39e-05/0.783, allocations: 43.84 kB / 0.4998 GB, free: 61.98 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.434e-05/0.783, allocations: 31.88 kB / 0.4998 GB, free: 61.95 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003855/0.7868, allocations: 5.291 MB / 0.5049 GB, free: 55.77 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00114/0.788, allocations: 0.5238 MB / 0.5055 GB, free: 55.22 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002945/0.7883, allocations: 48.61 kB / 0.5055 GB, free: 55.18 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001019/0.7893, allocations: 63.95 kB / 0.5056 GB, free: 55.11 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001399/0.7895, allocations: 148.1 kB / 0.5057 GB, free: 54.97 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.136e-05/0.7896, allocations: 69.5 kB / 0.5058 GB, free: 54.9 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.00335/0.7929, allocations: 2.619 MB / 0.5083 GB, free: 52.27 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.7929, allocations: 4 kB / 0.5083 GB, free: 52.27 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.004798/0.7977, allocations: 0.8842 MB / 0.5092 GB, free: 51.39 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.0004732/0.7982, allocations: 223.4 kB / 0.5094 GB, free: 51.17 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005163/0.8034, allocations: 3.585 MB / 0.5129 GB, free: 47.62 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.352e-05/0.8034, allocations: 4.375 kB / 0.5129 GB, free: 47.61 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008335/0.8043, allocations: 0.7285 MB / 0.5136 GB, free: 46.89 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002495/0.8068, allocations: 418.6 kB / 0.514 GB, free: 46.48 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01409/0.8209, allocations: 10.13 MB / 0.5239 GB, free: 36.07 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00273/0.8237, allocations: 3.189 MB / 0.527 GB, free: 32.85 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.004038/0.8277, allocations: 1.772 MB / 0.5288 GB, free: 31.07 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000511/0.8283, allocations: 243.4 kB / 0.529 GB, free: 30.83 MB / 382.1 MB Notification: Performance of SimCode: time 1.102e-06/0.8283, allocations: 0 / 0.529 GB, free: 30.83 MB / 382.1 MB Notification: Performance of Templates: time 0.04795/0.8762, allocations: 26.21 MB / 0.5546 GB, free: 4.648 MB / 382.1 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: