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.001604/0.001604, allocations: 99.47 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.001926/0.001927, 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.609/1.609, allocations: 205.4 MB / 222.1 MB, free: 5.887 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.0004222/0.0004223, allocations: 8 kB / 278.9 MB, free: 13.07 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2284/0.2289, allocations: 47.58 MB / 326.4 MB, free: 1.602 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.002226/0.2311, allocations: 2.268 MB / 328.7 MB, free: 15.84 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001436/0.2326, allocations: 0.9205 MB / 329.6 MB, free: 15.1 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001485/0.2327, allocations: 11.75 kB / 329.6 MB, free: 15.09 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001302/0.2329, allocations: 44.08 kB / 329.7 MB, free: 15.05 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002605/0.2331, allocations: 119.1 kB / 329.8 MB, free: 14.96 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003749/0.2335, allocations: 163.7 kB / 330 MB, free: 14.82 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003941/0.2339, allocations: 352.2 kB / 330.3 MB, free: 14.6 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001897/0.2341, allocations: 90.83 kB / 330.4 MB, free: 14.54 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002583/0.2344, allocations: 210.6 kB / 330.6 MB, free: 14.41 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002923/0.2347, allocations: 242.2 kB / 330.8 MB, free: 14.26 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 5.432e-05/0.2348, allocations: 22.53 kB / 330.9 MB, free: 14.26 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001618/0.2349, allocations: 58.62 kB / 330.9 MB, free: 14.25 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001016/0.235, allocations: 92.27 kB / 331 MB, free: 14.17 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 8.279e-05/0.2351, allocations: 90.56 kB / 331.1 MB, free: 14.11 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003884/0.2355, allocations: 374.2 kB / 331.5 MB, free: 13.84 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.755e-06/0.2355, allocations: 0 / 331.5 MB, free: 13.84 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.204e-06/0.2356, allocations: 5.156 kB / 331.5 MB, free: 13.84 MB / 270.1 MB Notification: Performance of Transformations before backend: time 5.77e-06/0.2356, allocations: 0 / 331.5 MB, free: 13.84 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.001322/0.2369, allocations: 0.683 MB / 332.2 MB, free: 13.27 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.286e-05/0.2369, allocations: 8.656 kB / 332.2 MB, free: 13.27 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001102/0.2371, allocations: 52.83 kB / 332.2 MB, free: 13.24 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003826/0.2375, allocations: 299.6 kB / 332.5 MB, free: 12.95 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.605e-05/0.2375, allocations: 27.53 kB / 332.5 MB, free: 12.93 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.966e-05/0.2376, allocations: 37.8 kB / 332.6 MB, free: 12.91 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008823/0.2385, allocations: 444.5 kB / 333 MB, free: 12.65 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.348e-05/0.2385, allocations: 6.156 kB / 333 MB, free: 12.64 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.71e-05/0.2386, allocations: 9.938 kB / 333 MB, free: 12.64 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.122e-05/0.2386, allocations: 8.438 kB / 333 MB, free: 12.64 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009861/0.2396, allocations: 473.8 kB / 333.5 MB, free: 12.43 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002358/0.242, allocations: 1.287 MB / 334.8 MB, free: 11.16 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008075/0.2428, allocations: 381.2 kB / 335.1 MB, free: 10.78 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.011e-05/0.2428, allocations: 8.359 kB / 335.2 MB, free: 10.77 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.757e-05/0.2429, allocations: 34.94 kB / 335.2 MB, free: 10.73 MB / 270.1 MB Notification: Performance of pre-optimization done (n=45): time 1.743e-06/0.2429, allocations: 0 / 335.2 MB, free: 10.73 MB / 270.1 MB Notification: Performance of matching and sorting (n=49): time 0.005278/0.2482, allocations: 2.372 MB / 337.6 MB, free: 8.227 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.201e-05/0.2482, allocations: 67.83 kB / 337.6 MB, free: 8.148 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000253/0.2485, allocations: 242.6 kB / 337.9 MB, free: 7.906 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 5.681e-05/0.2485, allocations: 41.7 kB / 337.9 MB, free: 7.859 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001056/0.2487, allocations: 172.6 kB / 338.1 MB, free: 7.688 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001436/0.2488, allocations: 165.8 kB / 338.2 MB, free: 7.523 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.485e-05/0.2488, allocations: 12 kB / 338.2 MB, free: 7.512 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001351/0.249, allocations: 338.8 kB / 338.6 MB, free: 7.172 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004829/0.2495, allocations: 240.9 kB / 338.8 MB, free: 6.934 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005259/0.25, allocations: 311.1 kB / 339.1 MB, free: 6.613 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004263/0.2505, allocations: 202.1 kB / 339.3 MB, free: 6.418 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.2505, allocations: 0 / 339.3 MB, free: 6.418 MB / 270.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001579/0.252, allocations: 0.7665 MB / 340.1 MB, free: 5.633 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.983e-05/0.2521, allocations: 4 kB / 340.1 MB, free: 5.629 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.496e-06/0.2521, allocations: 4 kB / 340.1 MB, free: 5.625 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001072/0.2532, allocations: 0.5414 MB / 340.6 MB, free: 5.074 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000299/0.2535, allocations: 75.89 kB / 340.7 MB, free: 5 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002697/0.2562, allocations: 3.478 MB / 344.2 MB, free: 1.234 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005544/0.2568, allocations: 104.2 kB / 344.3 MB, free: 1.133 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.9e-05/0.2568, allocations: 23.98 kB / 344.3 MB, free: 1.109 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.0002451/0.2571, allocations: 161.6 kB / 344.5 MB, free: 0.9414 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.838e-05/0.2572, allocations: 39.48 kB / 344.5 MB, free: 0.9023 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001499/0.2587, allocations: 0.7365 MB / 345.2 MB, free: 156 kB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.454e-06/0.2587, allocations: 4 kB / 345.2 MB, free: 152 kB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.337e-06/0.2587, allocations: 0 / 345.2 MB, free: 152 kB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.305e-06/0.2587, allocations: 3.984 kB / 345.3 MB, free: 148 kB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002245/0.261, allocations: 1.263 MB / 346.5 MB, free: 14.81 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.674e-06/0.261, allocations: 0 / 346.5 MB, free: 14.81 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002747/0.2613, allocations: 67.84 kB / 346.6 MB, free: 14.75 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009781/0.2622, allocations: 0.5332 MB / 347.1 MB, free: 14.2 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.29e-05/0.2623, allocations: 15.98 kB / 347.1 MB, free: 14.19 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002714/0.265, allocations: 3.444 MB / 350.6 MB, free: 10.45 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.265, allocations: 4.062 kB / 350.6 MB, free: 10.45 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001988/0.267, allocations: 1.047 MB / 351.6 MB, free: 9.371 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002459/0.2673, allocations: 152.7 kB / 351.8 MB, free: 9.203 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.921e-05/0.2674, allocations: 23.95 kB / 351.8 MB, free: 9.18 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005122/0.2679, allocations: 103.9 kB / 351.9 MB, free: 9.078 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000206/0.2681, allocations: 104.2 kB / 352 MB, free: 8.977 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.034e-05/0.2682, allocations: 19.98 kB / 352 MB, free: 8.957 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.000175/0.2684, allocations: 178 kB / 352.2 MB, free: 8.785 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2684, allocations: 0 / 352.2 MB, free: 8.785 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0005539/0.2689, allocations: 128 kB / 352.3 MB, free: 8.66 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.0002756/0.2692, allocations: 143.1 kB / 352.5 MB, free: 8.512 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001594/0.2708, allocations: 0.8137 MB / 353.3 MB, free: 7.672 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.2708, allocations: 0 / 353.3 MB, free: 7.672 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000958/0.2718, allocations: 0.5411 MB / 353.8 MB, free: 7.102 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004497/0.2723, allocations: 48.47 kB / 353.9 MB, free: 7.055 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002004/0.2743, allocations: 1.164 MB / 355 MB, free: 5.867 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003658/0.2747, allocations: 0.8074 MB / 355.8 MB, free: 5.031 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001368/0.2748, allocations: 43.22 kB / 355.9 MB, free: 4.984 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.14e-05/0.2749, allocations: 23.44 kB / 355.9 MB, free: 4.961 MB / 286.1 MB Notification: Performance of SimCode: time 4.51e-07/0.2749, allocations: 0 / 355.9 MB, free: 4.961 MB / 286.1 MB Notification: Performance of Templates: time 0.01418/0.2891, allocations: 8.995 MB / 364.9 MB, free: 11.96 MB / 302.1 MB make -j1 -f Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: