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.001352/0.001352, allocations: 187.9 kB / 8.353 MB, free: 0.707 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.484/1.484, allocations: 194.3 MB / 203.1 MB, free: 9.316 MB / 171.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001812/0.001812, allocations: 124.6 kB / 248.1 MB, free: 6.344 MB / 203.1 MB Notification: Performance of FrontEnd - loaded program: time 1.546e-05/1.548e-05, allocations: 0 / 298.1 MB, free: 8.25 MB / 251.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09124/0.09127, allocations: 44.49 MB / 342.6 MB, free: 11.65 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2973/0.3887, allocations: 75.28 MB / 417.8 MB, free: 20.56 MB / 315.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002035/0.3889, allocations: 70.59 kB / 417.9 MB, free: 20.52 MB / 315.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.01668/0.4056, allocations: 6.523 MB / 424.4 MB, free: 15.02 MB / 315.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.4057, allocations: 0 / 424.4 MB, free: 15.02 MB / 315.1 MB Notification: Performance of Transformations before backend: time 1.916e-05/0.4057, allocations: 8 kB / 424.4 MB, free: 15.02 MB / 315.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.001124/0.4068, allocations: 0.6552 MB / 425.1 MB, free: 14.34 MB / 315.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.647e-05/0.4069, allocations: 8.031 kB / 425.1 MB, free: 14.33 MB / 315.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.704e-05/0.407, allocations: 41.25 kB / 425.2 MB, free: 14.29 MB / 315.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003118/0.4073, allocations: 294.7 kB / 425.4 MB, free: 14 MB / 315.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.218e-05/0.4074, allocations: 15.77 kB / 425.5 MB, free: 13.98 MB / 315.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.377e-05/0.4074, allocations: 20 kB / 425.5 MB, free: 13.96 MB / 315.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005103/0.4079, allocations: 352.4 kB / 425.8 MB, free: 13.74 MB / 315.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005013/0.4085, allocations: 349.5 kB / 426.2 MB, free: 13.48 MB / 315.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.136e-05/0.4085, allocations: 6.953 kB / 426.2 MB, free: 13.48 MB / 315.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.126e-05/0.4085, allocations: 5.172 kB / 426.2 MB, free: 13.47 MB / 315.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.548e-06/0.4086, allocations: 8 kB / 426.2 MB, free: 13.46 MB / 315.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001993/0.4105, allocations: 1.216 MB / 427.4 MB, free: 12.43 MB / 315.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004994/0.4111, allocations: 320.4 kB / 427.7 MB, free: 12.23 MB / 315.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002318/0.4113, allocations: 200 kB / 427.9 MB, free: 12.11 MB / 315.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.953e-05/0.4114, allocations: 12.5 kB / 427.9 MB, free: 12.1 MB / 315.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.493e-05/0.4114, allocations: 39.06 kB / 428 MB, free: 12.05 MB / 315.1 MB Notification: Performance of pre-optimization done (n=47): time 2.004e-06/0.4114, allocations: 0 / 428 MB, free: 12.05 MB / 315.1 MB Notification: Performance of matching and sorting (n=51): time 0.002833/0.4142, allocations: 1.519 MB / 429.5 MB, free: 10.72 MB / 315.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.325e-05/0.4143, allocations: 59.84 kB / 429.5 MB, free: 10.65 MB / 315.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001354/0.4144, allocations: 189.3 kB / 429.7 MB, free: 10.49 MB / 315.1 MB Notification: Performance of collectPreVariables (initialization): time 4.694e-05/0.4145, allocations: 33.02 kB / 429.7 MB, free: 10.45 MB / 315.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.56e-05/0.4146, allocations: 171.7 kB / 429.9 MB, free: 10.3 MB / 315.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001243/0.4147, allocations: 163.4 kB / 430.1 MB, free: 10.17 MB / 315.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.241e-05/0.4147, allocations: 8.672 kB / 430.1 MB, free: 10.16 MB / 315.1 MB Notification: Performance of setup shared object (initialization): time 6.629e-05/0.4148, allocations: 340.9 kB / 430.4 MB, free: 9.832 MB / 315.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000247/0.4151, allocations: 177.7 kB / 430.6 MB, free: 9.734 MB / 315.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002631/0.4153, allocations: 238.2 kB / 430.8 MB, free: 9.562 MB / 315.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003326/0.4157, allocations: 153.2 kB / 431 MB, free: 9.457 MB / 315.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.834e-06/0.4157, allocations: 0 / 431 MB, free: 9.457 MB / 315.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001291/0.417, allocations: 0.6614 MB / 431.6 MB, free: 8.945 MB / 315.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.54e-05/0.417, allocations: 8 kB / 431.6 MB, free: 8.938 MB / 315.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.776e-05/0.417, allocations: 6.125 kB / 431.6 MB, free: 8.934 MB / 315.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008031/0.4178, allocations: 435.5 kB / 432.1 MB, free: 8.598 MB / 315.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000275/0.4181, allocations: 71.28 kB / 432.1 MB, free: 8.531 MB / 315.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002243/0.4204, allocations: 3.353 MB / 435.5 MB, free: 5.156 MB / 315.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005267/0.4209, allocations: 95.94 kB / 435.6 MB, free: 5.062 MB / 315.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.799e-05/0.421, allocations: 23.48 kB / 435.6 MB, free: 5.043 MB / 315.1 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: clutch.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real brake.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real 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.0001957/0.4212, allocations: 124.8 kB / 435.7 MB, free: 4.918 MB / 315.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.505e-05/0.4213, allocations: 35.58 kB / 435.8 MB, free: 4.883 MB / 315.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001264/0.4226, allocations: 0.6678 MB / 436.4 MB, free: 4.383 MB / 315.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.117e-06/0.4226, allocations: 4 kB / 436.4 MB, free: 4.379 MB / 315.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.128e-06/0.4226, allocations: 7.688 kB / 436.4 MB, free: 4.375 MB / 315.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.513e-06/0.4226, allocations: 7.938 kB / 436.5 MB, free: 4.367 MB / 315.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001445/0.424, allocations: 1.064 MB / 437.5 MB, free: 3.5 MB / 315.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.337e-06/0.4241, allocations: 0 / 437.5 MB, free: 3.5 MB / 315.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002649/0.4243, allocations: 59.91 kB / 437.6 MB, free: 3.441 MB / 315.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006827/0.425, allocations: 418.1 kB / 438 MB, free: 3.113 MB / 315.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.263e-05/0.4251, allocations: 18.72 kB / 438 MB, free: 3.098 MB / 315.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002118/0.4272, allocations: 3.32 MB / 441.3 MB, free: 15.74 MB / 331.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/0.4272, allocations: 3.938 kB / 441.3 MB, free: 15.73 MB / 331.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00139/0.4286, allocations: 0.8557 MB / 442.2 MB, free: 15.11 MB / 331.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001886/0.4288, allocations: 152.2 kB / 442.3 MB, free: 14.96 MB / 331.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.121e-05/0.4289, allocations: 7.25 kB / 442.3 MB, free: 14.96 MB / 331.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004765/0.4294, allocations: 97.5 kB / 442.4 MB, free: 14.86 MB / 331.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000198/0.4296, allocations: 105 kB / 442.5 MB, free: 14.77 MB / 331.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.896e-05/0.4297, allocations: 26.03 kB / 442.6 MB, free: 14.75 MB / 331.1 MB Notification: Performance of sorting global known variables: time 0.0001203/0.4298, allocations: 149.7 kB / 442.7 MB, free: 14.62 MB / 331.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4298, allocations: 0 / 442.7 MB, free: 14.62 MB / 331.1 MB Notification: Performance of remove unused functions: time 0.0005056/0.4303, allocations: 108 kB / 442.8 MB, free: 14.52 MB / 331.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 (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.0002447/0.4305, allocations: 141.9 kB / 443 MB, free: 14.38 MB / 331.1 MB Notification: Performance of simCode: created initialization part: time 0.00114/0.4317, allocations: 0.7278 MB / 443.7 MB, free: 13.78 MB / 331.1 MB Notification: Performance of simCode: created event and clocks part: time 3.277e-06/0.4317, allocations: 256 / 443.7 MB, free: 13.78 MB / 331.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006507/0.4324, allocations: 494.2 kB / 444.2 MB, free: 13.37 MB / 331.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003951/0.4328, allocations: 40.36 kB / 444.2 MB, free: 13.34 MB / 331.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001547/0.4343, allocations: 0.7784 MB / 445 MB, free: 12.62 MB / 331.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004122/0.4348, allocations: 0.8075 MB / 445.8 MB, free: 11.79 MB / 331.1 MB Notification: Performance of simCode: alias equations: time 0.0001287/0.4349, allocations: 26.2 kB / 445.8 MB, free: 11.77 MB / 331.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.298e-05/0.435, allocations: 27.42 kB / 445.8 MB, free: 11.74 MB / 331.1 MB Notification: Performance of SimCode: time 2.71e-07/0.435, allocations: 0 / 445.8 MB, free: 11.74 MB / 331.1 MB Notification: Performance of Templates: time 0.01291/0.4479, allocations: 8.161 MB / 454 MB, free: 3.656 MB / 331.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)