Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_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.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.00159/0.001591, allocations: 114.8 kB / 17.06 MB, free: 5.812 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.001661/0.001661, allocations: 200 kB / 18 MB, free: 4.949 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.554/1.554, allocations: 205.1 MB / 223.9 MB, free: 12.24 MB / 190.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.001589/0.001589, allocations: 55.92 kB / 327.9 MB, free: 3.289 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1051/0.1067, allocations: 46.62 MB / 374.5 MB, free: 4.562 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.2018/0.3085, allocations: 10.32 MB / 384.8 MB, free: 7.617 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.007705/0.3163, allocations: 3.871 MB / 388.7 MB, free: 5.488 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001743/0.3181, allocations: 52.59 kB / 388.7 MB, free: 5.48 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003738/0.3218, allocations: 2.081 MB / 390.8 MB, free: 4.508 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004911/0.3267, allocations: 1.642 MB / 392.5 MB, free: 3.773 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001897/0.3287, allocations: 0.6878 MB / 393.1 MB, free: 3.492 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005647/0.3343, allocations: 3.38 MB / 396.5 MB, free: 2.227 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003499/0.3378, allocations: 2.703 MB / 399.2 MB, free: 1.121 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002642/0.3405, allocations: 1.274 MB / 400.5 MB, free: 0.5508 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002937/0.3435, allocations: 1.762 MB / 402.3 MB, free: 15.49 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009624/0.3444, allocations: 266.3 kB / 402.5 MB, free: 15.49 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002715/0.3472, allocations: 1.11 MB / 403.6 MB, free: 15.03 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00204/0.3492, allocations: 1.588 MB / 405.2 MB, free: 14.12 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003394/0.3526, allocations: 1.866 MB / 407.1 MB, free: 12.71 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007755/0.3604, allocations: 5.941 MB / 413 MB, free: 8.637 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.671e-06/0.3604, allocations: 0 / 413 MB, free: 8.637 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.3605, allocations: 0 / 413 MB, free: 8.637 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002095/0.3607, allocations: 0 / 413 MB, free: 8.637 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: 1349 * Number of variables: 1349 Notification: Performance of Generate backend data structure: time 0.009697/0.3704, allocations: 4.133 MB / 417.2 MB, free: 4.73 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.848e-05/0.3704, allocations: 11.89 kB / 417.2 MB, free: 4.719 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006783/0.3772, allocations: 1.86 MB / 419 MB, free: 2.852 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004884/0.3821, allocations: 1.956 MB / 421 MB, free: 0.8438 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001705/0.3823, allocations: 205.2 kB / 421.2 MB, free: 0.6406 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006461/0.383, allocations: 275.8 kB / 421.5 MB, free: 380 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01982/0.4028, allocations: 9.977 MB / 431.4 MB, free: 5.719 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001042/0.403, allocations: 39.59 kB / 431.5 MB, free: 5.68 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000387/0.4034, allocations: 131.9 kB / 431.6 MB, free: 5.551 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003055/0.4064, allocations: 1.856 MB / 433.5 MB, free: 3.695 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01944/0.4259, allocations: 8.54 MB / 442 MB, free: 11.14 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0478/0.4737, allocations: 36.7 MB / 478.7 MB, free: 5.402 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009601/0.4834, allocations: 3.881 MB / 482.6 MB, free: 1.32 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002557/0.486, allocations: 1.806 MB / 484.4 MB, free: 15.5 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01252/0.4985, allocations: 7.516 MB / 491.9 MB, free: 7.711 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.196e-05/0.4987, allocations: 59.42 kB / 492 MB, free: 7.645 MB / 414.1 MB Notification: Performance of pre-optimization done (n=150): time 4.268e-06/0.4987, allocations: 0 / 492 MB, free: 7.645 MB / 414.1 MB Notification: Performance of matching and sorting (n=166): time 0.05193/0.5506, allocations: 17.45 MB / 0.4975 GB, free: 6.066 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.41e-05/0.5507, allocations: 141.5 kB / 0.4976 GB, free: 5.895 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005315/0.5561, allocations: 3.485 MB / 0.501 GB, free: 2.406 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004185/0.5565, allocations: 53.64 kB / 0.5011 GB, free: 2.348 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002017/0.5585, allocations: 2.74 MB / 0.5037 GB, free: 15.57 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000925/0.5595, allocations: 0.6403 MB / 0.5044 GB, free: 14.92 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001544/0.561, allocations: 1.119 MB / 0.5055 GB, free: 13.79 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.000133/0.5612, allocations: 301.1 kB / 0.5057 GB, free: 13.5 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002942/0.5641, allocations: 1.959 MB / 0.5077 GB, free: 11.53 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005347/0.5695, allocations: 5.37 MB / 0.5129 GB, free: 4.445 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009177/0.5787, allocations: 7.936 MB / 0.5206 GB, free: 10.8 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.542e-05/0.5788, allocations: 40 kB / 0.5207 GB, free: 10.77 MB / 462.1 MB Notification: Performance of matching and sorting (n=728) (initialization): time 0.01772/0.5966, allocations: 8.17 MB / 0.5287 GB, free: 2.582 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.418e-05/0.5967, allocations: 56.19 kB / 0.5287 GB, free: 2.527 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001561/0.5968, allocations: 120 kB / 0.5288 GB, free: 2.41 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004216/0.6011, allocations: 1.3 MB / 0.5301 GB, free: 1.105 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004289/0.6054, allocations: 1.259 MB / 0.5313 GB, free: 15.84 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009754/0.6152, allocations: 6.545 MB / 0.5377 GB, free: 9.16 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005468/0.6207, allocations: 307.5 kB / 0.538 GB, free: 8.859 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001265/0.622, allocations: 340 kB / 0.5383 GB, free: 8.527 MB / 478.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.003954/0.6259, allocations: 1.81 MB / 0.5401 GB, free: 6.703 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006366/0.6266, allocations: 300.1 kB / 0.5404 GB, free: 6.406 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006897/0.6335, allocations: 3.373 MB / 0.5437 GB, free: 3.016 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.597e-05/0.6335, allocations: 16 kB / 0.5437 GB, free: 3 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.12e-05/0.6336, allocations: 4 kB / 0.5437 GB, free: 2.996 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.334e-05/0.6336, allocations: 15.91 kB / 0.5437 GB, free: 2.98 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2051/0.8387, allocations: 7.57 MB / 0.5511 GB, free: 148.9 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-05/0.8387, allocations: 2.656 kB / 0.5511 GB, free: 148.9 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001214/0.8399, allocations: 240.2 kB / 0.5513 GB, free: 148.9 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004156/0.8441, allocations: 1.12 MB / 0.5524 GB, free: 148.8 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002609/0.8444, allocations: 30.12 kB / 0.5525 GB, free: 148.8 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009089/0.8535, allocations: 6.17 MB / 0.5585 GB, free: 145.8 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.517e-06/0.8535, allocations: 1.312 kB / 0.5585 GB, free: 145.8 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01112/0.8646, allocations: 5.709 MB / 0.5641 GB, free: 143.8 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002064/0.8667, allocations: 0.5665 MB / 0.5646 GB, free: 143.6 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000563/0.8673, allocations: 28.83 kB / 0.5647 GB, free: 143.6 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001307/0.8686, allocations: 90.75 kB / 0.5647 GB, free: 143.6 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002889/0.8689, allocations: 92.31 kB / 0.5648 GB, free: 143.6 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001273/0.8691, allocations: 47.38 kB / 0.5649 GB, free: 143.6 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003786/0.8729, allocations: 2.159 MB / 0.567 GB, free: 142.9 MB / 478.1 MB Notification: Performance of sort global known variables: time 3.91e-07/0.8729, allocations: 0 / 0.567 GB, free: 142.9 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.005486/0.8784, allocations: 0.9138 MB / 0.5679 GB, free: 142.8 MB / 478.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.0004386/0.8788, allocations: 174.2 kB / 0.568 GB, free: 142.6 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.006864/0.8857, allocations: 4.79 MB / 0.5727 GB, free: 141 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 5.871e-06/0.8857, allocations: 0 / 0.5727 GB, free: 141 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002065/0.8878, allocations: 1.531 MB / 0.5742 GB, free: 140.4 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002279/0.8901, allocations: 362.2 kB / 0.5746 GB, free: 140.2 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01303/0.9032, allocations: 8.027 MB / 0.5824 GB, free: 136.4 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002424/0.9056, allocations: 2.855 MB / 0.5852 GB, free: 134.2 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.003373/0.909, allocations: 1.706 MB / 0.5868 GB, free: 132.8 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005601/0.9096, allocations: 215.4 kB / 0.5871 GB, free: 132.6 MB / 478.1 MB Notification: Performance of SimCode: time 9.92e-07/0.9096, allocations: 0 / 0.5871 GB, free: 132.6 MB / 478.1 MB Notification: Performance of Templates: time 0.04911/0.9587, allocations: 31.07 MB / 0.6174 GB, free: 101.6 MB / 478.1 MB make -j1 -f Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.makefile (rm -f Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; mkfifo Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe >> ../files/Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.sim & ./Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe 2>&1)