Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.0009244/0.0009245, allocations: 171.5 kB / 7.638 MB, free: 1.418 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.366/1.366, allocations: 170.7 MB / 178.7 MB, free: 15.65 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001681/0.001681, allocations: 107.5 kB / 218 MB, free: 8.402 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 1.23e-05/1.237e-05, allocations: 0 / 262.2 MB, free: 26.4 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0649/0.06493, allocations: 38.78 MB / 301 MB, free: 3.621 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.258/0.323, allocations: 70.31 MB / 371.3 MB, free: 14.05 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001989/0.3232, allocations: 68.03 kB / 371.4 MB, free: 14.02 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02802/0.3513, allocations: 9.876 MB / 381.2 MB, free: 5.836 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.473e-06/0.3513, allocations: 0 / 381.2 MB, free: 5.836 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.437e-05/0.3514, allocations: 4 kB / 381.2 MB, free: 5.832 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.001361/0.3527, allocations: 0.5929 MB / 381.8 MB, free: 5.219 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.02e-05/0.3528, allocations: 8.031 kB / 381.8 MB, free: 5.211 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003742/0.3532, allocations: 55.52 kB / 381.9 MB, free: 5.156 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004608/0.3536, allocations: 280.6 kB / 382.2 MB, free: 4.871 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001296/0.3538, allocations: 80.12 kB / 382.2 MB, free: 4.781 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.46e-05/0.3539, allocations: 23.91 kB / 382.3 MB, free: 4.758 MB / 266.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006743/0.3546, allocations: 408.3 kB / 382.7 MB, free: 4.469 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005486/0.3551, allocations: 340 kB / 383 MB, free: 4.207 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.86e-05/0.3552, allocations: 0 / 383 MB, free: 4.207 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.761e-05/0.3552, allocations: 0 / 383 MB, free: 4.207 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.061e-05/0.3552, allocations: 8 kB / 383 MB, free: 4.199 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001382/0.3566, allocations: 0.846 MB / 383.9 MB, free: 3.48 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005308/0.3572, allocations: 330.1 kB / 384.2 MB, free: 3.258 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002754/0.3574, allocations: 183.5 kB / 384.4 MB, free: 3.148 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.978e-05/0.3575, allocations: 8.422 kB / 384.4 MB, free: 3.141 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.661e-05/0.3575, allocations: 42.94 kB / 384.4 MB, free: 3.094 MB / 266.7 MB Notification: Performance of pre-optimization done (n=49): time 2.405e-06/0.3575, allocations: 0 / 384.4 MB, free: 3.094 MB / 266.7 MB Notification: Performance of matching and sorting (n=55): time 0.002754/0.3603, allocations: 1.431 MB / 385.8 MB, free: 1.848 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.579e-05/0.3604, allocations: 85.67 kB / 385.9 MB, free: 1.746 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002328/0.3606, allocations: 185 kB / 386.1 MB, free: 1.582 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.402e-05/0.3607, allocations: 33.14 kB / 386.1 MB, free: 1.547 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.998e-05/0.3608, allocations: 138.4 kB / 386.3 MB, free: 1.422 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001352/0.3609, allocations: 170.6 kB / 386.4 MB, free: 1.277 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.697e-05/0.3609, allocations: 0 / 386.4 MB, free: 1.277 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001257/0.3611, allocations: 341.4 kB / 386.8 MB, free: 0.9453 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002386/0.3613, allocations: 155 kB / 386.9 MB, free: 0.8516 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002695/0.3616, allocations: 202.7 kB / 387.1 MB, free: 0.7148 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00032/0.3619, allocations: 155.1 kB / 387.3 MB, free: 0.6133 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.3619, allocations: 4 kB / 387.3 MB, free: 0.6094 MB / 266.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.0008542/0.3628, allocations: 0.5106 MB / 387.8 MB, free: 232 kB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.804e-05/0.3628, allocations: 4 kB / 387.8 MB, free: 228 kB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.213e-06/0.3628, allocations: 0 / 387.8 MB, free: 228 kB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000638/0.3635, allocations: 244 kB / 388 MB, free: 40 kB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003307/0.3638, allocations: 68 kB / 388.1 MB, free: 15.97 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003248/0.3671, allocations: 2.598 MB / 390.7 MB, free: 13.8 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003027/0.3674, allocations: 28.03 kB / 390.7 MB, free: 13.78 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.491e-05/0.3675, allocations: 19.69 kB / 390.7 MB, free: 13.76 MB / 282.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: gear.flange_a.tau:VARIABLE(flow=true unit = "N.m" ) "Cut torque in the flange" type: Real gear.sa:VARIABLE(unit = "1" ) "Path parameter for acceleration and torque loss" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,$PRE.gear.mode,gear.mode,gear.ideal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 32 * 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 25} Notification: Performance of prepare postOptimizeDAE: time 0.0001829/0.3677, allocations: 114.9 kB / 390.9 MB, free: 13.64 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.614e-05/0.3677, allocations: 39.41 kB / 390.9 MB, free: 13.61 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.539e-05/0.3678, allocations: 43.34 kB / 390.9 MB, free: 13.59 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.88e-06/0.3679, allocations: 4 kB / 390.9 MB, free: 13.59 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.665e-06/0.3679, allocations: 0 / 390.9 MB, free: 13.59 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.765e-06/0.3679, allocations: 7.984 kB / 390.9 MB, free: 13.58 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001736/0.3696, allocations: 1.091 MB / 392 MB, free: 12.72 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.356e-06/0.3696, allocations: 0 / 392 MB, free: 12.72 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003441/0.37, allocations: 75.73 kB / 392.1 MB, free: 12.65 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005587/0.3706, allocations: 222.5 kB / 392.3 MB, free: 12.48 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.765e-05/0.3706, allocations: 7.984 kB / 392.3 MB, free: 12.47 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003319/0.3739, allocations: 2.504 MB / 394.8 MB, free: 10.36 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.907e-06/0.374, allocations: 0 / 394.8 MB, free: 10.36 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001288/0.3753, allocations: 0.8261 MB / 395.7 MB, free: 9.754 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001734/0.3754, allocations: 151.4 kB / 395.8 MB, free: 9.605 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.314e-05/0.3755, allocations: 7.953 kB / 395.8 MB, free: 9.598 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002979/0.3758, allocations: 28.03 kB / 395.8 MB, free: 9.57 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000148/0.376, allocations: 73.61 kB / 395.9 MB, free: 9.508 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.081e-05/0.376, allocations: 23.17 kB / 395.9 MB, free: 9.492 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001267/0.3762, allocations: 151.9 kB / 396.1 MB, free: 9.363 MB / 282.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3762, allocations: 0 / 396.1 MB, free: 9.363 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0006956/0.3769, allocations: 143.9 kB / 396.2 MB, free: 9.223 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (Inertia2.phi,Inertia2.w) * Number of discrete variables: 5 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode) * Number of discrete states: 1 (gear.mode) * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 30 * 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 23} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003545/0.3772, allocations: 134.2 kB / 396.4 MB, free: 9.086 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001005/0.3782, allocations: 0.5902 MB / 397 MB, free: 8.641 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.474e-06/0.3783, allocations: 0 / 397 MB, free: 8.641 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005607/0.3788, allocations: 425.7 kB / 397.4 MB, free: 8.305 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002998/0.3791, allocations: 15.36 kB / 397.4 MB, free: 8.293 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001097/0.3803, allocations: 0.5795 MB / 398 MB, free: 7.766 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003899/0.3807, allocations: 0.8046 MB / 398.8 MB, free: 6.934 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002293/0.3809, allocations: 63.25 kB / 398.8 MB, free: 6.875 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001111/0.381, allocations: 34.86 kB / 398.9 MB, free: 6.844 MB / 282.7 MB Notification: Performance of SimCode: time 2.9e-07/0.381, allocations: 0 / 398.9 MB, free: 6.844 MB / 282.7 MB Notification: Performance of Templates: time 0.01093/0.392, allocations: 6.526 MB / 405.4 MB, free: 332 kB / 282.7 MB make -j1 -f Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.makefile (rm -f Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & ./Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1)