Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001054/0.001054, allocations: 179 kB / 16.38 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.179/1.179, allocations: 194.5 MB / 211.6 MB, free: 3.055 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001557/0.001557, allocations: 112.3 kB / 256.9 MB, free: 4.371 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002741/0.0002742, allocations: 8 kB / 310.6 MB, free: 14.93 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07619/0.07648, allocations: 44.49 MB / 355 MB, free: 2.344 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2236/0.3001, allocations: 77.77 MB / 432.8 MB, free: 11.94 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001953/0.3003, allocations: 76.95 kB / 432.9 MB, free: 11.9 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02672/0.327, allocations: 11.58 MB / 444.5 MB, free: 2.172 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.002e-06/0.3271, allocations: 0 / 444.5 MB, free: 2.172 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.552e-05/0.3271, allocations: 12 kB / 444.5 MB, free: 2.16 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.00111/0.3282, allocations: 0.7395 MB / 445.2 MB, free: 1.406 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.504e-05/0.3283, allocations: 8.031 kB / 445.2 MB, free: 1.398 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002854/0.3286, allocations: 64.45 kB / 445.3 MB, free: 1.336 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003976/0.329, allocations: 330.9 kB / 445.6 MB, free: 1.008 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.475e-05/0.3291, allocations: 98.27 kB / 445.7 MB, free: 0.9141 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.766e-05/0.3291, allocations: 46.28 kB / 445.8 MB, free: 0.8828 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008074/0.33, allocations: 0.5469 MB / 446.3 MB, free: 488 kB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.648e-05/0.33, allocations: 0 / 446.3 MB, free: 488 kB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.641e-05/0.33, allocations: 15 kB / 446.3 MB, free: 484 kB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.235e-06/0.33, allocations: 8 kB / 446.3 MB, free: 476 kB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001063/0.3311, allocations: 0.6042 MB / 446.9 MB, free: 16 kB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001891/0.333, allocations: 1.155 MB / 448.1 MB, free: 15.01 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009044/0.3339, allocations: 0.5034 MB / 448.6 MB, free: 14.49 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.964e-05/0.334, allocations: 4.562 kB / 448.6 MB, free: 14.49 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.831e-05/0.334, allocations: 43.11 kB / 448.6 MB, free: 14.44 MB / 330.7 MB Notification: Performance of pre-optimization done (n=63): time 1.923e-06/0.3341, allocations: 0 / 448.6 MB, free: 14.44 MB / 330.7 MB Notification: Performance of matching and sorting (n=71): time 0.006308/0.3404, allocations: 2.865 MB / 451.5 MB, free: 11.44 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.872e-05/0.3404, allocations: 89.75 kB / 451.6 MB, free: 11.33 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003008/0.3407, allocations: 257.9 kB / 451.8 MB, free: 11.08 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 5.956e-05/0.3408, allocations: 41.7 kB / 451.9 MB, free: 11.03 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.878e-05/0.3409, allocations: 153.7 kB / 452 MB, free: 10.88 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001766/0.3411, allocations: 240.6 kB / 452.3 MB, free: 10.64 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.699e-05/0.3411, allocations: 12 kB / 452.3 MB, free: 10.63 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001287/0.3413, allocations: 350.8 kB / 452.6 MB, free: 10.28 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005473/0.3418, allocations: 277.2 kB / 452.9 MB, free: 10.01 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005694/0.3424, allocations: 326.5 kB / 453.2 MB, free: 9.676 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005293/0.343, allocations: 243.2 kB / 453.4 MB, free: 9.441 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.893e-06/0.343, allocations: 0 / 453.4 MB, free: 9.441 MB / 330.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.00164/0.3446, allocations: 0.864 MB / 454.3 MB, free: 8.57 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.742e-05/0.3446, allocations: 4 kB / 454.3 MB, free: 8.566 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.59e-05/0.3447, allocations: 4 kB / 454.3 MB, free: 8.562 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001005/0.3457, allocations: 439.2 kB / 454.7 MB, free: 8.133 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003607/0.346, allocations: 83.83 kB / 454.8 MB, free: 8.051 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001203/0.3473, allocations: 1.012 MB / 455.8 MB, free: 7.016 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005157/0.3478, allocations: 84.02 kB / 455.9 MB, free: 6.934 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.434e-05/0.3479, allocations: 27.98 kB / 456 MB, free: 6.906 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 15 (bearingFriction.free,gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,$PRE.gear.mode,gear.mode,$PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode,gear.ideal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 44 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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: 0 * Non-linear torn systems: 1 {2 32} Notification: Performance of prepare postOptimizeDAE: time 0.0003203/0.3482, allocations: 185.7 kB / 456.1 MB, free: 6.715 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001035/0.3483, allocations: 44.19 kB / 456.2 MB, free: 6.672 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001855/0.3502, allocations: 0.8834 MB / 457.1 MB, free: 5.777 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.358e-06/0.3502, allocations: 8 kB / 457.1 MB, free: 5.77 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.371e-06/0.3502, allocations: 0 / 457.1 MB, free: 5.77 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.113e-06/0.3502, allocations: 3.984 kB / 457.1 MB, free: 5.766 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002973/0.3532, allocations: 1.712 MB / 458.8 MB, free: 3.984 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.659e-06/0.3532, allocations: 1.562 kB / 458.8 MB, free: 3.984 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003553/0.3536, allocations: 83.88 kB / 458.9 MB, free: 3.902 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008627/0.3545, allocations: 409.3 kB / 459.3 MB, free: 3.5 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.974e-05/0.3545, allocations: 27.92 kB / 459.3 MB, free: 3.473 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001059/0.3556, allocations: 0.9816 MB / 460.3 MB, free: 2.465 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.686e-06/0.3556, allocations: 3.984 kB / 460.3 MB, free: 2.461 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002269/0.3579, allocations: 1.287 MB / 461.6 MB, free: 1.133 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000278/0.3582, allocations: 184.6 kB / 461.7 MB, free: 0.9336 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.373e-05/0.3583, allocations: 16 kB / 461.8 MB, free: 0.918 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004252/0.3587, allocations: 72 kB / 461.8 MB, free: 0.8477 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002126/0.3589, allocations: 112.2 kB / 461.9 MB, free: 0.7383 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.16e-05/0.359, allocations: 36.66 kB / 462 MB, free: 0.707 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002523/0.3593, allocations: 209.9 kB / 462.2 MB, free: 0.5039 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.3593, allocations: 0 / 462.2 MB, free: 0.5039 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0005436/0.3598, allocations: 147.9 kB / 462.3 MB, free: 368 kB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (Inertia2.phi,Inertia2.w) * Number of discrete variables: 9 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode) * Number of discrete states: 4 (bearingFriction.mode,bearingFriction.startBackward,bearingFriction.startForward,gear.mode) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 39 * Array equations: 0 * 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: 0 * Non-linear torn systems: 1 {2 29} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002619/0.3601, allocations: 159.1 kB / 462.5 MB, free: 196 kB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.00142/0.3615, allocations: 0.7028 MB / 463.2 MB, free: 15.48 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 6.002e-06/0.3615, allocations: 0 / 463.2 MB, free: 15.48 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007675/0.3623, allocations: 384.1 kB / 463.6 MB, free: 15.11 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003829/0.3627, allocations: 41.75 kB / 463.6 MB, free: 15.07 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002429/0.3651, allocations: 1.35 MB / 465 MB, free: 13.69 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003666/0.3655, allocations: 0.829 MB / 465.8 MB, free: 12.84 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0002339/0.3658, allocations: 68.83 kB / 465.8 MB, free: 12.77 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001424/0.3659, allocations: 39.41 kB / 465.9 MB, free: 12.73 MB / 346.7 MB Notification: Performance of SimCode: time 9.157e-06/0.3659, allocations: 0 / 465.9 MB, free: 12.73 MB / 346.7 MB Notification: Performance of Templates: time 0.01247/0.3784, allocations: 8.651 MB / 474.5 MB, free: 4.148 MB / 346.7 MB make -j1 -f Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.makefile (rm -f Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; mkfifo Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe >> ../files/Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.sim & ./Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe 2>&1)