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.001006/0.001006, allocations: 182 kB / 13.64 MB, free: 1.676 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.413/1.413, allocations: 194.2 MB / 208.4 MB, free: 6.723 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.00159/0.00159, allocations: 120.7 kB / 253.5 MB, free: 9.59 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.941e-05/2.943e-05, allocations: 4 kB / 304.9 MB, free: 29.77 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06945/0.06949, allocations: 44.49 MB / 349.4 MB, free: 1.258 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2582/0.3278, allocations: 77.68 MB / 427.1 MB, free: 10.28 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001645/0.328, allocations: 71.84 kB / 427.2 MB, free: 10.27 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02755/0.3555, allocations: 11.56 MB / 438.7 MB, free: 6.039 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.653e-06/0.3556, allocations: 0 / 438.7 MB, free: 6.039 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.914e-05/0.3556, allocations: 15.62 kB / 438.8 MB, free: 6.031 MB / 298.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.001074/0.3567, allocations: 0.705 MB / 439.5 MB, free: 5.492 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.787e-05/0.3567, allocations: 7.781 kB / 439.5 MB, free: 5.492 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002913/0.357, allocations: 62.36 kB / 439.5 MB, free: 5.465 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003614/0.3574, allocations: 328.7 kB / 439.9 MB, free: 5.199 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.35e-05/0.3575, allocations: 92.73 kB / 439.9 MB, free: 5.133 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.402e-05/0.3576, allocations: 41.09 kB / 440 MB, free: 5.133 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006857/0.3583, allocations: 0.5071 MB / 440.5 MB, free: 4.98 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.78e-05/0.3583, allocations: 7.844 kB / 440.5 MB, free: 4.973 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.931e-05/0.3583, allocations: 17.97 kB / 440.5 MB, free: 4.973 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.466e-06/0.3584, allocations: 7.688 kB / 440.5 MB, free: 4.973 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007561/0.3591, allocations: 0.5389 MB / 441.1 MB, free: 4.898 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001619/0.3607, allocations: 1.164 MB / 442.2 MB, free: 3.965 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006123/0.3614, allocations: 472.2 kB / 442.7 MB, free: 3.637 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003437/0.3617, allocations: 286.3 kB / 443 MB, free: 3.465 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.119e-05/0.3618, allocations: 4.562 kB / 443 MB, free: 3.461 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.543e-05/0.3618, allocations: 42.75 kB / 443 MB, free: 3.414 MB / 298.7 MB Notification: Performance of pre-optimization done (n=63): time 1.833e-06/0.3618, allocations: 288 / 443 MB, free: 3.414 MB / 298.7 MB Notification: Performance of matching and sorting (n=71): time 0.002812/0.3646, allocations: 1.992 MB / 445 MB, free: 1.797 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.273e-05/0.3647, allocations: 85.2 kB / 445.1 MB, free: 1.699 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002077/0.3649, allocations: 252.6 kB / 445.3 MB, free: 1.488 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.027e-05/0.3649, allocations: 45.56 kB / 445.4 MB, free: 1.449 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.537e-05/0.365, allocations: 154 kB / 445.5 MB, free: 1.324 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001222/0.3651, allocations: 243.8 kB / 445.8 MB, free: 1.125 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.498e-05/0.3652, allocations: 10.75 kB / 445.8 MB, free: 1.125 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.552e-05/0.3652, allocations: 357.2 kB / 446.1 MB, free: 0.7812 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003253/0.3656, allocations: 237.3 kB / 446.4 MB, free: 0.6367 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003513/0.3659, allocations: 299.5 kB / 446.7 MB, free: 440 kB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003019/0.3662, allocations: 213.6 kB / 446.9 MB, free: 296 kB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.482e-06/0.3662, allocations: 0 / 446.9 MB, free: 296 kB / 298.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.00126/0.3675, allocations: 0.7972 MB / 447.7 MB, free: 15.71 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.557e-05/0.3675, allocations: 4 kB / 447.7 MB, free: 15.71 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.569e-05/0.3676, allocations: 3.984 kB / 447.7 MB, free: 15.71 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009195/0.3685, allocations: 424.9 kB / 448.1 MB, free: 15.39 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00037/0.3689, allocations: 91.62 kB / 448.2 MB, free: 15.3 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001078/0.37, allocations: 0.9989 MB / 449.2 MB, free: 14.46 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000474/0.3704, allocations: 82.98 kB / 449.3 MB, free: 14.39 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.767e-05/0.3705, allocations: 35.34 kB / 449.3 MB, free: 14.36 MB / 314.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 () * 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.0001694/0.3707, allocations: 138.8 kB / 449.4 MB, free: 14.24 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.983e-05/0.3708, allocations: 47.53 kB / 449.5 MB, free: 14.2 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001422/0.3722, allocations: 0.8234 MB / 450.3 MB, free: 13.62 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.909e-06/0.3723, allocations: 11.98 kB / 450.3 MB, free: 13.61 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.177e-06/0.3723, allocations: 0 / 450.3 MB, free: 13.61 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.023e-06/0.3723, allocations: 7.984 kB / 450.3 MB, free: 13.6 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00256/0.3748, allocations: 1.641 MB / 452 MB, free: 12.32 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.46e-06/0.3749, allocations: 4 kB / 452 MB, free: 12.32 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003854/0.3753, allocations: 87.06 kB / 452 MB, free: 12.23 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008596/0.3761, allocations: 389.2 kB / 452.4 MB, free: 11.93 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.417e-05/0.3762, allocations: 21.86 kB / 452.4 MB, free: 11.92 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001076/0.3773, allocations: 0.9823 MB / 453.4 MB, free: 11.09 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/0.3773, allocations: 0 / 453.4 MB, free: 11.09 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001899/0.3792, allocations: 1.199 MB / 454.6 MB, free: 10.21 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000334/0.3796, allocations: 179.3 kB / 454.8 MB, free: 10.04 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.463e-05/0.3797, allocations: 23.98 kB / 454.8 MB, free: 10.03 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004541/0.3801, allocations: 77.39 kB / 454.9 MB, free: 9.961 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002172/0.3803, allocations: 103.3 kB / 455 MB, free: 9.871 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.506e-05/0.3804, allocations: 34.16 kB / 455 MB, free: 9.844 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002195/0.3806, allocations: 199.7 kB / 455.2 MB, free: 9.68 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3806, allocations: 0 / 455.2 MB, free: 9.68 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005438/0.3812, allocations: 157.5 kB / 455.4 MB, free: 9.547 MB / 314.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) * 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.0002559/0.3815, allocations: 158.1 kB / 455.5 MB, free: 9.398 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001166/0.3826, allocations: 0.6412 MB / 456.2 MB, free: 8.938 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.3827, allocations: 4 kB / 456.2 MB, free: 8.934 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006382/0.3833, allocations: 349 kB / 456.5 MB, free: 8.695 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003399/0.3837, allocations: 39.88 kB / 456.6 MB, free: 8.672 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002191/0.3859, allocations: 0.9655 MB / 457.5 MB, free: 7.801 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003826/0.3863, allocations: 0.8321 MB / 458.4 MB, free: 6.949 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0002632/0.3865, allocations: 67.34 kB / 458.4 MB, free: 6.879 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000151/0.3867, allocations: 47.34 kB / 458.5 MB, free: 6.836 MB / 314.7 MB Notification: Performance of SimCode: time 3.11e-07/0.3867, allocations: 0 / 458.5 MB, free: 6.836 MB / 314.7 MB Notification: Performance of Templates: time 0.01381/0.4005, allocations: 8.649 MB / 467.1 MB, free: 14.21 MB / 330.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)