Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.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.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.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.001502/0.001502, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001748/0.001748, allocations: 189 kB / 16.25 MB, free: 6.625 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.499/1.499, allocations: 205.1 MB / 222.1 MB, free: 4.727 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.001321/0.00132, allocations: 43.94 kB / 278.2 MB, free: 12.68 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3082/0.3095, allocations: 46.63 MB / 324.8 MB, free: 1.93 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.003884/0.3135, allocations: 2.387 MB / 327.2 MB, free: 52 kB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.001918/0.3154, allocations: 0.9548 MB / 328.2 MB, free: 15.29 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001354/0.3156, allocations: 3.5 kB / 328.2 MB, free: 15.29 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002165/0.3158, allocations: 36.3 kB / 328.2 MB, free: 15.26 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004829/0.3163, allocations: 123.6 kB / 328.3 MB, free: 15.18 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003133/0.3166, allocations: 153 kB / 328.5 MB, free: 15.07 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004565/0.3171, allocations: 418.2 kB / 328.9 MB, free: 14.83 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001825/0.3173, allocations: 67.52 kB / 329 MB, free: 14.8 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002212/0.3175, allocations: 181.6 kB / 329.1 MB, free: 14.7 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003081/0.3178, allocations: 216.3 kB / 329.4 MB, free: 14.56 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 6.253e-05/0.3179, allocations: 33.41 kB / 329.4 MB, free: 14.56 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002178/0.3181, allocations: 116.7 kB / 329.5 MB, free: 14.52 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001477/0.3183, allocations: 93.09 kB / 329.6 MB, free: 14.45 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002205/0.3185, allocations: 166.5 kB / 329.8 MB, free: 14.33 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006564/0.3191, allocations: 438.2 kB / 330.2 MB, free: 14.02 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.173e-06/0.3192, allocations: 0 / 330.2 MB, free: 14.02 MB / 270.1 MB Notification: Performance of FrontEnd: time 3.957e-06/0.3192, allocations: 0 / 330.2 MB, free: 14.02 MB / 270.1 MB Notification: Performance of Transformations before backend: time 9.618e-06/0.3192, allocations: 7.938 kB / 330.2 MB, free: 14.02 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.001317/0.3205, allocations: 0.6412 MB / 330.8 MB, free: 13.45 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.909e-05/0.3206, allocations: 9.875 kB / 330.8 MB, free: 13.45 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003666/0.3209, allocations: 51.58 kB / 330.9 MB, free: 13.43 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005011/0.3215, allocations: 295.4 kB / 331.2 MB, free: 13.15 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001371/0.3216, allocations: 92.55 kB / 331.3 MB, free: 13.07 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.365e-05/0.3217, allocations: 26.09 kB / 331.3 MB, free: 13.06 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007629/0.3224, allocations: 380.5 kB / 331.7 MB, free: 12.81 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.865e-05/0.3225, allocations: 1.094 kB / 331.7 MB, free: 12.81 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.045e-05/0.3225, allocations: 14.34 kB / 331.7 MB, free: 12.8 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.339e-05/0.3225, allocations: 6.781 kB / 331.7 MB, free: 12.8 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009383/0.3235, allocations: 418.7 kB / 332.1 MB, free: 12.62 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002003/0.3255, allocations: 1.238 MB / 333.3 MB, free: 11.4 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006836/0.3262, allocations: 354.5 kB / 333.7 MB, free: 11.05 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004336/0.3266, allocations: 184.8 kB / 333.9 MB, free: 10.86 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.005e-05/0.3267, allocations: 4.875 kB / 333.9 MB, free: 10.86 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.307e-05/0.3267, allocations: 46.48 kB / 333.9 MB, free: 10.8 MB / 270.1 MB Notification: Performance of pre-optimization done (n=43): time 1.744e-06/0.3267, allocations: 0 / 333.9 MB, free: 10.8 MB / 270.1 MB Notification: Performance of matching and sorting (n=45): time 0.004645/0.3314, allocations: 1.925 MB / 335.8 MB, free: 8.766 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.974e-05/0.3315, allocations: 88.86 kB / 335.9 MB, free: 8.66 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002842/0.3318, allocations: 242.2 kB / 336.2 MB, free: 8.41 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 3.89e-05/0.3318, allocations: 33.7 kB / 336.2 MB, free: 8.371 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.54e-05/0.3319, allocations: 136.7 kB / 336.3 MB, free: 8.234 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001237/0.332, allocations: 149.8 kB / 336.5 MB, free: 8.086 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001348/0.3322, allocations: 78.12 kB / 336.6 MB, free: 8.004 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001322/0.3323, allocations: 338.8 kB / 336.9 MB, free: 7.664 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000347/0.3327, allocations: 172.7 kB / 337.1 MB, free: 7.496 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004069/0.3331, allocations: 233.9 kB / 337.3 MB, free: 7.246 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009437/0.334, allocations: 339.2 kB / 337.6 MB, free: 6.902 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.424e-06/0.3341, allocations: 3.984 kB / 337.6 MB, free: 6.898 MB / 270.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.00116/0.3352, allocations: 0.5551 MB / 338.2 MB, free: 6.336 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.583e-05/0.3353, allocations: 8.125 kB / 338.2 MB, free: 6.328 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.2e-05/0.3353, allocations: 4 kB / 338.2 MB, free: 6.324 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007543/0.3361, allocations: 252.6 kB / 338.4 MB, free: 6.074 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00025/0.3363, allocations: 51.91 kB / 338.5 MB, free: 6.023 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004128/0.3405, allocations: 2.89 MB / 341.4 MB, free: 2.996 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003188/0.3408, allocations: 23.97 kB / 341.4 MB, free: 2.973 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.421e-05/0.3409, allocations: 16 kB / 341.4 MB, free: 2.957 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.0002689/0.3411, allocations: 157.8 kB / 341.6 MB, free: 2.793 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.246e-05/0.3412, allocations: 27.62 kB / 341.6 MB, free: 2.766 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.659e-05/0.3413, allocations: 46.98 kB / 341.6 MB, free: 2.719 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.659e-06/0.3414, allocations: 8 kB / 341.6 MB, free: 2.711 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.478e-06/0.3414, allocations: 0 / 341.6 MB, free: 2.711 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.801e-06/0.3414, allocations: 0 / 341.6 MB, free: 2.711 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002022/0.3434, allocations: 1.1 MB / 342.7 MB, free: 1.551 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.985e-06/0.3434, allocations: 0 / 342.7 MB, free: 1.551 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002323/0.3437, allocations: 39.97 kB / 342.8 MB, free: 1.512 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007013/0.3444, allocations: 244.8 kB / 343 MB, free: 1.27 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.629e-05/0.3444, allocations: 15.98 kB / 343 MB, free: 1.254 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003877/0.3483, allocations: 2.835 MB / 345.9 MB, free: 14.28 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.904e-06/0.3483, allocations: 0 / 345.9 MB, free: 14.28 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001495/0.3498, allocations: 0.8181 MB / 346.7 MB, free: 13.44 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001528/0.35, allocations: 136.8 kB / 346.8 MB, free: 13.29 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.056e-05/0.3501, allocations: 19.88 kB / 346.8 MB, free: 13.27 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002573/0.3503, allocations: 19.98 kB / 346.9 MB, free: 13.25 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001827/0.3505, allocations: 59.91 kB / 346.9 MB, free: 13.19 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.239e-05/0.3506, allocations: 15.98 kB / 346.9 MB, free: 13.17 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002421/0.3508, allocations: 185.5 kB / 347.1 MB, free: 12.99 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3508, allocations: 0 / 347.1 MB, free: 12.99 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0008378/0.3517, allocations: 144 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.0003794/0.3521, allocations: 131.2 kB / 347.4 MB, free: 12.71 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001688/0.3538, allocations: 0.6487 MB / 348 MB, free: 12.05 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 4.619e-06/0.3538, allocations: 0 / 348 MB, free: 12.05 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007601/0.3545, allocations: 429.3 kB / 348.5 MB, free: 11.62 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004386/0.355, allocations: 47.98 kB / 348.5 MB, free: 11.57 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001479/0.3565, allocations: 0.8279 MB / 349.3 MB, free: 10.71 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000401/0.3569, allocations: 0.7722 MB / 350.1 MB, free: 9.914 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.000205/0.3571, allocations: 54.95 kB / 350.2 MB, free: 9.859 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.628e-05/0.3572, allocations: 31.42 kB / 350.2 MB, free: 9.828 MB / 286.1 MB Notification: Performance of SimCode: time 2.41e-07/0.3572, allocations: 0 / 350.2 MB, free: 9.828 MB / 286.1 MB Notification: Performance of Templates: time 0.01271/0.3699, allocations: 7.063 MB / 357.3 MB, free: 2.758 MB / 286.1 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.makefile (rm -f Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & ./Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1)