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.001172/0.001172, allocations: 180.7 kB / 16.38 MB, free: 5.766 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.17/1.17, allocations: 194.5 MB / 211.6 MB, free: 3.039 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.001506/0.001506, allocations: 114.6 kB / 256.9 MB, free: 4.348 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002688/0.0002688, allocations: 8 kB / 310.6 MB, free: 14.94 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07359/0.07387, allocations: 44.5 MB / 355.1 MB, free: 2.336 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2116/0.2855, allocations: 76.02 MB / 431.1 MB, free: 13.54 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001917/0.2858, allocations: 70.25 kB / 431.1 MB, free: 13.5 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01568/0.3015, allocations: 6.581 MB / 437.7 MB, free: 7.906 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.054e-06/0.3015, allocations: 0 / 437.7 MB, free: 7.906 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.432e-05/0.3015, allocations: 13.62 kB / 437.7 MB, free: 7.895 MB / 314.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.0009781/0.3025, allocations: 0.6919 MB / 438.4 MB, free: 7.18 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.997e-05/0.3025, allocations: 8.031 kB / 438.4 MB, free: 7.172 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.387e-05/0.3026, allocations: 51.31 kB / 438.5 MB, free: 7.125 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000258/0.3029, allocations: 293.7 kB / 438.8 MB, free: 6.82 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.627e-05/0.3029, allocations: 26.88 kB / 438.8 MB, free: 6.809 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.784e-05/0.303, allocations: 34.06 kB / 438.8 MB, free: 6.785 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000644/0.3036, allocations: 415.8 kB / 439.2 MB, free: 6.492 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.752e-05/0.3037, allocations: 7.984 kB / 439.3 MB, free: 6.484 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.021e-05/0.3037, allocations: 18.72 kB / 439.3 MB, free: 6.48 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.246e-06/0.3037, allocations: 12 kB / 439.3 MB, free: 6.469 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007456/0.3045, allocations: 424.8 kB / 439.7 MB, free: 6.172 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002106/0.3066, allocations: 1.283 MB / 441 MB, free: 5.086 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000656/0.3073, allocations: 380.5 kB / 441.4 MB, free: 4.824 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.433e-05/0.3073, allocations: 8.422 kB / 441.4 MB, free: 4.816 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.945e-05/0.3074, allocations: 41.88 kB / 441.4 MB, free: 4.77 MB / 314.7 MB Notification: Performance of pre-optimization done (n=47): time 2.274e-06/0.3074, allocations: 0 / 441.4 MB, free: 4.77 MB / 314.7 MB Notification: Performance of matching and sorting (n=51): time 0.004158/0.3115, allocations: 2.295 MB / 443.7 MB, free: 2.789 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.063e-05/0.3116, allocations: 60.59 kB / 443.8 MB, free: 2.719 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001435/0.3117, allocations: 208 kB / 444 MB, free: 2.539 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.58e-05/0.3118, allocations: 43.02 kB / 444 MB, free: 2.5 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.424e-05/0.3118, allocations: 167.8 kB / 444.2 MB, free: 2.359 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.157e-05/0.3119, allocations: 169.3 kB / 444.3 MB, free: 2.219 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.924e-05/0.312, allocations: 10.88 kB / 444.3 MB, free: 2.215 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.366e-05/0.312, allocations: 340.3 kB / 444.7 MB, free: 1.887 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003755/0.3124, allocations: 217.6 kB / 444.9 MB, free: 1.75 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003879/0.3128, allocations: 282.2 kB / 445.2 MB, free: 1.539 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003182/0.3131, allocations: 184.6 kB / 445.3 MB, free: 1.43 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.3131, allocations: 4 kB / 445.3 MB, free: 1.426 MB / 314.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001446/0.3146, allocations: 0.7436 MB / 446.1 MB, free: 0.8008 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.855e-05/0.3146, allocations: 17.36 kB / 446.1 MB, free: 0.7852 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.3e-05/0.3146, allocations: 0 / 446.1 MB, free: 0.7852 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007949/0.3154, allocations: 458.2 kB / 446.6 MB, free: 336 kB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002388/0.3157, allocations: 71.86 kB / 446.6 MB, free: 264 kB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002568/0.3183, allocations: 3.402 MB / 450 MB, free: 12.57 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004986/0.3188, allocations: 104.2 kB / 450.1 MB, free: 12.47 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.259e-05/0.3188, allocations: 23.98 kB / 450.1 MB, free: 12.45 MB / 330.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): 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.0002314/0.3191, allocations: 165.7 kB / 450.3 MB, free: 12.27 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.038e-05/0.3192, allocations: 31.62 kB / 450.3 MB, free: 12.24 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001605/0.3208, allocations: 0.7654 MB / 451.1 MB, free: 11.45 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.989e-06/0.3208, allocations: 4 kB / 451.1 MB, free: 11.45 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.968e-06/0.3208, allocations: 0 / 451.1 MB, free: 11.45 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.408e-06/0.3208, allocations: 3.938 kB / 451.1 MB, free: 11.45 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00194/0.3228, allocations: 1.221 MB / 452.3 MB, free: 10.15 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.645e-06/0.3228, allocations: 0 / 452.3 MB, free: 10.15 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00026/0.323, allocations: 56.47 kB / 452.4 MB, free: 10.1 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008234/0.3239, allocations: 438.2 kB / 452.8 MB, free: 9.66 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.62e-05/0.3239, allocations: 19.97 kB / 452.8 MB, free: 9.641 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002343/0.3263, allocations: 3.38 MB / 456.2 MB, free: 5.977 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.3263, allocations: 4 kB / 456.2 MB, free: 5.973 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001654/0.3279, allocations: 0.9655 MB / 457.2 MB, free: 4.988 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001882/0.3282, allocations: 157.5 kB / 457.3 MB, free: 4.816 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.85e-05/0.3282, allocations: 20 kB / 457.4 MB, free: 4.797 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004482/0.3287, allocations: 103.9 kB / 457.5 MB, free: 4.695 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001909/0.3289, allocations: 108.2 kB / 457.6 MB, free: 4.586 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.401e-05/0.3289, allocations: 19.98 kB / 457.6 MB, free: 4.566 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001455/0.3291, allocations: 174 kB / 457.8 MB, free: 4.398 MB / 330.7 MB Notification: Performance of sort global known variables: time 2.11e-07/0.3291, allocations: 0 / 457.8 MB, free: 4.398 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004744/0.3296, allocations: 120 kB / 457.9 MB, free: 4.281 MB / 330.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.0002279/0.3298, allocations: 144.4 kB / 458 MB, free: 4.133 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001378/0.3312, allocations: 0.8337 MB / 458.8 MB, free: 3.262 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.3312, allocations: 0 / 458.8 MB, free: 3.262 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008035/0.332, allocations: 0.5292 MB / 459.4 MB, free: 2.707 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003588/0.3324, allocations: 48.67 kB / 459.4 MB, free: 2.664 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001804/0.3342, allocations: 1.161 MB / 460.6 MB, free: 1.492 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003587/0.3346, allocations: 0.8074 MB / 461.4 MB, free: 0.6562 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001212/0.3347, allocations: 35.27 kB / 461.4 MB, free: 0.6211 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.973e-05/0.3348, allocations: 23.44 kB / 461.5 MB, free: 0.5977 MB / 330.7 MB Notification: Performance of SimCode: time 3.01e-07/0.3348, allocations: 0 / 461.5 MB, free: 0.5977 MB / 330.7 MB Notification: Performance of Templates: time 0.01232/0.3471, allocations: 8.501 MB / 470 MB, free: 8.156 MB / 346.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)