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.0009455/0.0009456, allocations: 91.84 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.001022/0.001021, 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.516/1.516, allocations: 205.4 MB / 222.1 MB, free: 5.895 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.0004856/0.0004857, allocations: 8 kB / 278.9 MB, free: 13.06 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2469/0.2474, allocations: 47.58 MB / 326.5 MB, free: 1.398 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.02876/0.2762, allocations: 31.44 MB / 357.9 MB, free: 4.023 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01931/0.2956, allocations: 7.438 MB / 365.4 MB, free: 12.56 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006727/0.3024, allocations: 143.6 kB / 365.5 MB, free: 12.42 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005374/0.3078, allocations: 1.59 MB / 367.1 MB, free: 10.82 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01475/0.3225, allocations: 4.837 MB / 371.9 MB, free: 5.969 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003001/0.3256, allocations: 0.5849 MB / 372.5 MB, free: 5.383 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005646/0.3312, allocations: 3.825 MB / 376.3 MB, free: 1.543 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005701/0.3369, allocations: 3.361 MB / 379.7 MB, free: 14.13 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00219/0.3392, allocations: 1.058 MB / 380.8 MB, free: 13.07 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002717/0.3419, allocations: 1.659 MB / 382.4 MB, free: 11.41 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007766/0.3427, allocations: 124 kB / 382.5 MB, free: 11.29 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002281/0.345, allocations: 0.8738 MB / 383.4 MB, free: 10.41 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001761/0.3468, allocations: 1.402 MB / 384.8 MB, free: 9.004 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008124/0.3476, allocations: 0.7103 MB / 385.5 MB, free: 8.285 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004514/0.3521, allocations: 4.483 MB / 390 MB, free: 3.793 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.3521, allocations: 4 kB / 390 MB, free: 3.789 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.923e-06/0.3522, allocations: 0 / 390 MB, free: 3.789 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001487/0.3523, allocations: 0 / 390 MB, free: 3.789 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: 1349 * Number of variables: 1349 Notification: Performance of Generate backend data structure: time 0.006653/0.359, allocations: 3.427 MB / 393.4 MB, free: 304 kB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.997e-05/0.359, allocations: 12.03 kB / 393.4 MB, free: 292 kB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006228/0.3653, allocations: 1.902 MB / 395.4 MB, free: 14.38 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003694/0.369, allocations: 1.897 MB / 397.2 MB, free: 12.43 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001499/0.3692, allocations: 205.2 kB / 397.4 MB, free: 12.22 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004763/0.3696, allocations: 267.8 kB / 397.7 MB, free: 11.96 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01785/0.3875, allocations: 9.974 MB / 407.7 MB, free: 1.312 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001196/0.3877, allocations: 47.62 kB / 407.7 MB, free: 1.266 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003759/0.388, allocations: 135.9 kB / 407.9 MB, free: 1.133 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003058/0.3911, allocations: 1.856 MB / 409.7 MB, free: 15.27 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.018/0.4091, allocations: 8.513 MB / 418.2 MB, free: 6.75 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04463/0.4538, allocations: 36.82 MB / 455.1 MB, free: 0.8984 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1902/0.6441, allocations: 3.862 MB / 458.9 MB, free: 112.4 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002245/0.6464, allocations: 1.802 MB / 460.7 MB, free: 111.8 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008788/0.6552, allocations: 7.536 MB / 468.3 MB, free: 107.9 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.021e-05/0.6552, allocations: 48.09 kB / 468.3 MB, free: 107.8 MB / 382.1 MB Notification: Performance of pre-optimization done (n=150): time 5.51e-06/0.6552, allocations: 0 / 468.3 MB, free: 107.8 MB / 382.1 MB Notification: Performance of matching and sorting (n=166): time 0.04189/0.6971, allocations: 17.39 MB / 485.7 MB, free: 94.57 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.586e-05/0.6972, allocations: 141.5 kB / 485.8 MB, free: 94.4 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003575/0.7008, allocations: 3.466 MB / 489.3 MB, free: 90.93 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001815/0.701, allocations: 45.7 kB / 489.3 MB, free: 90.88 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001112/0.7021, allocations: 2.743 MB / 492.1 MB, free: 88.14 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004311/0.7026, allocations: 0.6424 MB / 492.7 MB, free: 87.51 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001917/0.7028, allocations: 104 kB / 492.8 MB, free: 87.41 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002037/0.703, allocations: 0.5472 MB / 493.4 MB, free: 86.86 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002206/0.7052, allocations: 1.932 MB / 495.3 MB, free: 84.92 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003246/0.7084, allocations: 5.347 MB / 0.4889 GB, free: 77.89 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003407/0.7119, allocations: 3.127 MB / 0.492 GB, free: 74.76 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.821e-05/0.7119, allocations: 32 kB / 0.492 GB, free: 74.73 MB / 382.1 MB Notification: Performance of matching and sorting (n=728) (initialization): time 0.01204/0.724, allocations: 8.132 MB / 0.4999 GB, free: 66.59 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.917e-05/0.7241, allocations: 56 kB / 0.5 GB, free: 66.54 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.061e-05/0.7242, allocations: 120 kB / 0.5001 GB, free: 66.42 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003311/0.7275, allocations: 1.312 MB / 0.5014 GB, free: 65.1 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003447/0.7309, allocations: 1.259 MB / 0.5026 GB, free: 63.84 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00711/0.7381, allocations: 6.106 MB / 0.5086 GB, free: 57.6 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004323/0.7424, allocations: 296.7 kB / 0.5089 GB, free: 57.31 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006414/0.7431, allocations: 348 kB / 0.5092 GB, free: 56.97 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,88.9%) 17} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002689/0.7458, allocations: 1.808 MB / 0.511 GB, free: 55.15 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004677/0.7463, allocations: 304.1 kB / 0.5113 GB, free: 54.85 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005855/0.7521, allocations: 3.369 MB / 0.5145 GB, free: 51.47 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.729e-05/0.7522, allocations: 20 kB / 0.5146 GB, free: 51.45 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.158e-05/0.7522, allocations: 4 kB / 0.5146 GB, free: 51.45 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.794e-05/0.7522, allocations: 11.97 kB / 0.5146 GB, free: 51.43 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01137/0.7636, allocations: 7.586 MB / 0.522 GB, free: 43.79 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.81e-05/0.7637, allocations: 4 kB / 0.522 GB, free: 43.79 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001096/0.7648, allocations: 243.7 kB / 0.5222 GB, free: 43.55 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003104/0.7679, allocations: 1.116 MB / 0.5233 GB, free: 42.43 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001415/0.768, allocations: 37.27 kB / 0.5233 GB, free: 42.39 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006488/0.7745, allocations: 5.723 MB / 0.5289 GB, free: 36.54 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/0.7746, allocations: 0 / 0.5289 GB, free: 36.54 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007816/0.7824, allocations: 5.692 MB / 0.5345 GB, free: 30.82 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001358/0.7838, allocations: 0.5828 MB / 0.5351 GB, free: 30.21 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006687/0.7845, allocations: 27.98 kB / 0.5351 GB, free: 30.18 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001318/0.7858, allocations: 91.88 kB / 0.5352 GB, free: 30.09 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002156/0.786, allocations: 96.81 kB / 0.5353 GB, free: 30 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001096/0.7861, allocations: 40 kB / 0.5353 GB, free: 29.96 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002675/0.7888, allocations: 2.138 MB / 0.5374 GB, free: 27.83 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.7888, allocations: 0 / 0.5374 GB, free: 27.83 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00436/0.7932, allocations: 0.9115 MB / 0.5383 GB, free: 26.93 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 15} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000446/0.7937, allocations: 172.7 kB / 0.5385 GB, free: 26.75 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006591/0.8003, allocations: 4.753 MB / 0.5431 GB, free: 22.01 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.362e-06/0.8003, allocations: 0 / 0.5431 GB, free: 22.01 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001975/0.8023, allocations: 1.535 MB / 0.5446 GB, free: 20.46 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002969/0.8053, allocations: 341.5 kB / 0.5449 GB, free: 20.13 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01282/0.8181, allocations: 9.545 MB / 0.5542 GB, free: 10.55 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002341/0.8205, allocations: 2.851 MB / 0.557 GB, free: 7.664 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.003859/0.8244, allocations: 1.719 MB / 0.5587 GB, free: 5.941 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006015/0.825, allocations: 219.4 kB / 0.5589 GB, free: 5.727 MB / 382.1 MB Notification: Performance of SimCode: time 1.453e-06/0.825, allocations: 0 / 0.5589 GB, free: 5.727 MB / 382.1 MB Notification: Performance of Templates: time 0.0604/0.8854, allocations: 31.6 MB / 0.5898 GB, free: 6.137 MB / 414.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)