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.001694/0.001694, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001945/0.001946, allocations: 192.4 kB / 16.25 MB, free: 6.629 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.666/1.666, allocations: 205.1 MB / 222.1 MB, free: 4.715 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.001098/0.001098, allocations: 47.94 kB / 278.2 MB, free: 12.68 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3194/0.3205, allocations: 46.63 MB / 324.8 MB, free: 1.934 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.004226/0.3248, allocations: 2.848 MB / 327.7 MB, free: 15.7 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002456/0.3273, allocations: 0.9283 MB / 328.6 MB, free: 14.94 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002742/0.3276, allocations: 4.656 kB / 328.6 MB, free: 14.94 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002762/0.3279, allocations: 48.53 kB / 328.7 MB, free: 14.9 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002861/0.3282, allocations: 94.17 kB / 328.8 MB, free: 14.82 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005572/0.3288, allocations: 188.7 kB / 328.9 MB, free: 14.67 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006358/0.3294, allocations: 0.5631 MB / 329.5 MB, free: 14.34 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002542/0.3297, allocations: 108.2 kB / 329.6 MB, free: 14.27 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002947/0.33, allocations: 255 kB / 329.9 MB, free: 14.12 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003313/0.3303, allocations: 272.4 kB / 330.1 MB, free: 13.95 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 8.014e-05/0.3304, allocations: 44.03 kB / 330.2 MB, free: 13.95 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001892/0.3306, allocations: 95.2 kB / 330.3 MB, free: 13.92 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001311/0.3308, allocations: 116.7 kB / 330.4 MB, free: 13.82 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002219/0.331, allocations: 211.5 kB / 330.6 MB, free: 13.67 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006868/0.3317, allocations: 0.5323 MB / 331.1 MB, free: 13.27 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.718e-06/0.3317, allocations: 1.062 kB / 331.1 MB, free: 13.27 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.3317, allocations: 3.938 kB / 331.1 MB, free: 13.27 MB / 270.1 MB Notification: Performance of Transformations before backend: time 7.755e-06/0.3317, allocations: 4 kB / 331.1 MB, free: 13.27 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.001532/0.3333, allocations: 0.7282 MB / 331.9 MB, free: 12.65 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.297e-05/0.3333, allocations: 9.906 kB / 331.9 MB, free: 12.65 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000111/0.3334, allocations: 44.72 kB / 331.9 MB, free: 12.63 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003541/0.3338, allocations: 308.9 kB / 332.2 MB, free: 12.32 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.28e-05/0.3338, allocations: 28.12 kB / 332.2 MB, free: 12.31 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.018e-05/0.3339, allocations: 34.62 kB / 332.3 MB, free: 12.3 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008544/0.3348, allocations: 439.6 kB / 332.7 MB, free: 12.04 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.339e-05/0.3348, allocations: 4.969 kB / 332.7 MB, free: 12.03 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.852e-05/0.3349, allocations: 19.06 kB / 332.7 MB, free: 12.02 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.191e-05/0.3349, allocations: 8.188 kB / 332.7 MB, free: 12.02 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009605/0.3359, allocations: 453.8 kB / 333.2 MB, free: 11.64 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002471/0.3384, allocations: 1.269 MB / 334.4 MB, free: 10.29 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009636/0.3393, allocations: 372.4 kB / 334.8 MB, free: 9.922 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000507/0.3399, allocations: 249.2 kB / 335.1 MB, free: 9.676 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.619e-05/0.3399, allocations: 8.359 kB / 335.1 MB, free: 9.668 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.837e-05/0.34, allocations: 46.94 kB / 335.1 MB, free: 9.613 MB / 270.1 MB Notification: Performance of pre-optimization done (n=45): time 2.144e-06/0.34, allocations: 0 / 335.1 MB, free: 9.613 MB / 270.1 MB Notification: Performance of matching and sorting (n=49): time 0.005222/0.3452, allocations: 2.256 MB / 337.4 MB, free: 7.215 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.742e-05/0.3453, allocations: 59.84 kB / 337.4 MB, free: 7.145 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000298/0.3456, allocations: 242.6 kB / 337.7 MB, free: 6.902 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 8.279e-05/0.3457, allocations: 49.69 kB / 337.7 MB, free: 6.848 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001362/0.3458, allocations: 172.6 kB / 337.9 MB, free: 6.676 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001455/0.346, allocations: 165.7 kB / 338 MB, free: 6.512 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001899/0.3462, allocations: 98.14 kB / 338.1 MB, free: 6.406 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.000151/0.3463, allocations: 346.7 kB / 338.5 MB, free: 6.059 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000461/0.3468, allocations: 236.9 kB / 338.7 MB, free: 5.828 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005118/0.3473, allocations: 303.2 kB / 339 MB, free: 5.512 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000754/0.3481, allocations: 419.7 kB / 339.4 MB, free: 5.086 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.883e-06/0.3481, allocations: 0 / 339.4 MB, free: 5.086 MB / 270.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.0015/0.3496, allocations: 0.7548 MB / 340.2 MB, free: 4.312 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.056e-05/0.3497, allocations: 8 kB / 340.2 MB, free: 4.305 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.283e-06/0.3497, allocations: 0 / 340.2 MB, free: 4.305 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001161/0.3508, allocations: 0.5478 MB / 340.7 MB, free: 3.75 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002627/0.3511, allocations: 71.89 kB / 340.8 MB, free: 3.68 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003097/0.3542, allocations: 3.661 MB / 344.4 MB, free: 15.71 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005349/0.3548, allocations: 79.89 kB / 344.5 MB, free: 15.63 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.687e-05/0.3548, allocations: 16 kB / 344.5 MB, free: 15.62 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.0002945/0.3551, allocations: 162.5 kB / 344.7 MB, free: 15.45 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001137/0.3552, allocations: 35.56 kB / 344.7 MB, free: 15.41 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001671/0.3569, allocations: 0.7325 MB / 345.5 MB, free: 14.67 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.926e-06/0.3569, allocations: 8 kB / 345.5 MB, free: 14.66 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.406e-06/0.357, allocations: 0 / 345.5 MB, free: 14.66 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.047e-06/0.357, allocations: 3.984 kB / 345.5 MB, free: 14.66 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002161/0.3591, allocations: 1.251 MB / 346.7 MB, free: 13.34 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.517e-06/0.3592, allocations: 0 / 346.7 MB, free: 13.34 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000265/0.3594, allocations: 59.91 kB / 346.8 MB, free: 13.28 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009499/0.3604, allocations: 0.5293 MB / 347.3 MB, free: 12.74 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.654e-05/0.3605, allocations: 23.97 kB / 347.3 MB, free: 12.72 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002956/0.3634, allocations: 3.618 MB / 351 MB, free: 8.797 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.3634, allocations: 4.031 kB / 351 MB, free: 8.793 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001846/0.3653, allocations: 1.032 MB / 352 MB, free: 7.734 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002133/0.3655, allocations: 156.7 kB / 352.1 MB, free: 7.562 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.392e-05/0.3656, allocations: 12 kB / 352.2 MB, free: 7.551 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004354/0.366, allocations: 71.84 kB / 352.2 MB, free: 7.48 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002118/0.3663, allocations: 104.2 kB / 352.3 MB, free: 7.379 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.016e-05/0.3663, allocations: 15.98 kB / 352.3 MB, free: 7.363 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001833/0.3665, allocations: 186 kB / 352.5 MB, free: 7.18 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3665, allocations: 0 / 352.5 MB, free: 7.18 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0005266/0.367, allocations: 124 kB / 352.7 MB, free: 7.059 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.000263/0.3673, allocations: 139.2 kB / 352.8 MB, free: 6.914 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001662/0.369, allocations: 0.8213 MB / 353.6 MB, free: 6.07 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.369, allocations: 0 / 353.6 MB, free: 6.07 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009682/0.37, allocations: 0.5451 MB / 354.2 MB, free: 5.496 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006281/0.3706, allocations: 67.06 kB / 354.2 MB, free: 5.434 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002104/0.3727, allocations: 1.122 MB / 355.3 MB, free: 4.289 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000395/0.3731, allocations: 0.7957 MB / 356.1 MB, free: 3.465 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001465/0.3733, allocations: 31.3 kB / 356.2 MB, free: 3.434 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.51e-05/0.3734, allocations: 35.42 kB / 356.2 MB, free: 3.398 MB / 286.1 MB Notification: Performance of SimCode: time 4.81e-07/0.3734, allocations: 0 / 356.2 MB, free: 3.398 MB / 286.1 MB Notification: Performance of Templates: time 0.0154/0.3888, allocations: 9.883 MB / 366.1 MB, free: 9.5 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)