Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.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.Rotational.Examples.LossyGearDemo3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001404/0.001404, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.002015/0.002015, allocations: 196.9 kB / 16.26 MB, free: 6.621 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.551/1.551, allocations: 205.1 MB / 222.1 MB, free: 4.723 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.001208/0.001208, allocations: 47.94 kB / 278.2 MB, free: 12.66 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.34/0.3413, allocations: 46.62 MB / 324.8 MB, free: 1.93 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.003427/0.3447, allocations: 2.399 MB / 327.2 MB, free: 40 kB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.001928/0.3467, allocations: 0.9471 MB / 328.2 MB, free: 15.29 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001544/0.3469, allocations: 7.594 kB / 328.2 MB, free: 15.28 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002459/0.3472, allocations: 39.67 kB / 328.2 MB, free: 15.25 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005301/0.3477, allocations: 116.2 kB / 328.3 MB, free: 15.17 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003591/0.3481, allocations: 156.8 kB / 328.5 MB, free: 15.06 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005267/0.3486, allocations: 422.3 kB / 328.9 MB, free: 14.82 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002004/0.3488, allocations: 62.84 kB / 329 MB, free: 14.79 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002478/0.3491, allocations: 182.3 kB / 329.1 MB, free: 14.69 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003273/0.3494, allocations: 216.2 kB / 329.4 MB, free: 14.55 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 6.785e-05/0.3495, allocations: 36.38 kB / 329.4 MB, free: 14.55 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002516/0.3497, allocations: 110.5 kB / 329.5 MB, free: 14.51 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001854/0.3499, allocations: 96.28 kB / 329.6 MB, free: 14.44 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001975/0.3501, allocations: 167.4 kB / 329.8 MB, free: 14.32 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006146/0.3507, allocations: 444.4 kB / 330.2 MB, free: 14.01 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.691e-06/0.3508, allocations: 0.9688 kB / 330.2 MB, free: 14.01 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.3508, allocations: 4 kB / 330.2 MB, free: 14 MB / 270.1 MB Notification: Performance of Transformations before backend: time 7.844e-06/0.3508, allocations: 0 / 330.2 MB, free: 14 MB / 270.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.001355/0.3521, allocations: 0.6304 MB / 330.8 MB, free: 13.45 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.678e-05/0.3522, allocations: 12.59 kB / 330.8 MB, free: 13.45 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003608/0.3526, allocations: 51.5 kB / 330.9 MB, free: 13.43 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005196/0.3531, allocations: 307.4 kB / 331.2 MB, free: 13.14 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001593/0.3533, allocations: 87.95 kB / 331.3 MB, free: 13.05 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.463e-05/0.3533, allocations: 27.38 kB / 331.3 MB, free: 13.05 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007662/0.3541, allocations: 375.5 kB / 331.7 MB, free: 12.8 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.557e-05/0.3542, allocations: 9.281 kB / 331.7 MB, free: 12.8 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.026e-05/0.3542, allocations: 11.22 kB / 331.7 MB, free: 12.79 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.763e-05/0.3542, allocations: 10.58 kB / 331.7 MB, free: 12.79 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009577/0.3552, allocations: 410.6 kB / 332.1 MB, free: 12.61 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002129/0.3573, allocations: 1.236 MB / 333.3 MB, free: 11.4 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006953/0.358, allocations: 362.5 kB / 333.7 MB, free: 11.04 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003674/0.3584, allocations: 180.8 kB / 333.9 MB, free: 10.86 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.693e-05/0.3585, allocations: 12.72 kB / 333.9 MB, free: 10.85 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.178e-05/0.3585, allocations: 30.56 kB / 333.9 MB, free: 10.81 MB / 270.1 MB Notification: Performance of pre-optimization done (n=43): time 2.154e-06/0.3585, allocations: 4 kB / 333.9 MB, free: 10.8 MB / 270.1 MB Notification: Performance of matching and sorting (n=45): time 0.004793/0.3633, allocations: 1.929 MB / 335.8 MB, free: 8.762 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.14e-05/0.3634, allocations: 88.8 kB / 335.9 MB, free: 8.656 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003108/0.3637, allocations: 242.2 kB / 336.2 MB, free: 8.406 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 4.697e-05/0.3638, allocations: 33.7 kB / 336.2 MB, free: 8.367 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001233/0.3639, allocations: 136.7 kB / 336.3 MB, free: 8.23 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001251/0.3641, allocations: 150 kB / 336.5 MB, free: 8.082 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001576/0.3642, allocations: 82.12 kB / 336.6 MB, free: 7.996 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001687/0.3644, allocations: 330.8 kB / 336.9 MB, free: 7.664 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003636/0.3648, allocations: 176.8 kB / 337.1 MB, free: 7.492 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004056/0.3652, allocations: 225.8 kB / 337.3 MB, free: 7.25 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006789/0.3659, allocations: 351.2 kB / 337.6 MB, free: 6.895 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.3659, allocations: 0 / 337.6 MB, free: 6.895 MB / 270.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001084/0.367, allocations: 0.5552 MB / 338.2 MB, free: 6.332 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.197e-05/0.367, allocations: 8 kB / 338.2 MB, free: 6.324 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.173e-06/0.367, allocations: 0 / 338.2 MB, free: 6.324 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007706/0.3678, allocations: 252.7 kB / 338.4 MB, free: 6.074 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002443/0.3681, allocations: 51.89 kB / 338.5 MB, free: 6.023 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003942/0.372, allocations: 2.89 MB / 341.4 MB, free: 2.996 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002817/0.3723, allocations: 27.97 kB / 341.4 MB, free: 2.969 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.828e-05/0.3724, allocations: 16 kB / 341.4 MB, free: 2.953 MB / 270.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 7 (gear.ideal,gear.mode,$PRE.gear.mode,gear.locked,gear.startBackward,gear.startForward,gear.tau_aPos) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * Single equations (assignments): 26 * Array equations: 0 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,24)} Notification: Performance of prepare postOptimizeDAE: time 0.0002199/0.3726, allocations: 157.8 kB / 341.6 MB, free: 2.789 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.323e-05/0.3727, allocations: 31.62 kB / 341.6 MB, free: 2.758 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.812e-05/0.3728, allocations: 39 kB / 341.6 MB, free: 2.719 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.839e-06/0.3728, allocations: 4 kB / 341.6 MB, free: 2.715 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.637e-06/0.3728, allocations: 0 / 341.6 MB, free: 2.715 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.511e-05/0.3728, allocations: 3.984 kB / 341.6 MB, free: 2.711 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001852/0.3747, allocations: 1.1 MB / 342.7 MB, free: 1.551 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.406e-06/0.3747, allocations: 0 / 342.7 MB, free: 1.551 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002254/0.3749, allocations: 47.91 kB / 342.8 MB, free: 1.504 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006838/0.3756, allocations: 244.8 kB / 343 MB, free: 1.262 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.735e-05/0.3757, allocations: 15.98 kB / 343 MB, free: 1.246 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003988/0.3797, allocations: 2.831 MB / 345.9 MB, free: 14.27 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.3797, allocations: 0 / 345.9 MB, free: 14.27 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001556/0.3812, allocations: 0.818 MB / 346.7 MB, free: 13.43 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001662/0.3814, allocations: 132.8 kB / 346.8 MB, free: 13.29 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.288e-05/0.3815, allocations: 15.92 kB / 346.8 MB, free: 13.27 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002574/0.3818, allocations: 27.98 kB / 346.9 MB, free: 13.24 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001777/0.3819, allocations: 59.91 kB / 346.9 MB, free: 13.18 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.888e-05/0.382, allocations: 11.98 kB / 346.9 MB, free: 13.17 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002426/0.3822, allocations: 193.5 kB / 347.1 MB, free: 12.98 MB / 286.1 MB Notification: Performance of sort global known variables: time 4.5e-07/0.3822, allocations: 0 / 347.1 MB, free: 12.98 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0006982/0.3829, allocations: 136 kB / 347.3 MB, free: 12.85 MB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 20 * Array equations: 0 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,23)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003074/0.3833, allocations: 143.1 kB / 347.4 MB, free: 12.7 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001486/0.3848, allocations: 0.6526 MB / 348 MB, free: 12.04 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/0.3848, allocations: 0 / 348 MB, free: 12.04 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007464/0.3855, allocations: 429.3 kB / 348.5 MB, free: 11.6 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004414/0.386, allocations: 40.05 kB / 348.5 MB, free: 11.56 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001579/0.3876, allocations: 0.82 MB / 349.3 MB, free: 10.71 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004233/0.388, allocations: 0.7761 MB / 350.1 MB, free: 9.91 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0002045/0.3882, allocations: 58.95 kB / 350.2 MB, free: 9.852 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.5e-05/0.3883, allocations: 23.42 kB / 350.2 MB, free: 9.828 MB / 286.1 MB Notification: Performance of SimCode: time 6.01e-07/0.3883, allocations: 0 / 350.2 MB, free: 9.828 MB / 286.1 MB Notification: Performance of Templates: time 0.01452/0.4029, allocations: 7.063 MB / 357.2 MB, free: 2.758 MB / 286.1 MB make -j1 -f Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.makefile (rm -f Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & ./Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1)