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.005127/0.005127, allocations: 94.48 kB / 15.73 MB, free: 6.047 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.001101/0.001101, allocations: 205.9 kB / 16.68 MB, free: 5.973 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.417/1.417, allocations: 205.1 MB / 222.5 MB, free: 4.547 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.001501/0.001501, allocations: 50.83 kB / 326.6 MB, free: 14.39 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09934/0.1009, allocations: 46.62 MB / 373.2 MB, free: 1.324 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.01218/0.1131, allocations: 10.75 MB / 383.9 MB, free: 6.52 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.008626/0.1217, allocations: 3.865 MB / 387.8 MB, free: 2.641 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001651/0.1234, allocations: 67.75 kB / 387.9 MB, free: 2.574 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004663/0.1281, allocations: 2.223 MB / 390.1 MB, free: 352 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005075/0.1332, allocations: 1.852 MB / 391.9 MB, free: 14.48 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002257/0.1355, allocations: 0.7097 MB / 392.6 MB, free: 13.77 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.007857/0.1434, allocations: 4.258 MB / 396.9 MB, free: 9.504 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005905/0.1494, allocations: 2.917 MB / 399.8 MB, free: 6.535 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003281/0.1527, allocations: 1.491 MB / 401.3 MB, free: 5.039 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003335/0.1561, allocations: 2.091 MB / 403.4 MB, free: 2.941 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001199/0.1573, allocations: 296 kB / 403.7 MB, free: 2.652 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002339/0.1596, allocations: 0.9362 MB / 404.6 MB, free: 1.715 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002225/0.1619, allocations: 1.812 MB / 406.4 MB, free: 15.9 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00364/0.1655, allocations: 2.105 MB / 408.5 MB, free: 13.78 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007408/0.173, allocations: 6.453 MB / 415 MB, free: 7.301 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.13e-06/0.173, allocations: 0 / 415 MB, free: 7.301 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.492e-06/0.173, allocations: 0 / 415 MB, free: 7.301 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001437/0.1732, allocations: 0 / 415 MB, free: 7.301 MB / 350.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.008144/0.1813, allocations: 4.739 MB / 419.7 MB, free: 2.484 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.018e-05/0.1814, allocations: 12.03 kB / 419.7 MB, free: 2.473 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0072/0.1886, allocations: 1.952 MB / 421.7 MB, free: 0.5156 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004838/0.1934, allocations: 2.391 MB / 424.1 MB, free: 14.06 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002176/0.1937, allocations: 229.6 kB / 424.3 MB, free: 13.84 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008574/0.1946, allocations: 299.8 kB / 424.6 MB, free: 13.54 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01712/0.2117, allocations: 9.635 MB / 434.2 MB, free: 3.148 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001223/0.2119, allocations: 51.58 kB / 434.3 MB, free: 3.098 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004195/0.2123, allocations: 143.8 kB / 434.4 MB, free: 2.957 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002861/0.2152, allocations: 1.915 MB / 436.4 MB, free: 1.039 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01536/0.2305, allocations: 7.641 MB / 444 MB, free: 9.375 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3018/0.5323, allocations: 37.67 MB / 481.7 MB, free: 39.69 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006999/0.5394, allocations: 2.884 MB / 484.5 MB, free: 38.41 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001484/0.5409, allocations: 0.8696 MB / 485.4 MB, free: 38.09 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006019/0.547, allocations: 3.785 MB / 489.2 MB, free: 35.85 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.684e-05/0.5471, allocations: 54.28 kB / 489.3 MB, free: 35.8 MB / 382.1 MB Notification: Performance of pre-optimization done (n=134): time 3.807e-06/0.5471, allocations: 4 kB / 489.3 MB, free: 35.8 MB / 382.1 MB Notification: Performance of matching and sorting (n=152): time 0.01963/0.5667, allocations: 9.278 MB / 498.5 MB, free: 31.01 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.862e-05/0.5668, allocations: 147.1 kB / 498.7 MB, free: 30.85 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004208/0.571, allocations: 3.951 MB / 0.4909 GB, free: 28.91 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001812/0.5712, allocations: 46.11 kB / 0.4909 GB, free: 28.86 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001517/0.5727, allocations: 3.221 MB / 0.494 GB, free: 26.21 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000639/0.5734, allocations: 0.6295 MB / 0.4947 GB, free: 25.68 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001108/0.5745, allocations: 1.18 MB / 0.4958 GB, free: 25 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.55e-05/0.5746, allocations: 301.1 kB / 0.4961 GB, free: 24.71 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001939/0.5765, allocations: 1.575 MB / 0.4976 GB, free: 23.23 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003286/0.5798, allocations: 5.358 MB / 0.5029 GB, free: 16 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006181/0.586, allocations: 7.544 MB / 0.5102 GB, free: 6.57 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.826e-05/0.5861, allocations: 40 kB / 0.5103 GB, free: 6.531 MB / 382.1 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.01019/0.5963, allocations: 6.683 MB / 0.5168 GB, free: 15.84 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.618e-05/0.5964, allocations: 60 kB / 0.5169 GB, free: 15.79 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001725/0.5966, allocations: 136 kB / 0.517 GB, free: 15.65 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001913/0.5968, allocations: 176 kB / 0.5172 GB, free: 15.48 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004581/0.6014, allocations: 1.384 MB / 0.5185 GB, free: 14.09 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002238/0.6017, allocations: 259 kB / 0.5188 GB, free: 13.84 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004524/0.6062, allocations: 291.8 kB / 0.519 GB, free: 13.55 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008426/0.6071, allocations: 367.9 kB / 0.5194 GB, free: 13.19 MB / 398.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.004142/0.6112, allocations: 1.981 MB / 0.5213 GB, free: 11.2 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009038/0.6121, allocations: 361.5 kB / 0.5217 GB, free: 10.85 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00217/0.6143, allocations: 1.246 MB / 0.5229 GB, free: 9.59 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.375e-05/0.6143, allocations: 16 kB / 0.5229 GB, free: 9.574 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.297e-06/0.6143, allocations: 0 / 0.5229 GB, free: 9.574 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.419e-05/0.6144, allocations: 11.97 kB / 0.5229 GB, free: 9.562 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0105/0.6249, allocations: 5.744 MB / 0.5285 GB, free: 3.527 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.534e-05/0.6249, allocations: 20.88 kB / 0.5285 GB, free: 3.508 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001029/0.626, allocations: 279.5 kB / 0.5288 GB, free: 3.234 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.98e-05/0.626, allocations: 27.94 kB / 0.5288 GB, free: 3.207 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.996e-05/0.6261, allocations: 47.98 kB / 0.5289 GB, free: 3.16 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.764e-05/0.6262, allocations: 43.8 kB / 0.5289 GB, free: 3.117 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-05/0.6262, allocations: 23.94 kB / 0.5289 GB, free: 3.094 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004243/0.6305, allocations: 3.241 MB / 0.5321 GB, free: 15.59 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001119/0.6316, allocations: 0.5297 MB / 0.5326 GB, free: 15.04 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003356/0.6319, allocations: 51.97 kB / 0.5327 GB, free: 14.99 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001112/0.6331, allocations: 67.66 kB / 0.5327 GB, free: 14.93 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001709/0.6332, allocations: 147.4 kB / 0.5329 GB, free: 14.79 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.671e-05/0.6333, allocations: 64 kB / 0.5329 GB, free: 14.72 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.003458/0.6368, allocations: 2.446 MB / 0.5353 GB, free: 12.3 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.6368, allocations: 4 kB / 0.5353 GB, free: 12.29 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.00444/0.6413, allocations: 0.871 MB / 0.5362 GB, free: 11.42 MB / 414.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.0003953/0.6417, allocations: 203.3 kB / 0.5364 GB, free: 11.22 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.006148/0.6478, allocations: 3.694 MB / 0.54 GB, free: 7.559 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.44e-05/0.6479, allocations: 4 kB / 0.54 GB, free: 7.555 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001262/0.6492, allocations: 0.7299 MB / 0.5407 GB, free: 6.828 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003038/0.6522, allocations: 454 kB / 0.5411 GB, free: 6.402 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01399/0.6662, allocations: 8.675 MB / 0.5496 GB, free: 13.45 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003577/0.6698, allocations: 3.107 MB / 0.5526 GB, free: 10.31 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.003934/0.6738, allocations: 1.77 MB / 0.5544 GB, free: 8.535 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000551/0.6744, allocations: 231.4 kB / 0.5546 GB, free: 8.309 MB / 430.1 MB Notification: Performance of SimCode: time 1.102e-06/0.6744, allocations: 0 / 0.5546 GB, free: 8.309 MB / 430.1 MB Notification: Performance of Templates: time 0.05006/0.7244, allocations: 23.89 MB / 0.5779 GB, free: 488 kB / 446.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)