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.001431/0.001431, allocations: 107.3 kB / 15.33 MB, free: 0.5078 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.002103/0.002103, allocations: 190.8 kB / 16.25 MB, free: 6.145 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.65/1.65, allocations: 205.1 MB / 222.1 MB, free: 4.641 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.001209/0.001209, allocations: 47.94 kB / 278.2 MB, free: 12.66 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3413/0.3425, allocations: 46.63 MB / 324.8 MB, free: 1.91 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.004475/0.347, allocations: 2.848 MB / 327.7 MB, free: 15.67 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002501/0.3496, allocations: 0.9327 MB / 328.6 MB, free: 14.91 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002833/0.3499, allocations: 4.781 kB / 328.6 MB, free: 14.91 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003079/0.3502, allocations: 44.52 kB / 328.7 MB, free: 14.88 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002831/0.3505, allocations: 90.7 kB / 328.8 MB, free: 14.8 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005337/0.3511, allocations: 192.9 kB / 328.9 MB, free: 14.65 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006172/0.3517, allocations: 0.5625 MB / 329.5 MB, free: 14.32 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002678/0.352, allocations: 112.4 kB / 329.6 MB, free: 14.25 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002897/0.3523, allocations: 254.5 kB / 329.9 MB, free: 14.1 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003599/0.3526, allocations: 268 kB / 330.1 MB, free: 13.92 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 9.012e-05/0.3527, allocations: 44.94 kB / 330.2 MB, free: 13.92 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002121/0.353, allocations: 90.52 kB / 330.3 MB, free: 13.9 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001432/0.3531, allocations: 117.4 kB / 330.4 MB, free: 13.8 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000256/0.3534, allocations: 219 kB / 330.6 MB, free: 13.64 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00071/0.3541, allocations: 0.5291 MB / 331.1 MB, free: 13.25 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.745e-06/0.3541, allocations: 0 / 331.1 MB, free: 13.25 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.374e-06/0.3541, allocations: 5.062 kB / 331.1 MB, free: 13.25 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.131e-05/0.3541, allocations: 0 / 331.1 MB, free: 13.25 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.001519/0.3557, allocations: 0.7365 MB / 331.9 MB, free: 12.62 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.022e-05/0.3557, allocations: 8.719 kB / 331.9 MB, free: 12.62 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001066/0.3558, allocations: 44.69 kB / 331.9 MB, free: 12.6 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003839/0.3562, allocations: 305.7 kB / 332.2 MB, free: 12.3 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.334e-05/0.3563, allocations: 24.62 kB / 332.2 MB, free: 12.29 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.051e-05/0.3564, allocations: 33.31 kB / 332.3 MB, free: 12.28 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008788/0.3573, allocations: 447.6 kB / 332.7 MB, free: 12.01 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.634e-05/0.3573, allocations: 8.969 kB / 332.7 MB, free: 12 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.498e-05/0.3573, allocations: 19.47 kB / 332.7 MB, free: 11.98 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.541e-05/0.3574, allocations: 7.938 kB / 332.7 MB, free: 11.98 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009134/0.3583, allocations: 458.1 kB / 333.2 MB, free: 11.63 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002334/0.3606, allocations: 1.261 MB / 334.4 MB, free: 10.29 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000824/0.3615, allocations: 364.4 kB / 334.8 MB, free: 9.93 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004579/0.3619, allocations: 249.2 kB / 335 MB, free: 9.684 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.552e-05/0.362, allocations: 16.3 kB / 335.1 MB, free: 9.668 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.641e-05/0.362, allocations: 38.94 kB / 335.1 MB, free: 9.621 MB / 270.1 MB Notification: Performance of pre-optimization done (n=45): time 1.974e-06/0.362, allocations: 0 / 335.1 MB, free: 9.621 MB / 270.1 MB Notification: Performance of matching and sorting (n=49): time 0.005188/0.3672, allocations: 2.256 MB / 337.4 MB, free: 7.23 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.515e-05/0.3673, allocations: 59.84 kB / 337.4 MB, free: 7.16 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002561/0.3676, allocations: 246.6 kB / 337.7 MB, free: 6.914 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 5.363e-05/0.3676, allocations: 41.7 kB / 337.7 MB, free: 6.867 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000113/0.3678, allocations: 176.6 kB / 337.9 MB, free: 6.691 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001466/0.3679, allocations: 169.7 kB / 338 MB, free: 6.523 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001865/0.3681, allocations: 102.1 kB / 338.1 MB, free: 6.414 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001229/0.3682, allocations: 334.8 kB / 338.5 MB, free: 6.078 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004511/0.3687, allocations: 237 kB / 338.7 MB, free: 5.848 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000507/0.3692, allocations: 303.1 kB / 339 MB, free: 5.531 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007422/0.37, allocations: 427.7 kB / 339.4 MB, free: 5.098 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/0.37, allocations: 0 / 339.4 MB, free: 5.098 MB / 270.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001543/0.3715, allocations: 0.7548 MB / 340.2 MB, free: 4.324 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.204e-05/0.3716, allocations: 8 kB / 340.2 MB, free: 4.316 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.658e-06/0.3716, allocations: 4 kB / 340.2 MB, free: 4.312 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00118/0.3728, allocations: 0.552 MB / 340.7 MB, free: 3.754 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000273/0.373, allocations: 63.91 kB / 340.8 MB, free: 3.691 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002961/0.376, allocations: 3.661 MB / 344.4 MB, free: 15.72 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004854/0.3765, allocations: 71.91 kB / 344.5 MB, free: 15.65 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.677e-05/0.3766, allocations: 23.92 kB / 344.5 MB, free: 15.63 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.0002438/0.3768, allocations: 166.4 kB / 344.7 MB, free: 15.46 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.074e-05/0.3769, allocations: 31.62 kB / 344.7 MB, free: 15.43 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001532/0.3784, allocations: 0.7247 MB / 345.5 MB, free: 14.69 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.346e-06/0.3785, allocations: 8 kB / 345.5 MB, free: 14.68 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.188e-06/0.3785, allocations: 7.922 kB / 345.5 MB, free: 14.67 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.081e-06/0.3785, allocations: 0 / 345.5 MB, free: 14.67 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002153/0.3806, allocations: 1.251 MB / 346.7 MB, free: 13.36 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.37e-06/0.3807, allocations: 4 kB / 346.7 MB, free: 13.35 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002706/0.3809, allocations: 59.91 kB / 346.8 MB, free: 13.29 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009536/0.3819, allocations: 0.5294 MB / 347.3 MB, free: 12.75 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.663e-05/0.382, allocations: 15.98 kB / 347.3 MB, free: 12.74 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002816/0.3848, allocations: 3.63 MB / 351 MB, free: 8.805 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.447e-06/0.3848, allocations: 4.031 kB / 351 MB, free: 8.801 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001847/0.3867, allocations: 1.028 MB / 352 MB, free: 7.746 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001945/0.3869, allocations: 160.7 kB / 352.2 MB, free: 7.57 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.545e-05/0.3869, allocations: 16 kB / 352.2 MB, free: 7.555 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004582/0.3874, allocations: 75.84 kB / 352.2 MB, free: 7.48 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002031/0.3876, allocations: 92.23 kB / 352.3 MB, free: 7.391 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.252e-05/0.3877, allocations: 19.97 kB / 352.4 MB, free: 7.371 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001685/0.3878, allocations: 182 kB / 352.5 MB, free: 7.191 MB / 286.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3879, allocations: 0 / 352.5 MB, free: 7.191 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0005317/0.3884, allocations: 128 kB / 352.7 MB, free: 7.066 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.0002496/0.3887, allocations: 131.2 kB / 352.8 MB, free: 6.93 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001625/0.3903, allocations: 0.8174 MB / 353.6 MB, free: 6.09 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.3903, allocations: 0 / 353.6 MB, free: 6.09 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008761/0.3912, allocations: 0.5451 MB / 354.1 MB, free: 5.516 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005229/0.3917, allocations: 64.41 kB / 354.2 MB, free: 5.453 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001911/0.3937, allocations: 1.122 MB / 355.3 MB, free: 4.309 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00032/0.394, allocations: 0.7957 MB / 356.1 MB, free: 3.484 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001429/0.3941, allocations: 35.28 kB / 356.2 MB, free: 3.449 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.019e-05/0.3942, allocations: 35.42 kB / 356.2 MB, free: 3.414 MB / 286.1 MB Notification: Performance of SimCode: time 4.11e-07/0.3942, allocations: 0 / 356.2 MB, free: 3.414 MB / 286.1 MB Notification: Performance of Templates: time 0.0157/0.4099, allocations: 9.893 MB / 366.1 MB, free: 9.508 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)