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.001046/0.001046, allocations: 169.8 kB / 12.72 MB, free: 2.594 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.253/1.253, allocations: 170.6 MB / 183.8 MB, free: 11.43 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.001622/0.001622, allocations: 106.8 kB / 223.2 MB, free: 4.051 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.441e-05/2.442e-05, allocations: 0 / 268.9 MB, free: 20.92 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0699/0.06994, allocations: 38.77 MB / 307.6 MB, free: 14.12 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2749/0.3449, allocations: 70.6 MB / 378.2 MB, free: 5.688 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002256/0.3452, allocations: 67.47 kB / 378.3 MB, free: 5.656 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01822/0.3634, allocations: 6.497 MB / 384.8 MB, free: 32 kB / 266.7 MB Notification: Performance of FrontEnd: time 1.553e-06/0.3635, allocations: 0 / 384.8 MB, free: 32 kB / 266.7 MB Notification: Performance of Transformations before backend: time 1.8e-05/0.3635, allocations: 4 kB / 384.8 MB, free: 28 kB / 266.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.001204/0.3647, allocations: 0.6603 MB / 385.5 MB, free: 15.34 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.421e-05/0.3647, allocations: 12.03 kB / 385.5 MB, free: 15.33 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.979e-05/0.3648, allocations: 39.53 kB / 385.5 MB, free: 15.29 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003955/0.3652, allocations: 294.1 kB / 385.8 MB, free: 14.99 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.708e-05/0.3653, allocations: 27.22 kB / 385.8 MB, free: 14.98 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.404e-05/0.3654, allocations: 42.34 kB / 385.9 MB, free: 14.95 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006926/0.3661, allocations: 420.8 kB / 386.3 MB, free: 14.65 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.813e-05/0.3661, allocations: 0 / 386.3 MB, free: 14.65 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.672e-05/0.3662, allocations: 14.81 kB / 386.3 MB, free: 14.64 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.105e-05/0.3662, allocations: 8 kB / 386.3 MB, free: 14.64 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006309/0.3668, allocations: 412.2 kB / 386.7 MB, free: 14.36 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002353/0.3692, allocations: 1.292 MB / 388 MB, free: 13.25 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000643/0.3699, allocations: 343.9 kB / 388.3 MB, free: 13.02 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003329/0.3702, allocations: 218.9 kB / 388.5 MB, free: 12.89 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.205e-05/0.3702, allocations: 7.75 kB / 388.5 MB, free: 12.88 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.845e-05/0.3703, allocations: 46.3 kB / 388.6 MB, free: 12.83 MB / 282.7 MB Notification: Performance of pre-optimization done (n=45): time 1.843e-06/0.3703, allocations: 0 / 388.6 MB, free: 12.83 MB / 282.7 MB Notification: Performance of matching and sorting (n=49): time 0.003017/0.3733, allocations: 1.631 MB / 390.2 MB, free: 11.44 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.167e-05/0.3734, allocations: 59.83 kB / 390.3 MB, free: 11.37 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002195/0.3736, allocations: 220.9 kB / 390.5 MB, free: 11.18 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 4.854e-05/0.3737, allocations: 36.58 kB / 390.5 MB, free: 11.14 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.824e-05/0.3738, allocations: 179 kB / 390.7 MB, free: 10.98 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001172/0.3739, allocations: 168.4 kB / 390.9 MB, free: 10.84 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.933e-05/0.3739, allocations: 11.81 kB / 390.9 MB, free: 10.84 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001371/0.3741, allocations: 346 kB / 391.2 MB, free: 10.51 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000319/0.3744, allocations: 204.7 kB / 391.4 MB, free: 10.39 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003595/0.3748, allocations: 275.7 kB / 391.7 MB, free: 10.19 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002783/0.375, allocations: 177.5 kB / 391.9 MB, free: 10.06 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.443e-06/0.3751, allocations: 0 / 391.9 MB, free: 10.06 MB / 282.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001616/0.3767, allocations: 0.8475 MB / 392.7 MB, free: 9.395 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.881e-05/0.3767, allocations: 4 kB / 392.7 MB, free: 9.391 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.312e-06/0.3767, allocations: 4 kB / 392.7 MB, free: 9.387 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001038/0.3778, allocations: 0.5638 MB / 393.3 MB, free: 8.918 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002885/0.3781, allocations: 75.84 kB / 393.4 MB, free: 8.848 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002669/0.3807, allocations: 3.442 MB / 396.8 MB, free: 5.336 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005372/0.3813, allocations: 111.2 kB / 396.9 MB, free: 5.238 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.299e-05/0.3814, allocations: 19.75 kB / 396.9 MB, free: 5.223 MB / 282.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): 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.0001641/0.3815, allocations: 140 kB / 397.1 MB, free: 5.094 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.13e-05/0.3816, allocations: 35.61 kB / 397.1 MB, free: 5.059 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001438/0.3831, allocations: 0.7592 MB / 397.9 MB, free: 4.488 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.22e-06/0.3831, allocations: 4 kB / 397.9 MB, free: 4.484 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.619e-06/0.3831, allocations: 3.984 kB / 397.9 MB, free: 4.48 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.494e-06/0.3831, allocations: 3.984 kB / 397.9 MB, free: 4.477 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001845/0.385, allocations: 1.216 MB / 399.1 MB, free: 3.488 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.558e-06/0.385, allocations: 7.984 kB / 399.1 MB, free: 3.48 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000301/0.3853, allocations: 59.47 kB / 399.2 MB, free: 3.426 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009389/0.3862, allocations: 0.5506 MB / 399.7 MB, free: 2.965 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.256e-05/0.3863, allocations: 15.42 kB / 399.7 MB, free: 2.957 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002623/0.3889, allocations: 3.428 MB / 403.1 MB, free: 15.45 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.3889, allocations: 0 / 403.1 MB, free: 15.45 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001434/0.3904, allocations: 0.974 MB / 404.1 MB, free: 14.73 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002104/0.3906, allocations: 161.4 kB / 404.3 MB, free: 14.57 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.85e-05/0.3907, allocations: 14 kB / 404.3 MB, free: 14.57 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004858/0.3912, allocations: 99.77 kB / 404.4 MB, free: 14.47 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002157/0.3914, allocations: 110 kB / 404.5 MB, free: 14.38 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.969e-05/0.3915, allocations: 27.09 kB / 404.5 MB, free: 14.36 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001607/0.3916, allocations: 168 kB / 404.7 MB, free: 14.21 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3916, allocations: 4 kB / 404.7 MB, free: 14.21 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005454/0.3922, allocations: 119.9 kB / 404.8 MB, free: 14.11 MB / 298.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.0002597/0.3925, allocations: 142.2 kB / 404.9 MB, free: 13.96 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001214/0.3937, allocations: 0.748 MB / 405.7 MB, free: 13.36 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.3937, allocations: 0 / 405.7 MB, free: 13.36 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006917/0.3944, allocations: 0.4944 MB / 406.2 MB, free: 12.93 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003809/0.3948, allocations: 49.92 kB / 406.2 MB, free: 12.89 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001569/0.3964, allocations: 0.8071 MB / 407 MB, free: 12.16 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003757/0.3967, allocations: 0.8075 MB / 407.9 MB, free: 11.32 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001339/0.3969, allocations: 31.28 kB / 407.9 MB, free: 11.29 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.487e-05/0.397, allocations: 27.42 kB / 407.9 MB, free: 11.27 MB / 298.7 MB Notification: Performance of SimCode: time 3.11e-07/0.397, allocations: 0 / 407.9 MB, free: 11.27 MB / 298.7 MB Notification: Performance of Templates: time 0.0131/0.4101, allocations: 8.201 MB / 416.1 MB, free: 3.086 MB / 298.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)