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.0008589/0.0008589, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.0009534/0.0009535, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.616/1.616, allocations: 205.4 MB / 222.1 MB, free: 5.637 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.0004677/0.0004678, allocations: 18.81 kB / 278.9 MB, free: 12.82 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2644/0.2649, allocations: 47.58 MB / 326.5 MB, free: 1.383 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.00237/0.2673, allocations: 1.955 MB / 328.4 MB, free: 15.84 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.00165/0.2689, allocations: 0.9142 MB / 329.3 MB, free: 15.12 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001301/0.2691, allocations: 3.938 kB / 329.3 MB, free: 15.12 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001758/0.2693, allocations: 29.98 kB / 329.4 MB, free: 15.09 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003896/0.2697, allocations: 111.7 kB / 329.5 MB, free: 15.01 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002765/0.27, allocations: 141.8 kB / 329.6 MB, free: 14.91 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.000362/0.2703, allocations: 366.5 kB / 330 MB, free: 14.7 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001481/0.2705, allocations: 49.25 kB / 330 MB, free: 14.67 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001912/0.2707, allocations: 159.4 kB / 330.2 MB, free: 14.59 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002908/0.271, allocations: 193.4 kB / 330.4 MB, free: 14.47 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 4.187e-05/0.271, allocations: 17.19 kB / 330.4 MB, free: 14.47 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001696/0.2712, allocations: 93.77 kB / 330.5 MB, free: 14.43 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001113/0.2713, allocations: 76.84 kB / 330.6 MB, free: 14.38 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001119/0.2715, allocations: 75.11 kB / 330.6 MB, free: 14.32 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005181/0.272, allocations: 313.1 kB / 330.9 MB, free: 14.11 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.582e-06/0.272, allocations: 0 / 330.9 MB, free: 14.11 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.675e-06/0.272, allocations: 1.219 kB / 330.9 MB, free: 14.11 MB / 270.1 MB Notification: Performance of Transformations before backend: time 8.125e-06/0.272, allocations: 0 / 330.9 MB, free: 14.11 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.001096/0.2731, allocations: 0.5924 MB / 331.5 MB, free: 13.59 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.474e-05/0.2732, allocations: 8.625 kB / 331.5 MB, free: 13.59 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002933/0.2735, allocations: 47.48 kB / 331.6 MB, free: 13.57 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004352/0.2739, allocations: 301.7 kB / 331.9 MB, free: 13.28 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001354/0.2741, allocations: 82.7 kB / 332 MB, free: 13.2 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.283e-05/0.2741, allocations: 30.09 kB / 332 MB, free: 13.19 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000672/0.2748, allocations: 374.2 kB / 332.4 MB, free: 12.95 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.744e-05/0.2748, allocations: 5.062 kB / 332.4 MB, free: 12.95 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.129e-05/0.2749, allocations: 15.25 kB / 332.4 MB, free: 12.94 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.307e-06/0.2749, allocations: 6.469 kB / 332.4 MB, free: 12.94 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008917/0.2758, allocations: 424.4 kB / 332.8 MB, free: 12.76 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002017/0.2778, allocations: 1.256 MB / 334.1 MB, free: 11.71 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006561/0.2785, allocations: 355.1 kB / 334.4 MB, free: 11.35 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003579/0.2789, allocations: 192.7 kB / 334.6 MB, free: 11.16 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.881e-05/0.2789, allocations: 8.141 kB / 334.6 MB, free: 11.15 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.319e-05/0.279, allocations: 39.28 kB / 334.6 MB, free: 11.11 MB / 270.1 MB Notification: Performance of pre-optimization done (n=43): time 1.623e-06/0.279, allocations: 0 / 334.6 MB, free: 11.11 MB / 270.1 MB Notification: Performance of matching and sorting (n=45): time 0.004431/0.2834, allocations: 1.96 MB / 336.6 MB, free: 9.031 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.528e-05/0.2835, allocations: 84.86 kB / 336.7 MB, free: 8.93 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003018/0.2838, allocations: 242.2 kB / 336.9 MB, free: 8.68 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 3.988e-05/0.2839, allocations: 37.64 kB / 337 MB, free: 8.637 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001035/0.284, allocations: 136.7 kB / 337.1 MB, free: 8.5 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001375/0.2841, allocations: 153.8 kB / 337.2 MB, free: 8.348 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.522e-05/0.2841, allocations: 8 kB / 337.2 MB, free: 8.34 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001607/0.2843, allocations: 334.8 kB / 337.6 MB, free: 8.004 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003858/0.2847, allocations: 168.8 kB / 337.7 MB, free: 7.84 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004183/0.2851, allocations: 233.9 kB / 338 MB, free: 7.59 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003584/0.2855, allocations: 168.7 kB / 338.1 MB, free: 7.43 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.2855, allocations: 0 / 338.1 MB, free: 7.43 MB / 270.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001116/0.2866, allocations: 0.563 MB / 338.7 MB, free: 6.855 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.313e-05/0.2867, allocations: 4 kB / 338.7 MB, free: 6.852 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.858e-06/0.2867, allocations: 4 kB / 338.7 MB, free: 6.848 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007405/0.2874, allocations: 244.7 kB / 338.9 MB, free: 6.605 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002406/0.2877, allocations: 59.91 kB / 339 MB, free: 6.547 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003783/0.2915, allocations: 2.648 MB / 341.6 MB, free: 3.766 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002368/0.2917, allocations: 27.98 kB / 341.7 MB, free: 3.738 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.815e-05/0.2918, allocations: 19.98 kB / 341.7 MB, free: 3.719 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.tau_aPos,gear.startForward,gear.startBackward,gear.locked,$PRE.gear.mode,gear.mode,gear.ideal) * 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 (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 24} Notification: Performance of prepare postOptimizeDAE: time 0.0001912/0.292, allocations: 157.8 kB / 341.8 MB, free: 3.555 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.402e-05/0.2921, allocations: 23.72 kB / 341.9 MB, free: 3.531 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001053/0.2922, allocations: 42.98 kB / 341.9 MB, free: 3.488 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.6e-06/0.2922, allocations: 4 kB / 341.9 MB, free: 3.484 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.148e-06/0.2922, allocations: 0 / 341.9 MB, free: 3.484 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.924e-06/0.2922, allocations: 7.938 kB / 341.9 MB, free: 3.477 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001855/0.2941, allocations: 1.092 MB / 343 MB, free: 2.324 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.446e-06/0.2941, allocations: 0 / 343 MB, free: 2.324 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002161/0.2943, allocations: 47.95 kB / 343.1 MB, free: 2.277 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006151/0.2949, allocations: 248.8 kB / 343.3 MB, free: 2.031 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.775e-05/0.295, allocations: 15.95 kB / 343.3 MB, free: 2.016 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003527/0.2985, allocations: 2.593 MB / 345.9 MB, free: 15.29 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.904e-06/0.2985, allocations: 3.938 kB / 345.9 MB, free: 15.29 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001495/0.3, allocations: 0.8336 MB / 346.7 MB, free: 14.43 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001767/0.3002, allocations: 136.8 kB / 346.9 MB, free: 14.28 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.784e-05/0.3003, allocations: 12 kB / 346.9 MB, free: 14.27 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002341/0.3005, allocations: 27.97 kB / 346.9 MB, free: 14.24 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001538/0.3007, allocations: 63.88 kB / 347 MB, free: 14.18 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.076e-05/0.3007, allocations: 20.05 kB / 347 MB, free: 14.16 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002319/0.301, allocations: 181.5 kB / 347.2 MB, free: 13.98 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.301, allocations: 0 / 347.2 MB, free: 13.98 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0006355/0.3016, allocations: 144 kB / 347.3 MB, free: 13.84 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 (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.0002586/0.3019, allocations: 139.1 kB / 347.5 MB, free: 13.7 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001388/0.3033, allocations: 0.6212 MB / 348.1 MB, free: 13.06 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.3033, allocations: 0 / 348.1 MB, free: 13.06 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007818/0.3041, allocations: 437.6 kB / 348.5 MB, free: 12.62 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004085/0.3045, allocations: 35.94 kB / 348.5 MB, free: 12.59 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001592/0.3061, allocations: 0.8358 MB / 349.4 MB, free: 11.73 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004881/0.3066, allocations: 0.7764 MB / 350.2 MB, free: 10.93 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0002347/0.3069, allocations: 58.95 kB / 350.2 MB, free: 10.87 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.926e-05/0.307, allocations: 27.42 kB / 350.2 MB, free: 10.84 MB / 286.1 MB Notification: Performance of SimCode: time 7.52e-07/0.307, allocations: 0 / 350.2 MB, free: 10.84 MB / 286.1 MB Notification: Performance of Templates: time 0.01263/0.3196, allocations: 6.378 MB / 356.6 MB, free: 4.453 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)