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/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+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/Complex 3.2.2+maint.om/package.mo): time 0.001744/0.001744, allocations: 182.3 kB / 13.64 MB, free: 1.676 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.641/1.641, allocations: 194.2 MB / 208.4 MB, free: 6.707 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.00171/0.00171, allocations: 124.7 kB / 253.5 MB, free: 9.57 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.449e-05/3.45e-05, allocations: 4 kB / 304.9 MB, free: 29.77 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09877/0.09882, allocations: 44.51 MB / 349.4 MB, free: 1.246 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3517/0.4506, allocations: 75.94 MB / 425.4 MB, free: 10.79 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002179/0.4508, allocations: 70.48 kB / 425.4 MB, free: 10.78 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01714/0.468, allocations: 6.565 MB / 432 MB, free: 8.227 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.683e-06/0.468, allocations: 0 / 432 MB, free: 8.227 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.793e-05/0.468, allocations: 11.62 kB / 432 MB, free: 8.223 MB / 298.7 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.00107/0.4691, allocations: 0.6546 MB / 432.7 MB, free: 7.715 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.109e-05/0.4692, allocations: 7.688 kB / 432.7 MB, free: 7.715 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.061e-05/0.4693, allocations: 39.03 kB / 432.7 MB, free: 7.695 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003215/0.4696, allocations: 294.6 kB / 433 MB, free: 7.438 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.883e-05/0.4696, allocations: 30.52 kB / 433 MB, free: 7.434 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.515e-05/0.4697, allocations: 31.44 kB / 433.1 MB, free: 7.434 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006138/0.4703, allocations: 388.7 kB / 433.5 MB, free: 7.32 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.071e-05/0.4704, allocations: 7.953 kB / 433.5 MB, free: 7.316 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.582e-05/0.4704, allocations: 17.86 kB / 433.5 MB, free: 7.312 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.977e-06/0.4704, allocations: 7.5 kB / 433.5 MB, free: 7.312 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005661/0.471, allocations: 374 kB / 433.8 MB, free: 7.27 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002204/0.4732, allocations: 1.294 MB / 435.1 MB, free: 6.562 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00058/0.4738, allocations: 341.2 kB / 435.5 MB, free: 6.52 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003125/0.4741, allocations: 212.9 kB / 435.7 MB, free: 6.504 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.145e-05/0.4742, allocations: 8.094 kB / 435.7 MB, free: 6.5 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.277e-05/0.4742, allocations: 42.5 kB / 435.7 MB, free: 6.453 MB / 298.7 MB Notification: Performance of pre-optimization done (n=47): time 1.993e-06/0.4743, allocations: 0 / 435.7 MB, free: 6.453 MB / 298.7 MB Notification: Performance of matching and sorting (n=51): time 0.002807/0.4771, allocations: 1.59 MB / 437.3 MB, free: 5.719 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.155e-05/0.4771, allocations: 55.69 kB / 437.4 MB, free: 5.656 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001805/0.4773, allocations: 205.9 kB / 437.6 MB, free: 5.539 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.964e-05/0.4774, allocations: 39.7 kB / 437.6 MB, free: 5.508 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.702e-05/0.4775, allocations: 167.4 kB / 437.8 MB, free: 5.383 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001142/0.4776, allocations: 173.8 kB / 437.9 MB, free: 5.258 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.174e-05/0.4776, allocations: 11.03 kB / 438 MB, free: 5.258 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.056e-05/0.4777, allocations: 336.8 kB / 438.3 MB, free: 4.938 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002834/0.478, allocations: 193 kB / 438.5 MB, free: 4.93 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003197/0.4783, allocations: 249.8 kB / 438.7 MB, free: 4.871 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002596/0.4786, allocations: 157.7 kB / 438.9 MB, free: 4.84 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.4786, allocations: 0 / 438.9 MB, free: 4.84 MB / 298.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001365/0.48, allocations: 0.6981 MB / 439.6 MB, free: 4.664 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.096e-05/0.48, allocations: 7.859 kB / 439.6 MB, free: 4.66 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.698e-05/0.48, allocations: 3.875 kB / 439.6 MB, free: 4.66 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008096/0.4808, allocations: 442.2 kB / 440 MB, free: 4.535 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000261/0.4811, allocations: 69.59 kB / 440.1 MB, free: 4.523 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001896/0.483, allocations: 3.384 MB / 443.5 MB, free: 1.391 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005022/0.4835, allocations: 102.8 kB / 443.6 MB, free: 1.359 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.879e-05/0.4836, allocations: 25.59 kB / 443.6 MB, free: 1.355 MB / 298.7 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 (clutch.free,$PRE.clutch.startForward,clutch.startForward,$PRE.clutch.startBackward,clutch.startBackward,clutch.locked,$PRE.clutch.mode,clutch.mode,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 1 {2 16} Notification: Performance of prepare postOptimizeDAE: time 0.0001312/0.4837, allocations: 139.9 kB / 443.7 MB, free: 1.238 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.64e-05/0.4838, allocations: 34.75 kB / 443.8 MB, free: 1.219 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001293/0.4851, allocations: 0.7126 MB / 444.5 MB, free: 0.9961 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.639e-06/0.4851, allocations: 3.875 kB / 444.5 MB, free: 0.9961 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.615e-06/0.4851, allocations: 0 / 444.5 MB, free: 0.9961 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.693e-06/0.4852, allocations: 7.953 kB / 444.5 MB, free: 0.9922 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001487/0.4867, allocations: 1.149 MB / 445.6 MB, free: 240 kB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.627e-06/0.4867, allocations: 4 kB / 445.6 MB, free: 236 kB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002518/0.4869, allocations: 55.66 kB / 445.7 MB, free: 184 kB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007933/0.4877, allocations: 418.5 kB / 446.1 MB, free: 15.85 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.984e-05/0.4878, allocations: 27.55 kB / 446.1 MB, free: 15.83 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002676/0.4905, allocations: 3.352 MB / 449.5 MB, free: 12.38 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.958e-06/0.4905, allocations: 8.219 kB / 449.5 MB, free: 12.38 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001403/0.4919, allocations: 0.8839 MB / 450.4 MB, free: 11.73 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002144/0.4921, allocations: 156.3 kB / 450.5 MB, free: 11.58 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.89e-05/0.4922, allocations: 15.19 kB / 450.5 MB, free: 11.57 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004976/0.4927, allocations: 105.7 kB / 450.6 MB, free: 11.48 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002187/0.4929, allocations: 106.1 kB / 450.8 MB, free: 11.38 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.039e-05/0.493, allocations: 25.91 kB / 450.8 MB, free: 11.36 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001692/0.4932, allocations: 170.1 kB / 450.9 MB, free: 11.22 MB / 314.7 MB Notification: Performance of sort global known variables: time 2.91e-07/0.4932, allocations: 0 / 450.9 MB, free: 11.22 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005259/0.4937, allocations: 127.1 kB / 451.1 MB, free: 11.11 MB / 314.7 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 (brake.mode,brake.startBackward,brake.startForward,clutch.mode,clutch.startBackward,clutch.startForward) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 1 {2 16} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002686/0.494, allocations: 144.6 kB / 451.2 MB, free: 10.97 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001192/0.4952, allocations: 0.7688 MB / 452 MB, free: 10.33 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.026e-05/0.4952, allocations: 0 / 452 MB, free: 10.33 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006882/0.4959, allocations: 0.5016 MB / 452.5 MB, free: 9.895 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003925/0.4963, allocations: 46.23 kB / 452.5 MB, free: 9.863 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001597/0.4979, allocations: 0.8061 MB / 453.3 MB, free: 9.129 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003718/0.4983, allocations: 0.8075 MB / 454.1 MB, free: 8.293 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001273/0.4984, allocations: 31.23 kB / 454.2 MB, free: 8.266 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.335e-05/0.4985, allocations: 24.98 kB / 454.2 MB, free: 8.246 MB / 314.7 MB Notification: Performance of SimCode: time 4.4e-07/0.4985, allocations: 0 / 454.2 MB, free: 8.246 MB / 314.7 MB Notification: Performance of Templates: time 0.01383/0.5124, allocations: 8.5 MB / 462.7 MB, free: 15.76 MB / 330.7 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)