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.0009086/0.0009085, allocations: 99.38 kB / 15.37 MB, free: 0.707 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.001399/0.001399, allocations: 181.8 kB / 16.28 MB, free: 6.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.713/1.713, allocations: 205.4 MB / 222.5 MB, free: 5.555 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.0005129/0.000513, allocations: 8 kB / 279.5 MB, free: 12.51 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2682/0.2687, allocations: 47.58 MB / 327 MB, free: 1.422 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.003025/0.2718, allocations: 2.475 MB / 329.5 MB, free: 15.47 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.00209/0.2739, allocations: 0.9323 MB / 330.4 MB, free: 14.71 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001998/0.2742, allocations: 4.875 kB / 330.4 MB, free: 14.71 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000203/0.2744, allocations: 43.8 kB / 330.5 MB, free: 14.68 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002444/0.2746, allocations: 95.44 kB / 330.6 MB, free: 14.6 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004431/0.2751, allocations: 181.2 kB / 330.8 MB, free: 14.45 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005712/0.2757, allocations: 0.5356 MB / 331.3 MB, free: 14.14 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002557/0.2759, allocations: 99.42 kB / 331.4 MB, free: 14.08 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003428/0.2763, allocations: 221.1 kB / 331.6 MB, free: 13.96 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003529/0.2767, allocations: 247.2 kB / 331.8 MB, free: 13.8 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 6.655e-05/0.2767, allocations: 27.36 kB / 331.9 MB, free: 13.8 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001793/0.2769, allocations: 76.02 kB / 331.9 MB, free: 13.77 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000119/0.277, allocations: 89.17 kB / 332 MB, free: 13.7 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002155/0.2773, allocations: 220.2 kB / 332.2 MB, free: 13.53 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000518/0.2778, allocations: 0.491 MB / 332.7 MB, free: 13.17 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.2778, allocations: 0 / 332.7 MB, free: 13.17 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.204e-06/0.2778, allocations: 0 / 332.7 MB, free: 13.17 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.326e-05/0.2778, allocations: 1.094 kB / 332.7 MB, free: 13.17 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.001417/0.2793, allocations: 0.688 MB / 333.4 MB, free: 12.6 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.623e-05/0.2793, allocations: 9.188 kB / 333.4 MB, free: 12.6 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001067/0.2794, allocations: 44.91 kB / 333.5 MB, free: 12.57 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003904/0.2798, allocations: 305.9 kB / 333.8 MB, free: 12.27 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.431e-05/0.2799, allocations: 31.44 kB / 333.8 MB, free: 12.25 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.254e-05/0.28, allocations: 34.16 kB / 333.8 MB, free: 12.24 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009357/0.2809, allocations: 450.3 kB / 334.3 MB, free: 11.98 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.641e-05/0.281, allocations: 5.156 kB / 334.3 MB, free: 11.97 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.748e-05/0.281, allocations: 11.34 kB / 334.3 MB, free: 11.96 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.19e-05/0.281, allocations: 7.781 kB / 334.3 MB, free: 11.96 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009379/0.282, allocations: 476.4 kB / 334.8 MB, free: 11.52 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002308/0.2843, allocations: 1.296 MB / 336.1 MB, free: 10.14 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008273/0.2852, allocations: 380.4 kB / 336.4 MB, free: 9.766 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004735/0.2856, allocations: 253.2 kB / 336.7 MB, free: 9.516 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.173e-05/0.2857, allocations: 12.38 kB / 336.7 MB, free: 9.504 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.464e-05/0.2857, allocations: 30.94 kB / 336.7 MB, free: 9.465 MB / 270.1 MB Notification: Performance of pre-optimization done (n=45): time 1.863e-06/0.2857, allocations: 0 / 336.7 MB, free: 9.465 MB / 270.1 MB Notification: Performance of matching and sorting (n=49): time 0.005586/0.2913, allocations: 2.385 MB / 339.1 MB, free: 6.945 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.74e-05/0.2914, allocations: 59.84 kB / 339.2 MB, free: 6.875 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002905/0.2917, allocations: 246.6 kB / 339.4 MB, free: 6.625 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 6.005e-05/0.2918, allocations: 45.69 kB / 339.5 MB, free: 6.574 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001358/0.2919, allocations: 172.6 kB / 339.6 MB, free: 6.402 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001485/0.2921, allocations: 161.7 kB / 339.8 MB, free: 6.242 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.527e-05/0.2922, allocations: 53.69 kB / 339.8 MB, free: 6.184 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001604/0.2924, allocations: 342.8 kB / 340.2 MB, free: 5.84 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005096/0.2929, allocations: 241 kB / 340.4 MB, free: 5.605 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005531/0.2934, allocations: 311.1 kB / 340.7 MB, free: 5.281 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008279/0.2943, allocations: 427.7 kB / 341.1 MB, free: 4.848 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.2943, allocations: 0 / 341.1 MB, free: 4.848 MB / 270.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001756/0.2961, allocations: 0.7743 MB / 341.9 MB, free: 4.055 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.393e-05/0.2961, allocations: 16.06 kB / 341.9 MB, free: 4.039 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.257e-06/0.2961, allocations: 0 / 341.9 MB, free: 4.039 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001104/0.2972, allocations: 0.5412 MB / 342.5 MB, free: 3.488 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002929/0.2975, allocations: 75.89 kB / 342.5 MB, free: 3.414 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003187/0.3007, allocations: 3.474 MB / 346 MB, free: 15.65 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006196/0.3014, allocations: 100 kB / 346.1 MB, free: 15.55 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.538e-05/0.3014, allocations: 16 kB / 346.1 MB, free: 15.54 MB / 286.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 (brake.mode,$PRE.brake.mode,brake.locked,brake.startBackward,$PRE.brake.startBackward,brake.startForward,$PRE.brake.startForward,brake.free,clutch.mode,$PRE.clutch.mode,clutch.locked,clutch.startBackward,$PRE.clutch.startBackward,clutch.startForward,$PRE.clutch.startForward,clutch.free) * 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 (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,16)} Notification: Performance of prepare postOptimizeDAE: time 0.0003065/0.3017, allocations: 178.1 kB / 346.3 MB, free: 15.35 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.483e-05/0.3018, allocations: 35.62 kB / 346.3 MB, free: 15.32 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00166/0.3035, allocations: 0.7364 MB / 347.1 MB, free: 14.57 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.302e-06/0.3035, allocations: 4 kB / 347.1 MB, free: 14.56 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.859e-06/0.3035, allocations: 0 / 347.1 MB, free: 14.56 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.247e-05/0.3035, allocations: 11.92 kB / 347.1 MB, free: 14.55 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002376/0.3059, allocations: 1.271 MB / 348.4 MB, free: 13.21 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.148e-06/0.3059, allocations: 0 / 348.4 MB, free: 13.21 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003151/0.3063, allocations: 63.91 kB / 348.4 MB, free: 13.15 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001028/0.3073, allocations: 0.5256 MB / 348.9 MB, free: 12.62 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.703e-05/0.3074, allocations: 19.97 kB / 349 MB, free: 12.6 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003173/0.3105, allocations: 3.44 MB / 352.4 MB, free: 8.867 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.853e-06/0.3106, allocations: 0 / 352.4 MB, free: 8.867 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002065/0.3127, allocations: 1.051 MB / 353.5 MB, free: 7.789 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002728/0.3129, allocations: 160.7 kB / 353.6 MB, free: 7.613 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.123e-05/0.313, allocations: 20 kB / 353.6 MB, free: 7.594 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005106/0.3136, allocations: 99.84 kB / 353.7 MB, free: 7.496 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000225/0.3138, allocations: 88.22 kB / 353.8 MB, free: 7.41 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.616e-05/0.3138, allocations: 23.97 kB / 353.8 MB, free: 7.387 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002242/0.3141, allocations: 178 kB / 354 MB, free: 7.211 MB / 286.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.3141, allocations: 4 kB / 354 MB, free: 7.207 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0006287/0.3147, allocations: 132 kB / 354.1 MB, free: 7.078 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 (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,16)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003115/0.315, allocations: 123.2 kB / 354.3 MB, free: 6.949 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001665/0.3167, allocations: 0.8214 MB / 355.1 MB, free: 6.105 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.527e-06/0.3167, allocations: 4 kB / 355.1 MB, free: 6.102 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009275/0.3177, allocations: 0.5489 MB / 355.6 MB, free: 5.523 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005838/0.3183, allocations: 64.42 kB / 355.7 MB, free: 5.461 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002146/0.3204, allocations: 1.207 MB / 356.9 MB, free: 4.23 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004028/0.3208, allocations: 0.7996 MB / 357.7 MB, free: 3.402 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001525/0.321, allocations: 31.28 kB / 357.7 MB, free: 3.367 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.161e-05/0.3211, allocations: 31.42 kB / 357.8 MB, free: 3.336 MB / 286.1 MB Notification: Performance of SimCode: time 6.81e-07/0.3211, allocations: 0 / 357.8 MB, free: 3.336 MB / 286.1 MB Notification: Performance of Templates: time 0.01616/0.3373, allocations: 9.273 MB / 367 MB, free: 10.05 MB / 302.1 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.makefile (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)