Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.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.1_Modelica.Mechanics.Rotational.Examples.SimpleGearShift") translateModel(Modelica.Mechanics.Rotational.Examples.SimpleGearShift,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="Modelica_3.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.001456/0.001456, allocations: 100.1 kB / 15.05 MB, free: 1.105 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.002062/0.002062, allocations: 177.3 kB / 15.95 MB, free: 216 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.61/1.61, allocations: 205.4 MB / 222.1 MB, free: 5.664 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.0004533/0.0004534, allocations: 8 kB / 278.9 MB, free: 12.85 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2484/0.2489, allocations: 47.59 MB / 326.4 MB, free: 1.621 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.002466/0.2514, allocations: 2.268 MB / 328.7 MB, free: 15.86 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001739/0.2531, allocations: 0.9197 MB / 329.6 MB, free: 15.12 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001958/0.2534, allocations: 9.156 kB / 329.6 MB, free: 15.11 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001536/0.2535, allocations: 39 kB / 329.7 MB, free: 15.08 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003353/0.2539, allocations: 128.1 kB / 329.8 MB, free: 14.98 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004575/0.2543, allocations: 163.4 kB / 330 MB, free: 14.84 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004667/0.2548, allocations: 351.5 kB / 330.3 MB, free: 14.62 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001987/0.255, allocations: 86.3 kB / 330.4 MB, free: 14.56 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002788/0.2553, allocations: 215.2 kB / 330.6 MB, free: 14.43 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003128/0.2556, allocations: 233.9 kB / 330.8 MB, free: 14.29 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 5.272e-05/0.2557, allocations: 24.16 kB / 330.9 MB, free: 14.29 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001739/0.2559, allocations: 65.62 kB / 330.9 MB, free: 14.27 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001015/0.256, allocations: 92.89 kB / 331 MB, free: 14.19 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 8.215e-05/0.2561, allocations: 85.98 kB / 331.1 MB, free: 14.13 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003788/0.2565, allocations: 377.5 kB / 331.5 MB, free: 13.86 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.445e-06/0.2565, allocations: 5.031 kB / 331.5 MB, free: 13.86 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.2565, allocations: 0 / 331.5 MB, free: 13.86 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.049e-05/0.2565, allocations: 0 / 331.5 MB, free: 13.86 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.001318/0.2578, allocations: 0.6831 MB / 332.1 MB, free: 13.29 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.578e-05/0.2579, allocations: 9.469 kB / 332.2 MB, free: 13.29 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.574e-05/0.258, allocations: 48.44 kB / 332.2 MB, free: 13.27 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003636/0.2583, allocations: 300 kB / 332.5 MB, free: 12.97 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.025e-05/0.2584, allocations: 26.34 kB / 332.5 MB, free: 12.95 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.676e-05/0.2585, allocations: 34.59 kB / 332.6 MB, free: 12.94 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008598/0.2593, allocations: 444.3 kB / 333 MB, free: 12.68 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.27e-05/0.2594, allocations: 9.359 kB / 333 MB, free: 12.67 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.836e-05/0.2594, allocations: 16 kB / 333 MB, free: 12.66 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.277e-05/0.2595, allocations: 8.25 kB / 333 MB, free: 12.66 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009617/0.2604, allocations: 464.4 kB / 333.5 MB, free: 12.46 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002275/0.2627, allocations: 1.295 MB / 334.8 MB, free: 11.14 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00083/0.2635, allocations: 377.2 kB / 335.1 MB, free: 10.77 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.082e-05/0.2636, allocations: 4.375 kB / 335.1 MB, free: 10.76 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.74e-05/0.2636, allocations: 34.94 kB / 335.2 MB, free: 10.72 MB / 270.1 MB Notification: Performance of pre-optimization done (n=45): time 1.784e-06/0.2637, allocations: 0 / 335.2 MB, free: 10.72 MB / 270.1 MB Notification: Performance of matching and sorting (n=49): time 0.005208/0.2689, allocations: 2.38 MB / 337.6 MB, free: 8.207 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.656e-05/0.2689, allocations: 59.84 kB / 337.6 MB, free: 8.137 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002553/0.2692, allocations: 242.6 kB / 337.9 MB, free: 7.895 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 5.723e-05/0.2693, allocations: 49.69 kB / 337.9 MB, free: 7.84 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001499/0.2694, allocations: 164.6 kB / 338.1 MB, free: 7.676 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001447/0.2696, allocations: 165.8 kB / 338.2 MB, free: 7.512 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.376e-05/0.2696, allocations: 12 kB / 338.2 MB, free: 7.5 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001537/0.2698, allocations: 342.8 kB / 338.6 MB, free: 7.156 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004734/0.2703, allocations: 237 kB / 338.8 MB, free: 6.922 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005273/0.2708, allocations: 311.1 kB / 339.1 MB, free: 6.602 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004102/0.2712, allocations: 198.1 kB / 339.3 MB, free: 6.41 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.2712, allocations: 0 / 339.3 MB, free: 6.41 MB / 270.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001627/0.2729, allocations: 0.7704 MB / 340.1 MB, free: 5.621 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.894e-05/0.2729, allocations: 4 kB / 340.1 MB, free: 5.617 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.678e-06/0.2729, allocations: 7.984 kB / 340.1 MB, free: 5.609 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001135/0.2741, allocations: 0.5452 MB / 340.6 MB, free: 5.055 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000293/0.2744, allocations: 71.91 kB / 340.7 MB, free: 4.984 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002954/0.2773, allocations: 3.47 MB / 344.2 MB, free: 1.227 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005849/0.2779, allocations: 108.2 kB / 344.3 MB, free: 1.121 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.758e-05/0.278, allocations: 20 kB / 344.3 MB, free: 1.102 MB / 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.0002612/0.2783, allocations: 169.6 kB / 344.5 MB, free: 0.9258 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.424e-05/0.2783, allocations: 43.47 kB / 344.5 MB, free: 0.8828 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001504/0.2799, allocations: 0.7365 MB / 345.2 MB, free: 136 kB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.75e-06/0.2799, allocations: 4 kB / 345.2 MB, free: 132 kB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.376e-06/0.2799, allocations: 0 / 345.2 MB, free: 132 kB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.703e-06/0.2799, allocations: 3.984 kB / 345.2 MB, free: 128 kB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002155/0.2821, allocations: 1.263 MB / 346.5 MB, free: 14.79 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.58e-06/0.2821, allocations: 4 kB / 346.5 MB, free: 14.79 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000334/0.2824, allocations: 63.84 kB / 346.6 MB, free: 14.73 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000937/0.2834, allocations: 0.5255 MB / 347.1 MB, free: 14.19 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.297e-05/0.2834, allocations: 19.97 kB / 347.1 MB, free: 14.17 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002771/0.2862, allocations: 3.448 MB / 350.6 MB, free: 10.43 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.2862, allocations: 4.031 kB / 350.6 MB, free: 10.43 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00185/0.2881, allocations: 1.048 MB / 351.6 MB, free: 9.352 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002054/0.2883, allocations: 164.7 kB / 351.8 MB, free: 9.172 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.496e-05/0.2884, allocations: 15.95 kB / 351.8 MB, free: 9.156 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004938/0.2889, allocations: 103.9 kB / 351.9 MB, free: 9.055 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002026/0.2891, allocations: 100.2 kB / 352 MB, free: 8.957 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.964e-05/0.2891, allocations: 23.97 kB / 352 MB, free: 8.934 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001626/0.2893, allocations: 178 kB / 352.2 MB, free: 8.762 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2893, allocations: 0 / 352.2 MB, free: 8.762 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.000545/0.2899, allocations: 124 kB / 352.3 MB, free: 8.641 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.000236/0.2901, allocations: 151 kB / 352.5 MB, free: 8.484 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001622/0.2917, allocations: 0.8098 MB / 353.3 MB, free: 7.648 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.2918, allocations: 4 kB / 353.3 MB, free: 7.645 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008683/0.2926, allocations: 0.5411 MB / 353.8 MB, free: 7.074 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004233/0.2931, allocations: 48.47 kB / 353.9 MB, free: 7.027 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002038/0.2951, allocations: 1.172 MB / 355 MB, free: 5.832 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003445/0.2955, allocations: 0.7996 MB / 355.8 MB, free: 5.004 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001361/0.2956, allocations: 35.28 kB / 355.9 MB, free: 4.965 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.854e-05/0.2957, allocations: 31.42 kB / 355.9 MB, free: 4.934 MB / 286.1 MB Notification: Performance of SimCode: time 7.02e-07/0.2957, allocations: 0 / 355.9 MB, free: 4.934 MB / 286.1 MB Notification: Performance of Templates: time 0.01338/0.3091, allocations: 8.991 MB / 364.9 MB, free: 11.93 MB / 302.1 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.makefile Environment - environmentSimulation: (rm -f Modelica_3.1_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; mkfifo Modelica_3.1_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe >> ../files/Modelica_3.1_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.sim & ./Modelica_3.1_Modelica.Mechanics.Rotational.Examples.SimpleGearShift -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe 2>&1) Environment - environmentSimulation: