Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.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.SimpleGearShift,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.SimpleGearShift") translateModel(Modelica.Mechanics.Rotational.Examples.SimpleGearShift,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.SimpleGearShift") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001742/0.001742, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00197/0.00197, allocations: 198 kB / 16.54 MB, free: 6.672 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.517/1.517, allocations: 205.1 MB / 222.4 MB, free: 4.629 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.001309/0.001309, allocations: 55.92 kB / 278.7 MB, free: 12.37 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2144/0.2157, allocations: 46.63 MB / 325.3 MB, free: 1.848 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.003447/0.2192, allocations: 2.806 MB / 328.1 MB, free: 15.63 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0017/0.221, allocations: 0.9376 MB / 329 MB, free: 14.87 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001684/0.2211, allocations: 15.81 kB / 329.1 MB, free: 14.86 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000221/0.2214, allocations: 57.09 kB / 329.1 MB, free: 14.81 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002558/0.2217, allocations: 102 kB / 329.2 MB, free: 14.72 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004829/0.2221, allocations: 219.7 kB / 329.4 MB, free: 14.54 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.000591/0.2228, allocations: 0.5671 MB / 330 MB, free: 14.21 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002303/0.223, allocations: 107.3 kB / 330.1 MB, free: 14.14 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002971/0.2233, allocations: 244 kB / 330.3 MB, free: 14 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003426/0.2236, allocations: 279.1 kB / 330.6 MB, free: 13.82 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 8.363e-05/0.2237, allocations: 45.03 kB / 330.7 MB, free: 13.82 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001978/0.2239, allocations: 91.02 kB / 330.8 MB, free: 13.79 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001451/0.2241, allocations: 116.1 kB / 330.9 MB, free: 13.7 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002285/0.2243, allocations: 216.7 kB / 331.1 MB, free: 13.54 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006083/0.2249, allocations: 0.5251 MB / 331.6 MB, free: 13.15 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.037e-06/0.225, allocations: 0 / 331.6 MB, free: 13.15 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.225, allocations: 0 / 331.6 MB, free: 13.15 MB / 270.1 MB Notification: Performance of Transformations before backend: time 7.945e-06/0.225, allocations: 0 / 331.6 MB, free: 13.15 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: 84 * Number of variables: 84 Notification: Performance of Generate backend data structure: time 0.00137/0.2264, allocations: 0.7327 MB / 332.3 MB, free: 12.54 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.818e-05/0.2264, allocations: 8.375 kB / 332.3 MB, free: 12.54 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001101/0.2265, allocations: 45.59 kB / 332.4 MB, free: 12.51 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000433/0.227, allocations: 305.6 kB / 332.7 MB, free: 12.21 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.085e-05/0.227, allocations: 27.34 kB / 332.7 MB, free: 12.2 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.52e-05/0.2271, allocations: 38.3 kB / 332.7 MB, free: 12.18 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008124/0.2279, allocations: 443.6 kB / 333.2 MB, free: 11.91 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.415e-05/0.228, allocations: 5 kB / 333.2 MB, free: 11.91 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.906e-05/0.228, allocations: 15.31 kB / 333.2 MB, free: 11.9 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.02e-05/0.228, allocations: 9.156 kB / 333.2 MB, free: 11.89 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009163/0.229, allocations: 463.7 kB / 333.7 MB, free: 11.44 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002368/0.2313, allocations: 1.257 MB / 334.9 MB, free: 10.1 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008565/0.2322, allocations: 375.7 kB / 335.3 MB, free: 9.727 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004955/0.2327, allocations: 249.2 kB / 335.5 MB, free: 9.48 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.392e-05/0.2328, allocations: 4.375 kB / 335.5 MB, free: 9.477 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.061e-05/0.2328, allocations: 38.94 kB / 335.6 MB, free: 9.43 MB / 270.1 MB Notification: Performance of pre-optimization done (n=45): time 1.583e-06/0.2328, allocations: 0 / 335.6 MB, free: 9.43 MB / 270.1 MB Notification: Performance of matching and sorting (n=49): time 0.005418/0.2382, allocations: 2.264 MB / 337.8 MB, free: 7.031 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.072e-05/0.2383, allocations: 55.84 kB / 337.9 MB, free: 6.965 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003622/0.2387, allocations: 246.6 kB / 338.1 MB, free: 6.715 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 6.576e-05/0.2388, allocations: 45.69 kB / 338.2 MB, free: 6.664 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002064/0.239, allocations: 164.6 kB / 338.3 MB, free: 6.5 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001769/0.2392, allocations: 169.7 kB / 338.5 MB, free: 6.332 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000221/0.2394, allocations: 102.1 kB / 338.6 MB, free: 6.223 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001836/0.2396, allocations: 346.8 kB / 338.9 MB, free: 5.875 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004789/0.2401, allocations: 229 kB / 339.2 MB, free: 5.652 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004991/0.2406, allocations: 311.1 kB / 339.5 MB, free: 5.332 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000754/0.2414, allocations: 419.7 kB / 339.9 MB, free: 4.906 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.2414, allocations: 0 / 339.9 MB, free: 4.906 MB / 270.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001576/0.243, allocations: 0.7625 MB / 340.6 MB, free: 4.125 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.238e-05/0.243, allocations: 4 kB / 340.6 MB, free: 4.121 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.085e-06/0.243, allocations: 0 / 340.6 MB, free: 4.121 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001132/0.2442, allocations: 0.5453 MB / 341.2 MB, free: 3.566 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000304/0.2445, allocations: 83.89 kB / 341.3 MB, free: 3.484 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003199/0.2477, allocations: 3.644 MB / 344.9 MB, free: 15.54 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005272/0.2482, allocations: 80.02 kB / 345 MB, free: 15.46 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.325e-05/0.2483, allocations: 19.98 kB / 345 MB, free: 15.44 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 16 (brake.mode,$PRE.brake.mode,brake.locked,brake.startBackward,$PRE.brake.startBackward,brake.startForward,$PRE.brake.startForward,brake.free,clutch.mode,$PRE.clutch.mode,clutch.locked,clutch.startBackward,$PRE.clutch.startBackward,clutch.startForward,$PRE.clutch.startForward,clutch.free) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,16)} Notification: Performance of prepare postOptimizeDAE: time 0.0003052/0.2486, allocations: 158.3 kB / 345.2 MB, free: 15.27 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.375e-05/0.2487, allocations: 39.61 kB / 345.2 MB, free: 15.23 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001523/0.2502, allocations: 0.7286 MB / 345.9 MB, free: 14.49 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.22e-06/0.2502, allocations: 4 kB / 345.9 MB, free: 14.49 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.346e-06/0.2503, allocations: 0 / 345.9 MB, free: 14.49 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.167e-06/0.2503, allocations: 7.984 kB / 345.9 MB, free: 14.48 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002286/0.2526, allocations: 1.263 MB / 347.2 MB, free: 13.15 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.221e-06/0.2526, allocations: 3.984 kB / 347.2 MB, free: 13.15 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002754/0.2529, allocations: 55.91 kB / 347.3 MB, free: 13.09 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001021/0.2539, allocations: 0.5294 MB / 347.8 MB, free: 12.55 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.281e-05/0.254, allocations: 19.97 kB / 347.8 MB, free: 12.54 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002974/0.2569, allocations: 3.618 MB / 351.4 MB, free: 8.613 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.257, allocations: 4.156 kB / 351.4 MB, free: 8.609 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00198/0.2589, allocations: 1.028 MB / 352.5 MB, free: 7.555 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002134/0.2592, allocations: 160.7 kB / 352.6 MB, free: 7.379 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.798e-05/0.2593, allocations: 12 kB / 352.6 MB, free: 7.367 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004922/0.2598, allocations: 75.84 kB / 352.7 MB, free: 7.293 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002101/0.26, allocations: 92.22 kB / 352.8 MB, free: 7.203 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.117e-05/0.26, allocations: 19.98 kB / 352.8 MB, free: 7.184 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002022/0.2602, allocations: 186 kB / 353 MB, free: 7 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2602, allocations: 3.938 kB / 353 MB, free: 6.996 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0005992/0.2609, allocations: 124 kB / 353.1 MB, free: 6.875 MB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (load.w,quadraticSpeedDependentTorque.phi,clutch.phi_rel,clutch.w_rel) * Number of discrete variables: 10 (clutch.free,clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode) * Number of discrete states: 6 (clutch.mode,clutch.startBackward,brake.mode,brake.startBackward,brake.startForward,clutch.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,16)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002912/0.2611, allocations: 135.2 kB / 353.3 MB, free: 6.734 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001742/0.2629, allocations: 0.8253 MB / 354.1 MB, free: 5.887 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.2629, allocations: 0 / 354.1 MB, free: 5.887 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009322/0.2639, allocations: 0.5411 MB / 354.6 MB, free: 5.316 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005276/0.2644, allocations: 60.47 kB / 354.7 MB, free: 5.258 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00195/0.2664, allocations: 0.9852 MB / 355.7 MB, free: 4.25 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004063/0.2668, allocations: 0.7996 MB / 356.5 MB, free: 3.426 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.000149/0.2669, allocations: 31.28 kB / 356.5 MB, free: 3.395 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.022e-05/0.267, allocations: 31.42 kB / 356.5 MB, free: 3.363 MB / 286.1 MB Notification: Performance of SimCode: time 5.31e-07/0.267, allocations: 0 / 356.5 MB, free: 3.363 MB / 286.1 MB Notification: Performance of Templates: time 0.01518/0.2822, allocations: 9.96 MB / 366.5 MB, free: 9.391 MB / 302.1 MB make -j1 -f Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.makefile (rm -f Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; mkfifo Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe >> ../files/Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.sim & ./Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.SimpleGearShift -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe 2>&1)