Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.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.PendulumWithSpringDamper,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001334/0.001335, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001353/0.001352, allocations: 193.3 kB / 16.53 MB, free: 6.391 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.443/1.443, allocations: 205.1 MB / 222.4 MB, free: 4.574 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.001202/0.001202, allocations: 51.94 kB / 278.7 MB, free: 12.37 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.234/0.2352, allocations: 46.64 MB / 325.3 MB, free: 1.859 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.01049/0.2457, allocations: 10.31 MB / 335.6 MB, free: 9.574 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.008588/0.2544, allocations: 3.863 MB / 339.5 MB, free: 5.699 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001653/0.2561, allocations: 59.75 kB / 339.5 MB, free: 5.641 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004189/0.2603, allocations: 2.067 MB / 341.6 MB, free: 3.566 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004147/0.2645, allocations: 1.642 MB / 343.3 MB, free: 1.918 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001765/0.2662, allocations: 0.7018 MB / 344 MB, free: 1.215 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.004463/0.2707, allocations: 3.385 MB / 347.3 MB, free: 13.82 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003627/0.2744, allocations: 2.698 MB / 350 MB, free: 11.07 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002206/0.2766, allocations: 1.269 MB / 351.3 MB, free: 9.793 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002708/0.2793, allocations: 1.764 MB / 353.1 MB, free: 8.023 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008517/0.2802, allocations: 264 kB / 353.3 MB, free: 7.766 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002529/0.2827, allocations: 1.116 MB / 354.4 MB, free: 6.648 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002021/0.2847, allocations: 1.574 MB / 356 MB, free: 5.07 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003077/0.2878, allocations: 1.864 MB / 357.9 MB, free: 3.195 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006905/0.2947, allocations: 5.724 MB / 363.6 MB, free: 13.45 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.2948, allocations: 0 / 363.6 MB, free: 13.45 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.2948, allocations: 0 / 363.6 MB, free: 13.45 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0002198/0.295, allocations: 0 / 363.6 MB, free: 13.45 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1349 * Number of variables: 1349 Notification: Performance of Generate backend data structure: time 0.008801/0.3038, allocations: 4.137 MB / 367.7 MB, free: 9.246 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.118e-05/0.3039, allocations: 12.03 kB / 367.8 MB, free: 9.234 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006495/0.3104, allocations: 1.852 MB / 369.6 MB, free: 7.375 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00321/0.3136, allocations: 1.936 MB / 371.5 MB, free: 5.395 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001285/0.3137, allocations: 209.2 kB / 371.8 MB, free: 5.188 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004407/0.3142, allocations: 267.9 kB / 372 MB, free: 4.926 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01701/0.3312, allocations: 9.973 MB / 382 MB, free: 10.27 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.58e-05/0.3313, allocations: 39.59 kB / 382 MB, free: 10.23 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003405/0.3317, allocations: 135.9 kB / 382.2 MB, free: 10.1 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002998/0.3347, allocations: 1.856 MB / 384 MB, free: 8.242 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01737/0.3521, allocations: 8.536 MB / 392.6 MB, free: 15.69 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04245/0.3945, allocations: 36.85 MB / 429.4 MB, free: 9.809 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009789/0.4044, allocations: 3.878 MB / 433.3 MB, free: 5.727 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002545/0.4069, allocations: 1.806 MB / 435.1 MB, free: 3.91 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01015/0.4171, allocations: 7.539 MB / 442.6 MB, free: 12.09 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.839e-05/0.4172, allocations: 51.56 kB / 442.7 MB, free: 12.03 MB / 382.1 MB Notification: Performance of pre-optimization done (n=150): time 3.377e-06/0.4172, allocations: 3.938 kB / 442.7 MB, free: 12.03 MB / 382.1 MB Notification: Performance of matching and sorting (n=166): time 0.2633/0.6805, allocations: 17.43 MB / 460.1 MB, free: 111 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.62e-05/0.6806, allocations: 146.2 kB / 460.3 MB, free: 110.8 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00564/0.6863, allocations: 3.48 MB / 463.7 MB, free: 109.5 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003877/0.6867, allocations: 53.64 kB / 463.8 MB, free: 109.5 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001661/0.6884, allocations: 2.735 MB / 466.5 MB, free: 107.4 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000779/0.6892, allocations: 0.6449 MB / 467.2 MB, free: 106.9 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001299/0.6905, allocations: 1.12 MB / 468.3 MB, free: 106.4 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.331e-05/0.6905, allocations: 310.6 kB / 468.6 MB, free: 106.1 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002437/0.693, allocations: 1.95 MB / 470.5 MB, free: 105.4 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003584/0.6966, allocations: 5.375 MB / 475.9 MB, free: 100.2 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006876/0.7035, allocations: 7.925 MB / 483.8 MB, free: 92.21 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.226e-05/0.7036, allocations: 36 kB / 483.9 MB, free: 92.18 MB / 382.1 MB Notification: Performance of matching and sorting (n=728) (initialization): time 0.01364/0.7172, allocations: 8.173 MB / 492 MB, free: 83.99 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.775e-05/0.7173, allocations: 59.12 kB / 492.1 MB, free: 83.94 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.888e-05/0.7174, allocations: 124 kB / 492.2 MB, free: 83.82 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003682/0.7211, allocations: 1.311 MB / 493.5 MB, free: 82.51 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003646/0.7248, allocations: 1.259 MB / 494.8 MB, free: 81.25 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007389/0.7322, allocations: 6.558 MB / 0.4896 GB, free: 74.56 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00448/0.7367, allocations: 299.6 kB / 0.4899 GB, free: 74.27 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008414/0.7376, allocations: 340 kB / 0.4902 GB, free: 73.93 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 552 * Number of states: 0 () * Number of discrete variables: 36 (prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],damper1.color_b[3],damper1.color_b[2],damper1.color_b[1],damper1.color_a[3],damper1.color_a[2],damper1.color_a[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],bar1.color[3],bar1.color[2],bar1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[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 (685): * Single equations (assignments): 681 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,17,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002768/0.7404, allocations: 1.81 MB / 0.492 GB, free: 72.12 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006212/0.741, allocations: 304.1 kB / 0.4923 GB, free: 71.82 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006154/0.7472, allocations: 3.371 MB / 0.4956 GB, free: 68.43 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.077e-05/0.7472, allocations: 20 kB / 0.4956 GB, free: 68.41 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.263e-05/0.7473, allocations: 4 kB / 0.4956 GB, free: 68.41 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.916e-05/0.7473, allocations: 7.969 kB / 0.4956 GB, free: 68.4 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01238/0.7597, allocations: 7.601 MB / 0.503 GB, free: 60.75 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.366e-05/0.7597, allocations: 4 kB / 0.503 GB, free: 60.75 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001096/0.7608, allocations: 239.7 kB / 0.5032 GB, free: 60.51 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00336/0.7642, allocations: 1.124 MB / 0.5043 GB, free: 59.38 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001842/0.7644, allocations: 28 kB / 0.5044 GB, free: 59.36 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00682/0.7712, allocations: 6.161 MB / 0.5104 GB, free: 53.06 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.118e-06/0.7713, allocations: 7.125 kB / 0.5104 GB, free: 53.05 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008212/0.7795, allocations: 5.717 MB / 0.516 GB, free: 47.31 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001339/0.7809, allocations: 0.5672 MB / 0.5165 GB, free: 46.72 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004393/0.7813, allocations: 27.83 kB / 0.5166 GB, free: 46.7 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001264/0.7826, allocations: 91.88 kB / 0.5166 GB, free: 46.61 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002633/0.7829, allocations: 99.89 kB / 0.5167 GB, free: 46.51 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001036/0.783, allocations: 43.98 kB / 0.5168 GB, free: 46.47 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002655/0.7856, allocations: 2.158 MB / 0.5189 GB, free: 44.32 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.7856, allocations: 0 / 0.5189 GB, free: 44.32 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.004501/0.7902, allocations: 0.91 MB / 0.5198 GB, free: 43.41 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (revolute.phi,revolute.w,prismatic.s,prismatic.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 (129): * Single equations (assignments): 125 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,15,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003829/0.7906, allocations: 176.2 kB / 0.5199 GB, free: 43.24 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.007524/0.7981, allocations: 5.543 MB / 0.5254 GB, free: 37.73 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.569e-06/0.7981, allocations: 0 / 0.5254 GB, free: 37.73 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001925/0.8001, allocations: 1.539 MB / 0.5269 GB, free: 36.18 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002399/0.8025, allocations: 358.4 kB / 0.5272 GB, free: 35.83 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01344/0.8159, allocations: 8.106 MB / 0.5351 GB, free: 27.69 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002223/0.8182, allocations: 2.862 MB / 0.5379 GB, free: 24.8 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.003702/0.8219, allocations: 1.699 MB / 0.5396 GB, free: 23.1 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005224/0.8224, allocations: 219.4 kB / 0.5398 GB, free: 22.88 MB / 382.1 MB Notification: Performance of SimCode: time 8.72e-07/0.8225, allocations: 0 / 0.5398 GB, free: 22.88 MB / 382.1 MB Notification: Performance of Templates: time 0.05613/0.8786, allocations: 34.05 MB / 0.573 GB, free: 4.848 MB / 398.1 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.makefile (rm -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; mkfifo Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe >> ../files/Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.sim & ./Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe 2>&1)