Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.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.LossyGearDemo1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009113/0.0009112, allocations: 91.61 kB / 15.06 MB, free: 1.098 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.001013/0.001012, allocations: 172.7 kB / 15.95 MB, free: 208 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.48/1.48, allocations: 205.4 MB / 222.1 MB, free: 5.887 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.0004912/0.0004912, allocations: 8 kB / 278.9 MB, free: 13.06 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2496/0.2501, allocations: 47.58 MB / 326.5 MB, free: 1.383 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.002394/0.2525, allocations: 2.033 MB / 328.5 MB, free: 15.78 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001681/0.2542, allocations: 0.9558 MB / 329.5 MB, free: 15.02 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001475/0.2544, allocations: 7.531 kB / 329.5 MB, free: 15.02 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000192/0.2546, allocations: 36.08 kB / 329.5 MB, free: 14.99 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004632/0.2551, allocations: 135.5 kB / 329.6 MB, free: 14.89 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000301/0.2554, allocations: 146.4 kB / 329.8 MB, free: 14.78 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004401/0.2558, allocations: 416.5 kB / 330.2 MB, free: 14.54 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001748/0.256, allocations: 76.75 kB / 330.3 MB, free: 14.49 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002636/0.2563, allocations: 179.2 kB / 330.4 MB, free: 14.4 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002763/0.2566, allocations: 209 kB / 330.6 MB, free: 14.27 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 4.82e-05/0.2566, allocations: 23.66 kB / 330.7 MB, free: 14.27 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000199/0.2568, allocations: 97.11 kB / 330.7 MB, free: 14.23 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000151/0.257, allocations: 85.55 kB / 330.8 MB, free: 14.17 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 9.327e-05/0.2571, allocations: 81.89 kB / 330.9 MB, free: 14.11 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003876/0.2575, allocations: 353.3 kB / 331.3 MB, free: 13.86 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.011e-06/0.2575, allocations: 1.312 kB / 331.3 MB, free: 13.86 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.2575, allocations: 4 kB / 331.3 MB, free: 13.86 MB / 270.1 MB Notification: Performance of Transformations before backend: time 5.4e-06/0.2575, allocations: 0 / 331.3 MB, free: 13.86 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: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.001191/0.2587, allocations: 0.615 MB / 331.9 MB, free: 13.33 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.191e-05/0.2588, allocations: 9.719 kB / 331.9 MB, free: 13.33 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003085/0.2591, allocations: 51.8 kB / 331.9 MB, free: 13.3 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004555/0.2596, allocations: 316.2 kB / 332.2 MB, free: 13.01 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001277/0.2597, allocations: 89.27 kB / 332.3 MB, free: 12.93 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.888e-05/0.2598, allocations: 39.88 kB / 332.4 MB, free: 12.91 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008239/0.2606, allocations: 417.8 kB / 332.8 MB, free: 12.66 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.614e-05/0.2606, allocations: 0 / 332.8 MB, free: 12.66 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.712e-05/0.2607, allocations: 11.03 kB / 332.8 MB, free: 12.65 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.181e-05/0.2607, allocations: 7.594 kB / 332.8 MB, free: 12.65 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001007/0.2617, allocations: 484.9 kB / 333.3 MB, free: 12.44 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001695/0.2634, allocations: 0.9906 MB / 334.3 MB, free: 11.55 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007993/0.2642, allocations: 413.3 kB / 334.7 MB, free: 11.14 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004473/0.2647, allocations: 238.1 kB / 334.9 MB, free: 10.9 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.836e-05/0.2647, allocations: 4.438 kB / 334.9 MB, free: 10.9 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.618e-05/0.2648, allocations: 39 kB / 334.9 MB, free: 10.85 MB / 270.1 MB Notification: Performance of pre-optimization done (n=49): time 1.994e-06/0.2648, allocations: 0 / 334.9 MB, free: 10.85 MB / 270.1 MB Notification: Performance of matching and sorting (n=55): time 0.00495/0.2697, allocations: 2.222 MB / 337.2 MB, free: 8.516 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.874e-05/0.2698, allocations: 81.67 kB / 337.2 MB, free: 8.418 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003046/0.2702, allocations: 259.1 kB / 337.5 MB, free: 8.156 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 4.264e-05/0.2702, allocations: 33.7 kB / 337.5 MB, free: 8.117 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.95e-05/0.2703, allocations: 149 kB / 337.7 MB, free: 7.965 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001383/0.2705, allocations: 177.4 kB / 337.8 MB, free: 7.789 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.049e-05/0.2705, allocations: 12 kB / 337.9 MB, free: 7.777 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001542/0.2707, allocations: 338.8 kB / 338.2 MB, free: 7.438 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004379/0.2711, allocations: 205 kB / 338.4 MB, free: 7.238 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004401/0.2715, allocations: 248.6 kB / 338.6 MB, free: 6.984 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004016/0.272, allocations: 202.2 kB / 338.8 MB, free: 6.789 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.443e-06/0.272, allocations: 0 / 338.8 MB, free: 6.789 MB / 270.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001167/0.2731, allocations: 0.6173 MB / 339.4 MB, free: 6.164 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.766e-05/0.2732, allocations: 11.95 kB / 339.5 MB, free: 6.152 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.426e-06/0.2732, allocations: 0 / 339.5 MB, free: 6.152 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007195/0.2739, allocations: 262.1 kB / 339.7 MB, free: 5.895 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003024/0.2742, allocations: 71.89 kB / 339.8 MB, free: 5.824 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003751/0.278, allocations: 2.683 MB / 342.5 MB, free: 3.008 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000305/0.2783, allocations: 35.97 kB / 342.5 MB, free: 2.973 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.219e-05/0.2784, allocations: 19.98 kB / 342.5 MB, free: 2.953 MB / 270.1 MB 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 () * Number of clocked 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.0002347/0.2786, allocations: 161.8 kB / 342.7 MB, free: 2.785 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.71e-05/0.2787, allocations: 31.62 kB / 342.7 MB, free: 2.754 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001198/0.2788, allocations: 51.3 kB / 342.8 MB, free: 2.703 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.585e-06/0.2789, allocations: 4 kB / 342.8 MB, free: 2.699 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.953e-06/0.2789, allocations: 4 kB / 342.8 MB, free: 2.695 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.226e-06/0.2789, allocations: 3.984 kB / 342.8 MB, free: 2.691 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002455/0.2813, allocations: 1.28 MB / 344.1 MB, free: 1.348 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.044e-05/0.2814, allocations: 8 kB / 344.1 MB, free: 1.34 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003314/0.2817, allocations: 63.89 kB / 344.1 MB, free: 1.277 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006611/0.2824, allocations: 240.7 kB / 344.4 MB, free: 1.039 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.245e-05/0.2824, allocations: 19.94 kB / 344.4 MB, free: 1.02 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003707/0.2862, allocations: 2.6 MB / 347 MB, free: 14.29 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.586e-06/0.2862, allocations: 7.875 kB / 347 MB, free: 14.28 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001774/0.288, allocations: 0.9728 MB / 348 MB, free: 13.29 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001959/0.2882, allocations: 152.7 kB / 348.1 MB, free: 13.12 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001091/0.2883, allocations: 15.98 kB / 348.1 MB, free: 13.1 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002889/0.2886, allocations: 40.03 kB / 348.2 MB, free: 13.06 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001564/0.2888, allocations: 76.3 kB / 348.2 MB, free: 12.99 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.325e-05/0.2888, allocations: 12 kB / 348.2 MB, free: 12.98 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.00023/0.289, allocations: 196.6 kB / 348.4 MB, free: 12.79 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.289, allocations: 0 / 348.4 MB, free: 12.79 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0006401/0.2897, allocations: 156 kB / 348.6 MB, free: 12.63 MB / 286.1 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) * Number of clocked states: 0 () * 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.0002389/0.2899, allocations: 139.1 kB / 348.7 MB, free: 12.49 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001417/0.2914, allocations: 0.7189 MB / 349.4 MB, free: 11.75 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.504e-06/0.2914, allocations: 0 / 349.4 MB, free: 11.75 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008019/0.2922, allocations: 479.7 kB / 349.9 MB, free: 11.27 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000461/0.2927, allocations: 52.39 kB / 350 MB, free: 11.22 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001733/0.2944, allocations: 0.9448 MB / 350.9 MB, free: 10.25 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004027/0.2948, allocations: 0.797 MB / 351.7 MB, free: 9.426 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0002425/0.2951, allocations: 58.95 kB / 351.8 MB, free: 9.363 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.92e-05/0.2952, allocations: 31.42 kB / 351.8 MB, free: 9.332 MB / 286.1 MB Notification: Performance of SimCode: time 6.11e-07/0.2952, allocations: 0 / 351.8 MB, free: 9.332 MB / 286.1 MB Notification: Performance of Templates: time 0.0135/0.3087, allocations: 6.946 MB / 358.7 MB, free: 2.379 MB / 286.1 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.makefile (rm -f Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & ./Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1)