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/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+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/Complex 3.2.1+maint.om/package.mo): time 0.01036/0.01036, allocations: 165.5 kB / 15.11 MB, free: 5.973 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.448/1.448, allocations: 170.8 MB / 186.6 MB, free: 1.035 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001578/0.001578, allocations: 113.5 kB / 226.2 MB, free: 10.09 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003286/0.0003286, allocations: 15.94 kB / 274.1 MB, free: 10.08 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2351/0.2354, allocations: 38.76 MB / 312.9 MB, free: 38.84 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.0986/0.3341, allocations: 70.7 MB / 383.6 MB, free: 3.828 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002664/0.3344, allocations: 79.95 kB / 383.7 MB, free: 3.75 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01863/0.353, allocations: 6.501 MB / 390.2 MB, free: 13.24 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.034e-06/0.3531, allocations: 3.938 kB / 390.2 MB, free: 13.23 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.892e-05/0.3531, allocations: 8 kB / 390.2 MB, free: 13.23 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.001574/0.3547, allocations: 0.7018 MB / 390.9 MB, free: 12.48 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5e-05/0.3548, allocations: 8.031 kB / 390.9 MB, free: 12.47 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001539/0.3549, allocations: 39.53 kB / 390.9 MB, free: 12.43 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004592/0.3554, allocations: 293.5 kB / 391.2 MB, free: 12.1 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.758e-05/0.3555, allocations: 25 kB / 391.2 MB, free: 12.08 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.282e-05/0.3555, allocations: 43.91 kB / 391.3 MB, free: 12.04 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008919/0.3564, allocations: 446.2 kB / 391.7 MB, free: 11.59 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.147e-05/0.3565, allocations: 4 kB / 391.7 MB, free: 11.59 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.71e-05/0.3565, allocations: 12 kB / 391.7 MB, free: 11.58 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.258e-05/0.3565, allocations: 8 kB / 391.7 MB, free: 11.57 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009872/0.3575, allocations: 471.7 kB / 392.2 MB, free: 11.11 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002484/0.36, allocations: 1.3 MB / 393.5 MB, free: 9.742 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008124/0.3609, allocations: 372.5 kB / 393.9 MB, free: 9.367 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.624e-05/0.3609, allocations: 4.375 kB / 393.9 MB, free: 9.363 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.012e-05/0.361, allocations: 34.94 kB / 393.9 MB, free: 9.32 MB / 298.7 MB Notification: Performance of pre-optimization done (n=45): time 4.548e-06/0.361, allocations: 0 / 393.9 MB, free: 9.32 MB / 298.7 MB Notification: Performance of matching and sorting (n=49): time 0.005545/0.3665, allocations: 2.465 MB / 396.4 MB, free: 6.703 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.093e-05/0.3666, allocations: 63.8 kB / 396.4 MB, free: 6.625 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002889/0.3669, allocations: 213.7 kB / 396.6 MB, free: 6.41 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.377e-05/0.3669, allocations: 45.69 kB / 396.7 MB, free: 6.359 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001122/0.3671, allocations: 168.7 kB / 396.8 MB, free: 6.191 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001493/0.3672, allocations: 157.8 kB / 397 MB, free: 6.035 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.548e-05/0.3673, allocations: 12 kB / 397 MB, free: 6.023 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001544/0.3674, allocations: 354.7 kB / 397.3 MB, free: 5.668 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004904/0.3679, allocations: 233 kB / 397.6 MB, free: 5.441 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005308/0.3685, allocations: 307.2 kB / 397.9 MB, free: 5.121 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004265/0.3689, allocations: 199.5 kB / 398.1 MB, free: 4.93 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.844e-06/0.3689, allocations: 0 / 398.1 MB, free: 4.93 MB / 298.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002044/0.371, allocations: 0.9108 MB / 399 MB, free: 4.004 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.415e-05/0.371, allocations: 8 kB / 399 MB, free: 3.996 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.875e-06/0.371, allocations: 7.875 kB / 399 MB, free: 3.988 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001145/0.3722, allocations: 0.5865 MB / 399.6 MB, free: 3.395 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002921/0.3725, allocations: 75.89 kB / 399.7 MB, free: 3.32 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003748/0.3762, allocations: 3.452 MB / 403.1 MB, free: 15.57 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005444/0.3768, allocations: 108.2 kB / 403.2 MB, free: 15.47 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.39e-05/0.3769, allocations: 28 kB / 403.2 MB, free: 15.44 MB / 314.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 () * 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 (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.0002866/0.3772, allocations: 170.3 kB / 403.4 MB, free: 15.27 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.27e-05/0.3773, allocations: 31.62 kB / 403.4 MB, free: 15.23 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001816/0.3791, allocations: 0.8067 MB / 404.2 MB, free: 14.41 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.45e-06/0.3791, allocations: 7.938 kB / 404.3 MB, free: 14.4 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.149e-06/0.3791, allocations: 0 / 404.3 MB, free: 14.4 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.422e-06/0.3791, allocations: 4 kB / 404.3 MB, free: 14.4 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002257/0.3814, allocations: 1.271 MB / 405.5 MB, free: 13.07 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.767e-06/0.3814, allocations: 0 / 405.5 MB, free: 13.07 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002796/0.3817, allocations: 55.91 kB / 405.6 MB, free: 13.01 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001043/0.3828, allocations: 0.5605 MB / 406.1 MB, free: 12.44 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.732e-05/0.3828, allocations: 19.97 kB / 406.2 MB, free: 12.42 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002982/0.3858, allocations: 3.439 MB / 409.6 MB, free: 8.695 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.757e-06/0.3858, allocations: 0 / 409.6 MB, free: 8.695 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001963/0.3878, allocations: 1.047 MB / 410.7 MB, free: 7.621 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002481/0.3881, allocations: 156.6 kB / 410.8 MB, free: 7.449 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.065e-05/0.3882, allocations: 23.98 kB / 410.8 MB, free: 7.426 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005071/0.3887, allocations: 103.8 kB / 410.9 MB, free: 7.324 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002187/0.3889, allocations: 104.2 kB / 411 MB, free: 7.223 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.724e-05/0.389, allocations: 27.97 kB / 411.1 MB, free: 7.195 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.000198/0.3892, allocations: 170 kB / 411.2 MB, free: 7.027 MB / 314.7 MB Notification: Performance of sort global known variables: time 2.81e-07/0.3892, allocations: 0 / 411.2 MB, free: 7.027 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.00057/0.3898, allocations: 132 kB / 411.4 MB, free: 6.898 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) * 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 (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.0003105/0.3901, allocations: 145.8 kB / 411.5 MB, free: 6.75 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001588/0.3917, allocations: 0.7863 MB / 412.3 MB, free: 5.941 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.3917, allocations: 0 / 412.3 MB, free: 5.941 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008781/0.3926, allocations: 0.5374 MB / 412.8 MB, free: 5.375 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004291/0.393, allocations: 64.31 kB / 412.9 MB, free: 5.316 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00225/0.3953, allocations: 1.154 MB / 414 MB, free: 4.133 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004565/0.3958, allocations: 0.8074 MB / 414.8 MB, free: 3.297 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001809/0.3959, allocations: 31.28 kB / 414.9 MB, free: 3.27 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.138e-05/0.396, allocations: 31.42 kB / 414.9 MB, free: 3.238 MB / 314.7 MB Notification: Performance of SimCode: time 1.062e-06/0.3961, allocations: 0 / 414.9 MB, free: 3.238 MB / 314.7 MB Notification: Performance of Templates: time 0.1766/0.5726, allocations: 8.177 MB / 423.1 MB, free: 90.45 MB / 314.7 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)