Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.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.1_Modelica.Mechanics.Rotational.Examples.SimpleGearShift") translateModel(Modelica.Mechanics.Rotational.Examples.SimpleGearShift,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="Modelica_3.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.001322/0.001321, allocations: 108 kB / 15.61 MB, free: 152 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.001895/0.001895, allocations: 196 kB / 16.53 MB, free: 6.664 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.668/1.668, allocations: 205.1 MB / 222.4 MB, free: 4.586 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.001365/0.001365, allocations: 55.91 kB / 278.7 MB, free: 12.35 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3121/0.3135, allocations: 46.63 MB / 325.3 MB, free: 1.844 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.004177/0.3177, allocations: 2.805 MB / 328.1 MB, free: 15.63 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002153/0.3199, allocations: 0.9404 MB / 329.1 MB, free: 14.86 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002058/0.3201, allocations: 9.25 kB / 329.1 MB, free: 14.86 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002481/0.3204, allocations: 59.44 kB / 329.1 MB, free: 14.8 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002616/0.3207, allocations: 103.1 kB / 329.2 MB, free: 14.72 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005329/0.3212, allocations: 218.8 kB / 329.4 MB, free: 14.54 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005977/0.3218, allocations: 0.5676 MB / 330 MB, free: 14.21 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000247/0.3221, allocations: 103.4 kB / 330.1 MB, free: 14.14 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003125/0.3224, allocations: 251.1 kB / 330.3 MB, free: 14 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003627/0.3228, allocations: 273.1 kB / 330.6 MB, free: 13.82 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 8.461e-05/0.3229, allocations: 43.56 kB / 330.7 MB, free: 13.82 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001943/0.3231, allocations: 91.02 kB / 330.7 MB, free: 13.79 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001418/0.3232, allocations: 116.6 kB / 330.9 MB, free: 13.7 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002344/0.3235, allocations: 220 kB / 331.1 MB, free: 13.54 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005971/0.3241, allocations: 0.5252 MB / 331.6 MB, free: 13.15 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.89e-06/0.3241, allocations: 0 / 331.6 MB, free: 13.15 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.774e-06/0.3241, allocations: 0 / 331.6 MB, free: 13.15 MB / 270.1 MB Notification: Performance of Transformations before backend: time 7.283e-06/0.3241, allocations: 1.125 kB / 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.001448/0.3256, allocations: 0.731 MB / 332.3 MB, free: 12.53 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.116e-05/0.3256, allocations: 13.56 kB / 332.3 MB, free: 12.53 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001326/0.3258, allocations: 45.5 kB / 332.4 MB, free: 12.5 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004723/0.3262, allocations: 305.7 kB / 332.7 MB, free: 12.2 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.832e-05/0.3263, allocations: 26.91 kB / 332.7 MB, free: 12.19 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.443e-05/0.3264, allocations: 34.78 kB / 332.7 MB, free: 12.18 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008781/0.3273, allocations: 443.1 kB / 333.2 MB, free: 11.91 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.606e-05/0.3273, allocations: 6.344 kB / 333.2 MB, free: 11.91 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.003e-05/0.3274, allocations: 14.31 kB / 333.2 MB, free: 11.89 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.317e-05/0.3274, allocations: 7.938 kB / 333.2 MB, free: 11.89 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009709/0.3284, allocations: 460.1 kB / 333.7 MB, free: 11.46 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002319/0.3307, allocations: 1.269 MB / 334.9 MB, free: 10.11 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008503/0.3316, allocations: 363.7 kB / 335.3 MB, free: 9.75 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004738/0.3321, allocations: 253.2 kB / 335.5 MB, free: 9.5 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.185e-05/0.3321, allocations: 8.375 kB / 335.5 MB, free: 9.492 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.308e-05/0.3321, allocations: 34.94 kB / 335.6 MB, free: 9.449 MB / 270.1 MB Notification: Performance of pre-optimization done (n=45): time 2.073e-06/0.3321, allocations: 0 / 335.6 MB, free: 9.449 MB / 270.1 MB Notification: Performance of matching and sorting (n=49): time 0.005355/0.3375, allocations: 2.256 MB / 337.8 MB, free: 7.059 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.727e-05/0.3376, allocations: 59.84 kB / 337.9 MB, free: 6.988 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002604/0.3378, allocations: 246.6 kB / 338.1 MB, free: 6.738 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 5.693e-05/0.3379, allocations: 45.69 kB / 338.2 MB, free: 6.688 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001207/0.338, allocations: 176.5 kB / 338.3 MB, free: 6.512 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001316/0.3382, allocations: 169.7 kB / 338.5 MB, free: 6.344 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001964/0.3384, allocations: 98.14 kB / 338.6 MB, free: 6.238 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.000148/0.3385, allocations: 346.8 kB / 338.9 MB, free: 5.891 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000479/0.339, allocations: 232.9 kB / 339.2 MB, free: 5.664 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005584/0.3396, allocations: 307.1 kB / 339.5 MB, free: 5.348 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00081/0.3404, allocations: 423.7 kB / 339.9 MB, free: 4.918 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.3404, allocations: 0 / 339.9 MB, free: 4.918 MB / 270.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001622/0.3421, allocations: 0.7547 MB / 340.6 MB, free: 4.145 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.893e-05/0.3421, allocations: 8.125 kB / 340.6 MB, free: 4.137 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.027e-06/0.3421, allocations: 4 kB / 340.7 MB, free: 4.133 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001125/0.3432, allocations: 0.5418 MB / 341.2 MB, free: 3.582 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003172/0.3436, allocations: 75.89 kB / 341.3 MB, free: 3.508 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003141/0.3467, allocations: 3.644 MB / 344.9 MB, free: 15.56 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005793/0.3473, allocations: 80.08 kB / 345 MB, free: 15.48 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.153e-05/0.3474, allocations: 20 kB / 345 MB, free: 15.46 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.0003062/0.3477, allocations: 170.3 kB / 345.2 MB, free: 15.29 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001047/0.3478, allocations: 31.62 kB / 345.2 MB, free: 15.25 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00156/0.3494, allocations: 0.7208 MB / 345.9 MB, free: 14.52 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.09e-06/0.3494, allocations: 11.94 kB / 345.9 MB, free: 14.51 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.076e-06/0.3494, allocations: 0 / 345.9 MB, free: 14.51 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.596e-06/0.3494, allocations: 7.984 kB / 345.9 MB, free: 14.5 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002165/0.3516, allocations: 1.259 MB / 347.2 MB, free: 13.18 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.418e-06/0.3516, allocations: 0 / 347.2 MB, free: 13.18 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002758/0.3519, allocations: 55.91 kB / 347.3 MB, free: 13.12 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009417/0.3528, allocations: 0.5333 MB / 347.8 MB, free: 12.58 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.4e-05/0.3529, allocations: 19.97 kB / 347.8 MB, free: 12.56 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003006/0.3559, allocations: 3.618 MB / 351.4 MB, free: 8.637 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.3559, allocations: 0 / 351.4 MB, free: 8.637 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00195/0.3579, allocations: 1.04 MB / 352.5 MB, free: 7.57 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002175/0.3581, allocations: 152.8 kB / 352.6 MB, free: 7.402 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.988e-05/0.3582, allocations: 16 kB / 352.6 MB, free: 7.387 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005004/0.3587, allocations: 75.83 kB / 352.7 MB, free: 7.312 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000221/0.3589, allocations: 96.22 kB / 352.8 MB, free: 7.219 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.972e-05/0.359, allocations: 23.92 kB / 352.8 MB, free: 7.195 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002/0.3592, allocations: 182 kB / 353 MB, free: 7.016 MB / 286.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3592, allocations: 0 / 353 MB, free: 7.016 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0005843/0.3598, allocations: 120 kB / 353.1 MB, free: 6.898 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.0002592/0.3601, allocations: 135.2 kB / 353.3 MB, free: 6.758 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001692/0.3618, allocations: 0.8368 MB / 354.1 MB, free: 5.898 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.3618, allocations: 0 / 354.1 MB, free: 5.898 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009226/0.3627, allocations: 0.5373 MB / 354.6 MB, free: 5.332 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005109/0.3632, allocations: 56.53 kB / 354.7 MB, free: 5.277 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002026/0.3653, allocations: 0.9811 MB / 355.7 MB, free: 4.273 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000408/0.3657, allocations: 0.7996 MB / 356.5 MB, free: 3.449 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001357/0.3658, allocations: 27.3 kB / 356.5 MB, free: 3.422 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.944e-05/0.3659, allocations: 31.42 kB / 356.5 MB, free: 3.391 MB / 286.1 MB Notification: Performance of SimCode: time 7.62e-07/0.3659, allocations: 8 kB / 356.5 MB, free: 3.383 MB / 286.1 MB Notification: Performance of Templates: time 0.01575/0.3817, allocations: 9.964 MB / 366.5 MB, free: 9.406 MB / 302.1 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.makefile (rm -f Modelica_3.1_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; mkfifo Modelica_3.1_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe >> ../files/Modelica_3.1_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.sim & ./Modelica_3.1_Modelica.Mechanics.Rotational.Examples.SimpleGearShift -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe 2>&1)