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.00111/0.001111, allocations: 90.75 kB / 15.06 MB, free: 1.098 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.001212/0.001212, allocations: 172.7 kB / 15.95 MB, free: 208 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.487/1.487, allocations: 205.4 MB / 222.1 MB, free: 5.656 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.0004794/0.0004798, allocations: 16 kB / 278.9 MB, free: 12.81 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2658/0.2663, allocations: 47.59 MB / 326.5 MB, free: 1.398 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.03295/0.2992, allocations: 35 MB / 361.5 MB, free: 420 kB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01972/0.319, allocations: 8.009 MB / 369.5 MB, free: 8.379 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007753/0.3268, allocations: 163.6 kB / 369.7 MB, free: 8.219 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006195/0.333, allocations: 1.796 MB / 371.5 MB, free: 6.414 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01602/0.3491, allocations: 5.498 MB / 376.9 MB, free: 0.8945 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002771/0.3519, allocations: 0.628 MB / 377.6 MB, free: 272 kB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.006962/0.3588, allocations: 4.718 MB / 382.3 MB, free: 11.53 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005756/0.3646, allocations: 3.376 MB / 385.7 MB, free: 8.102 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002636/0.3673, allocations: 1.269 MB / 386.9 MB, free: 6.828 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00311/0.3704, allocations: 2.017 MB / 389 MB, free: 4.805 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008933/0.3713, allocations: 140 kB / 389.1 MB, free: 4.668 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002099/0.3734, allocations: 0.7177 MB / 389.8 MB, free: 3.949 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002313/0.3758, allocations: 1.632 MB / 391.4 MB, free: 2.312 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001498/0.3773, allocations: 0.7921 MB / 392.2 MB, free: 1.512 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006333/0.3836, allocations: 4.851 MB / 397.1 MB, free: 12.65 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.11e-06/0.3837, allocations: 0 / 397.1 MB, free: 12.65 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.953e-06/0.3837, allocations: 0 / 397.1 MB, free: 12.65 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002824/0.384, allocations: 0 / 397.1 MB, free: 12.65 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.009708/0.3937, allocations: 3.858 MB / 400.9 MB, free: 8.723 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.883e-05/0.3937, allocations: 11.97 kB / 401 MB, free: 8.711 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007207/0.401, allocations: 1.971 MB / 402.9 MB, free: 6.73 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005756/0.4067, allocations: 2.305 MB / 405.2 MB, free: 4.363 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002627/0.407, allocations: 225.6 kB / 405.5 MB, free: 4.141 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001281/0.4083, allocations: 295.8 kB / 405.7 MB, free: 3.852 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01799/0.4263, allocations: 9.636 MB / 415.4 MB, free: 9.457 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001214/0.4265, allocations: 51.52 kB / 415.4 MB, free: 9.406 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003931/0.4269, allocations: 147.8 kB / 415.6 MB, free: 9.262 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002825/0.4297, allocations: 1.915 MB / 417.5 MB, free: 7.34 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0154/0.4452, allocations: 7.606 MB / 425.1 MB, free: 15.71 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.264/0.7092, allocations: 37.75 MB / 462.8 MB, free: 86.07 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006041/0.7153, allocations: 2.878 MB / 465.7 MB, free: 85.41 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001057/0.7164, allocations: 0.871 MB / 466.6 MB, free: 85.37 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005286/0.7217, allocations: 3.77 MB / 470.4 MB, free: 83.8 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.187e-05/0.7217, allocations: 53.48 kB / 470.4 MB, free: 83.76 MB / 382.1 MB Notification: Performance of pre-optimization done (n=134): time 3.426e-06/0.7217, allocations: 0 / 470.4 MB, free: 83.76 MB / 382.1 MB Notification: Performance of matching and sorting (n=152): time 0.01959/0.7413, allocations: 9.051 MB / 479.5 MB, free: 79.66 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.135e-05/0.7414, allocations: 146.9 kB / 479.6 MB, free: 79.5 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005031/0.7465, allocations: 3.921 MB / 483.5 MB, free: 77.48 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001621/0.7467, allocations: 47.67 kB / 483.6 MB, free: 77.43 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001519/0.7482, allocations: 3.088 MB / 486.7 MB, free: 74.73 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004235/0.7486, allocations: 0.6049 MB / 487.3 MB, free: 74.23 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001674/0.7488, allocations: 118.4 kB / 487.4 MB, free: 74.14 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002408/0.749, allocations: 0.552 MB / 487.9 MB, free: 73.64 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002142/0.7512, allocations: 1.557 MB / 489.5 MB, free: 72.08 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003779/0.755, allocations: 5.332 MB / 494.8 MB, free: 65.02 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003086/0.7581, allocations: 2.814 MB / 497.6 MB, free: 62.39 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.322e-05/0.7581, allocations: 40 kB / 497.7 MB, free: 62.36 MB / 382.1 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.008504/0.7666, allocations: 6.613 MB / 0.4925 GB, free: 55.82 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.602e-05/0.7667, allocations: 63.95 kB / 0.4925 GB, free: 55.75 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.636e-05/0.7668, allocations: 140.1 kB / 0.4927 GB, free: 55.62 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001498/0.767, allocations: 196 kB / 0.4929 GB, free: 55.43 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003321/0.7703, allocations: 1.38 MB / 0.4942 GB, free: 54.04 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001445/0.7705, allocations: 263.5 kB / 0.4945 GB, free: 53.79 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003503/0.774, allocations: 287.5 kB / 0.4947 GB, free: 53.5 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004495/0.7745, allocations: 369.5 kB / 0.4951 GB, free: 53.14 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002891/0.7774, allocations: 1.979 MB / 0.497 GB, free: 51.16 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006195/0.778, allocations: 335.7 kB / 0.4973 GB, free: 50.82 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001764/0.7798, allocations: 1.249 MB / 0.4985 GB, free: 49.57 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.337e-05/0.7798, allocations: 20.94 kB / 0.4986 GB, free: 49.55 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.042e-05/0.7798, allocations: 0 / 0.4986 GB, free: 49.55 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.228e-05/0.7798, allocations: 7.969 kB / 0.4986 GB, free: 49.55 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007725/0.7876, allocations: 5.744 MB / 0.5042 GB, free: 43.5 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.954e-05/0.7876, allocations: 19.98 kB / 0.5042 GB, free: 43.48 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008405/0.7885, allocations: 279.5 kB / 0.5045 GB, free: 43.21 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.482e-05/0.7885, allocations: 28 kB / 0.5045 GB, free: 43.18 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.535e-05/0.7886, allocations: 54.19 kB / 0.5046 GB, free: 43.13 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.131e-05/0.7886, allocations: 35.86 kB / 0.5046 GB, free: 43.09 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-05/0.7886, allocations: 31.88 kB / 0.5046 GB, free: 43.06 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003005/0.7916, allocations: 3.205 MB / 0.5077 GB, free: 39.6 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001184/0.7928, allocations: 0.5122 MB / 0.5082 GB, free: 39.06 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003414/0.7932, allocations: 55.48 kB / 0.5083 GB, free: 39.01 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001077/0.7943, allocations: 57.22 kB / 0.5084 GB, free: 38.96 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000129/0.7944, allocations: 151.4 kB / 0.5085 GB, free: 38.81 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.206e-05/0.7945, allocations: 69.08 kB / 0.5086 GB, free: 38.74 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.003132/0.7976, allocations: 2.431 MB / 0.5109 GB, free: 36.33 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.7977, allocations: 0 / 0.5109 GB, free: 36.33 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.004707/0.8024, allocations: 0.8676 MB / 0.5118 GB, free: 35.47 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.0004279/0.8028, allocations: 202.2 kB / 0.512 GB, free: 35.27 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005272/0.8081, allocations: 3.608 MB / 0.5155 GB, free: 31.69 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.459e-05/0.8081, allocations: 5.625 kB / 0.5155 GB, free: 31.69 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008762/0.809, allocations: 0.7183 MB / 0.5162 GB, free: 30.97 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002971/0.812, allocations: 444.2 kB / 0.5166 GB, free: 30.54 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01401/0.826, allocations: 10.2 MB / 0.5266 GB, free: 20.06 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002681/0.8288, allocations: 3.103 MB / 0.5296 GB, free: 16.93 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.003992/0.8328, allocations: 1.771 MB / 0.5313 GB, free: 15.15 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000559/0.8333, allocations: 231.4 kB / 0.5316 GB, free: 14.92 MB / 382.1 MB Notification: Performance of SimCode: time 1.572e-06/0.8334, allocations: 0 / 0.5316 GB, free: 14.92 MB / 382.1 MB Notification: Performance of Templates: time 0.05205/0.8854, allocations: 25.56 MB / 0.5565 GB, free: 5.395 MB / 398.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)