Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_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.2_Modelica.Mechanics.Rotational.Examples.SimpleGearShift") translateModel(Modelica.Mechanics.Rotational.Examples.SimpleGearShift,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.001591/0.001592, allocations: 106 kB / 17.06 MB, free: 6.027 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.001655/0.001655, allocations: 195 kB / 18 MB, free: 5.105 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.644/1.644, allocations: 205.1 MB / 223.9 MB, free: 12.25 MB / 190.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.001192/0.001192, allocations: 43.94 kB / 327.9 MB, free: 3.316 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.113/0.1142, allocations: 46.61 MB / 374.5 MB, free: 4.594 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.004313/0.1186, allocations: 2.813 MB / 377.3 MB, free: 1.762 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001923/0.1205, allocations: 0.9396 MB / 378.2 MB, free: 0.8125 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001653/0.1207, allocations: 7.938 kB / 378.2 MB, free: 0.8047 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002161/0.121, allocations: 55.39 kB / 378.3 MB, free: 0.75 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002347/0.1212, allocations: 107.1 kB / 378.4 MB, free: 0.6445 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004773/0.1217, allocations: 219.6 kB / 378.6 MB, free: 440 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.2207/0.3424, allocations: 0.5613 MB / 379.2 MB, free: 9.801 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004041/0.3429, allocations: 113.9 kB / 379.3 MB, free: 9.785 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005109/0.3434, allocations: 252.4 kB / 379.5 MB, free: 9.773 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004015/0.3438, allocations: 267.9 kB / 379.8 MB, free: 9.734 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.806e-05/0.3439, allocations: 49.03 kB / 379.8 MB, free: 9.73 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002681/0.3442, allocations: 93.73 kB / 379.9 MB, free: 9.73 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001737/0.3444, allocations: 116.8 kB / 380 MB, free: 9.719 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000224/0.3446, allocations: 220.8 kB / 380.3 MB, free: 9.66 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008133/0.3454, allocations: 0.5348 MB / 380.8 MB, free: 9.598 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.589e-06/0.3454, allocations: 2.812 kB / 380.8 MB, free: 9.598 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.3455, allocations: 1.375 kB / 380.8 MB, free: 9.598 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.085e-06/0.3455, allocations: 0 / 380.8 MB, free: 9.598 MB / 318.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.001564/0.347, allocations: 0.7293 MB / 381.5 MB, free: 9.125 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.003e-05/0.3471, allocations: 9.344 kB / 381.5 MB, free: 9.125 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000114/0.3472, allocations: 42.92 kB / 381.6 MB, free: 9.105 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005212/0.3477, allocations: 312.8 kB / 381.9 MB, free: 8.875 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.761e-05/0.3478, allocations: 25.94 kB / 381.9 MB, free: 8.875 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001162/0.3479, allocations: 38.36 kB / 381.9 MB, free: 8.871 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00105/0.349, allocations: 438.7 kB / 382.4 MB, free: 8.828 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.436e-05/0.349, allocations: 5.875 kB / 382.4 MB, free: 8.824 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.726e-05/0.3491, allocations: 13.38 kB / 382.4 MB, free: 8.824 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.472e-05/0.3491, allocations: 10.41 kB / 382.4 MB, free: 8.824 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001052/0.3502, allocations: 457.2 kB / 382.8 MB, free: 8.816 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002291/0.3525, allocations: 1.261 MB / 384.1 MB, free: 8.387 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008098/0.3533, allocations: 366.9 kB / 384.5 MB, free: 8.32 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004802/0.3538, allocations: 257.9 kB / 384.7 MB, free: 8.215 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.613e-05/0.3538, allocations: 9.625 kB / 384.7 MB, free: 8.211 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.01e-05/0.3539, allocations: 36.25 kB / 384.8 MB, free: 8.172 MB / 318.1 MB Notification: Performance of pre-optimization done (n=45): time 2.765e-06/0.3539, allocations: 0 / 384.8 MB, free: 8.172 MB / 318.1 MB Notification: Performance of matching and sorting (n=49): time 0.005927/0.3598, allocations: 2.252 MB / 387 MB, free: 6.965 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.013e-05/0.3599, allocations: 62.12 kB / 387.1 MB, free: 6.898 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003659/0.3602, allocations: 256.5 kB / 387.3 MB, free: 6.746 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.089e-05/0.3603, allocations: 45.06 kB / 387.4 MB, free: 6.703 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000117/0.3604, allocations: 164.7 kB / 387.5 MB, free: 6.559 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001271/0.3606, allocations: 162.6 kB / 387.7 MB, free: 6.438 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002007/0.3608, allocations: 103 kB / 387.8 MB, free: 6.383 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.726e-05/0.3608, allocations: 339.2 kB / 388.1 MB, free: 6.059 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005038/0.3614, allocations: 238 kB / 388.3 MB, free: 5.98 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005398/0.3619, allocations: 300.7 kB / 388.6 MB, free: 5.84 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008247/0.3627, allocations: 429.8 kB / 389.1 MB, free: 5.645 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.086e-06/0.3628, allocations: 2.812 kB / 389.1 MB, free: 5.645 MB / 318.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001591/0.3644, allocations: 0.7549 MB / 389.8 MB, free: 5.348 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.966e-05/0.3644, allocations: 5.844 kB / 389.8 MB, free: 5.348 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.855e-06/0.3644, allocations: 2 kB / 389.8 MB, free: 5.348 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001155/0.3656, allocations: 0.5498 MB / 390.4 MB, free: 5.191 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002949/0.3659, allocations: 71.91 kB / 390.4 MB, free: 5.188 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002411/0.3683, allocations: 3.66 MB / 394.1 MB, free: 1.715 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005645/0.3689, allocations: 75.44 kB / 394.2 MB, free: 1.703 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.457e-05/0.3689, allocations: 19.61 kB / 394.2 MB, free: 1.699 MB / 318.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.0003463/0.3693, allocations: 162.2 kB / 394.4 MB, free: 1.559 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.222e-05/0.3694, allocations: 31 kB / 394.4 MB, free: 1.543 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001884/0.3713, allocations: 0.7259 MB / 395.1 MB, free: 1.242 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.087e-05/0.3713, allocations: 5.344 kB / 395.1 MB, free: 1.242 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.539e-06/0.3713, allocations: 1.828 kB / 395.1 MB, free: 1.242 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.007e-05/0.3713, allocations: 2.203 kB / 395.1 MB, free: 1.242 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002671/0.374, allocations: 1.259 MB / 396.4 MB, free: 0.5938 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.26e-06/0.374, allocations: 3.844 kB / 396.4 MB, free: 0.5938 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003043/0.3743, allocations: 59.72 kB / 396.4 MB, free: 0.5859 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001034/0.3754, allocations: 0.533 MB / 397 MB, free: 444 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.172e-05/0.3754, allocations: 22.33 kB / 397 MB, free: 432 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002986/0.3784, allocations: 3.621 MB / 400.6 MB, free: 12.98 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.517e-06/0.3785, allocations: 1.375 kB / 400.6 MB, free: 12.98 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002361/0.3808, allocations: 1.035 MB / 401.7 MB, free: 12.49 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002674/0.3811, allocations: 161 kB / 401.8 MB, free: 12.36 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.238e-05/0.3812, allocations: 14.56 kB / 401.8 MB, free: 12.35 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004738/0.3817, allocations: 74.03 kB / 401.9 MB, free: 12.34 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002558/0.3819, allocations: 91.59 kB / 402 MB, free: 12.32 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.935e-05/0.382, allocations: 20.97 kB / 402 MB, free: 12.31 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002239/0.3822, allocations: 178.8 kB / 402.2 MB, free: 12.21 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.665e-06/0.3822, allocations: 7.938 kB / 402.2 MB, free: 12.2 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006639/0.3829, allocations: 127.1 kB / 402.3 MB, free: 12.18 MB / 334.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.0002702/0.3832, allocations: 142.7 kB / 402.5 MB, free: 12.07 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001764/0.385, allocations: 0.8065 MB / 403.3 MB, free: 11.66 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.385, allocations: 0 / 403.3 MB, free: 11.66 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00102/0.386, allocations: 0.5354 MB / 403.8 MB, free: 11.34 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005509/0.3866, allocations: 67.53 kB / 403.9 MB, free: 11.31 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002142/0.3887, allocations: 0.9645 MB / 404.8 MB, free: 10.74 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003845/0.3891, allocations: 0.8016 MB / 405.6 MB, free: 10.03 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001388/0.3893, allocations: 33.81 kB / 405.7 MB, free: 10.02 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.871e-05/0.3894, allocations: 32.75 kB / 405.7 MB, free: 10.01 MB / 334.1 MB Notification: Performance of SimCode: time 5.91e-07/0.3894, allocations: 0 / 405.7 MB, free: 10.01 MB / 334.1 MB Notification: Performance of Templates: time 0.0187/0.4081, allocations: 10.44 MB / 416.1 MB, free: 3.953 MB / 334.1 MB make -j1 -f Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.makefile (rm -f Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; mkfifo Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe >> ../files/Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.sim & ./Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.SimpleGearShift -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe 2>&1)