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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001083/0.001083, allocations: 91.84 kB / 15.06 MB, free: 1.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00132/0.00132, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.402/1.402, allocations: 205.4 MB / 222.1 MB, free: 5.488 MB / 174.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.000456/0.000456, allocations: 12 kB / 278.9 MB, free: 12.69 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2614/0.2619, allocations: 47.58 MB / 326.5 MB, free: 1.461 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.002926/0.2648, allocations: 2.389 MB / 328.9 MB, free: 15.59 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001789/0.2667, allocations: 0.8966 MB / 329.8 MB, free: 14.86 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002096/0.2669, allocations: 4.531 kB / 329.8 MB, free: 14.86 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002331/0.2671, allocations: 49.08 kB / 329.8 MB, free: 14.82 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000246/0.2674, allocations: 90 kB / 329.9 MB, free: 14.74 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004649/0.2679, allocations: 161.7 kB / 330.1 MB, free: 14.61 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005258/0.2684, allocations: 0.4946 MB / 330.5 MB, free: 14.31 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002274/0.2687, allocations: 86.42 kB / 330.6 MB, free: 14.25 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003223/0.269, allocations: 213.5 kB / 330.8 MB, free: 14.14 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003338/0.2693, allocations: 238.5 kB / 331.1 MB, free: 13.99 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 6.197e-05/0.2694, allocations: 23.09 kB / 331.1 MB, free: 13.99 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001842/0.2696, allocations: 68.61 kB / 331.2 MB, free: 13.97 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001271/0.2697, allocations: 91.94 kB / 331.3 MB, free: 13.89 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000109/0.2698, allocations: 85.8 kB / 331.3 MB, free: 13.84 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004235/0.2703, allocations: 379.6 kB / 331.7 MB, free: 13.56 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.939e-06/0.2703, allocations: 4.875 kB / 331.7 MB, free: 13.56 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.2703, allocations: 0 / 331.7 MB, free: 13.56 MB / 270.1 MB Notification: Performance of Transformations before backend: time 7.734e-06/0.2703, allocations: 0 / 331.7 MB, free: 13.56 MB / 270.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.00131/0.2716, allocations: 0.6845 MB / 332.4 MB, free: 13 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.26e-05/0.2717, allocations: 8.75 kB / 332.4 MB, free: 13 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000107/0.2718, allocations: 44.75 kB / 332.5 MB, free: 12.97 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003868/0.2722, allocations: 304 kB / 332.7 MB, free: 12.67 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.514e-05/0.2722, allocations: 26.91 kB / 332.8 MB, free: 12.66 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.942e-05/0.2723, allocations: 33.22 kB / 332.8 MB, free: 12.64 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009157/0.2733, allocations: 447.8 kB / 333.2 MB, free: 12.38 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.062e-05/0.2733, allocations: 4.875 kB / 333.2 MB, free: 12.38 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.356e-05/0.2733, allocations: 11.5 kB / 333.3 MB, free: 12.37 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.086e-05/0.2734, allocations: 7.969 kB / 333.3 MB, free: 12.37 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009589/0.2743, allocations: 479.3 kB / 333.7 MB, free: 12.09 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002282/0.2766, allocations: 1.289 MB / 335 MB, free: 10.72 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008269/0.2775, allocations: 377.2 kB / 335.4 MB, free: 10.34 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004565/0.2779, allocations: 245.5 kB / 335.6 MB, free: 10.1 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.784e-05/0.278, allocations: 8.375 kB / 335.6 MB, free: 10.09 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.503e-05/0.2781, allocations: 38.94 kB / 335.7 MB, free: 10.05 MB / 270.1 MB Notification: Performance of pre-optimization done (n=45): time 2.665e-06/0.2781, allocations: 0 / 335.7 MB, free: 10.05 MB / 270.1 MB Notification: Performance of matching and sorting (n=49): time 0.005303/0.2834, allocations: 2.384 MB / 338.1 MB, free: 7.531 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.772e-05/0.2835, allocations: 59.84 kB / 338.1 MB, free: 7.461 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003007/0.2838, allocations: 246.6 kB / 338.4 MB, free: 7.215 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 5.574e-05/0.2838, allocations: 45.64 kB / 338.4 MB, free: 7.164 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001417/0.284, allocations: 168.6 kB / 338.6 MB, free: 6.996 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001716/0.2842, allocations: 169.7 kB / 338.7 MB, free: 6.828 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.023e-05/0.2842, allocations: 12 kB / 338.7 MB, free: 6.816 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001475/0.2844, allocations: 342.8 kB / 339.1 MB, free: 6.473 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000527/0.2849, allocations: 241 kB / 339.3 MB, free: 6.234 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005789/0.2855, allocations: 307.2 kB / 339.6 MB, free: 5.918 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004452/0.286, allocations: 198.1 kB / 339.8 MB, free: 5.727 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.286, allocations: 0 / 339.8 MB, free: 5.727 MB / 270.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001575/0.2876, allocations: 0.7743 MB / 340.6 MB, free: 4.934 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.096e-05/0.2876, allocations: 8 kB / 340.6 MB, free: 4.926 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.655e-06/0.2876, allocations: 0 / 340.6 MB, free: 4.926 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001144/0.2887, allocations: 0.5413 MB / 341.1 MB, free: 4.375 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003346/0.2891, allocations: 79.89 kB / 341.2 MB, free: 4.297 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003123/0.2922, allocations: 3.463 MB / 344.7 MB, free: 0.5469 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005376/0.2928, allocations: 100 kB / 344.8 MB, free: 460 kB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.214e-05/0.2929, allocations: 20 kB / 344.8 MB, free: 440 kB / 270.1 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.0002324/0.2931, allocations: 173.6 kB / 345 MB, free: 256 kB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.265e-05/0.2932, allocations: 39.48 kB / 345 MB, free: 216 kB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001568/0.2948, allocations: 0.7326 MB / 345.7 MB, free: 15.46 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.713e-06/0.2948, allocations: 4 kB / 345.7 MB, free: 15.46 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.408e-06/0.2948, allocations: 0 / 345.7 MB, free: 15.46 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.728e-06/0.2948, allocations: 3.984 kB / 345.7 MB, free: 15.46 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002281/0.2971, allocations: 1.271 MB / 347 MB, free: 14.12 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.562e-06/0.2971, allocations: 0 / 347 MB, free: 14.12 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002792/0.2974, allocations: 59.91 kB / 347.1 MB, free: 14.06 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001045/0.2985, allocations: 0.5372 MB / 347.6 MB, free: 13.51 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.136e-05/0.2985, allocations: 15.98 kB / 347.6 MB, free: 13.5 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002802/0.3013, allocations: 3.436 MB / 351.1 MB, free: 9.766 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.355e-06/0.3013, allocations: 0 / 351.1 MB, free: 9.766 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001962/0.3033, allocations: 1.051 MB / 352.1 MB, free: 8.688 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002186/0.3035, allocations: 156.7 kB / 352.3 MB, free: 8.516 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.02e-05/0.3036, allocations: 19.95 kB / 352.3 MB, free: 8.496 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004692/0.3041, allocations: 99.91 kB / 352.4 MB, free: 8.398 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002127/0.3043, allocations: 104.2 kB / 352.5 MB, free: 8.297 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.264e-05/0.3044, allocations: 19.98 kB / 352.5 MB, free: 8.277 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.000202/0.3046, allocations: 182 kB / 352.7 MB, free: 8.102 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3046, allocations: 0 / 352.7 MB, free: 8.102 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0005562/0.3052, allocations: 128 kB / 352.8 MB, free: 7.977 MB / 286.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 (clutch.mode,clutch.startBackward,brake.mode,brake.startBackward,brake.startForward,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.0002854/0.3055, allocations: 147 kB / 352.9 MB, free: 7.824 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001618/0.3071, allocations: 0.8138 MB / 353.8 MB, free: 6.984 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 6.833e-06/0.3071, allocations: 8 kB / 353.8 MB, free: 6.977 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009498/0.3081, allocations: 0.5332 MB / 354.3 MB, free: 6.414 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005633/0.3087, allocations: 56.53 kB / 354.4 MB, free: 6.359 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002206/0.3109, allocations: 1.168 MB / 355.5 MB, free: 5.168 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00041/0.3113, allocations: 0.8035 MB / 356.3 MB, free: 4.336 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001677/0.3115, allocations: 27.3 kB / 356.4 MB, free: 4.305 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.512e-05/0.3116, allocations: 27.42 kB / 356.4 MB, free: 4.277 MB / 286.1 MB Notification: Performance of SimCode: time 8.12e-07/0.3116, allocations: 4 kB / 356.4 MB, free: 4.273 MB / 286.1 MB Notification: Performance of Templates: time 0.01638/0.328, allocations: 9.007 MB / 365.4 MB, free: 11.26 MB / 302.1 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)