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.001179/0.001179, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.00121/0.00121, allocations: 188.1 kB / 16.13 MB, free: 6.66 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.595/1.595, allocations: 205.1 MB / 222 MB, free: 4.766 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.001149/0.001149, allocations: 59.92 kB / 278 MB, free: 12.75 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2876/0.2887, allocations: 46.62 MB / 324.7 MB, free: 1.949 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.00413/0.2929, allocations: 2.844 MB / 327.5 MB, free: 15.71 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001916/0.2949, allocations: 0.9447 MB / 328.5 MB, free: 14.95 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002036/0.2951, allocations: 4.281 kB / 328.5 MB, free: 14.95 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002321/0.2954, allocations: 40.83 kB / 328.5 MB, free: 14.91 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002612/0.2956, allocations: 94.92 kB / 328.6 MB, free: 14.84 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000472/0.2961, allocations: 186.2 kB / 328.8 MB, free: 14.68 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005669/0.2967, allocations: 0.5303 MB / 329.3 MB, free: 14.38 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002387/0.297, allocations: 103.6 kB / 329.4 MB, free: 14.31 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003052/0.2973, allocations: 227.8 kB / 329.6 MB, free: 14.19 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003544/0.2976, allocations: 264.1 kB / 329.9 MB, free: 14.02 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 7.618e-05/0.2977, allocations: 26.41 kB / 329.9 MB, free: 14.02 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001874/0.2979, allocations: 80.42 kB / 330 MB, free: 13.98 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001364/0.2981, allocations: 93.2 kB / 330.1 MB, free: 13.91 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002469/0.2983, allocations: 195.3 kB / 330.3 MB, free: 13.78 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005308/0.2988, allocations: 0.5016 MB / 330.8 MB, free: 13.4 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.444e-06/0.2989, allocations: 1.156 kB / 330.8 MB, free: 13.4 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.173e-06/0.2989, allocations: 0 / 330.8 MB, free: 13.4 MB / 270.1 MB Notification: Performance of Transformations before backend: time 9.467e-06/0.2989, allocations: 4 kB / 330.8 MB, free: 13.4 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.001552/0.3004, allocations: 0.7315 MB / 331.5 MB, free: 12.78 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.264e-05/0.3005, allocations: 10.03 kB / 331.5 MB, free: 12.78 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001208/0.3006, allocations: 49.59 kB / 331.6 MB, free: 12.75 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000445/0.3011, allocations: 304.2 kB / 331.9 MB, free: 12.45 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.613e-05/0.3011, allocations: 27.5 kB / 331.9 MB, free: 12.44 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.083e-05/0.3012, allocations: 35.75 kB / 331.9 MB, free: 12.43 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009382/0.3022, allocations: 442.6 kB / 332.4 MB, free: 12.16 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.709e-05/0.3022, allocations: 5.969 kB / 332.4 MB, free: 12.16 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.99e-05/0.3023, allocations: 18.56 kB / 332.4 MB, free: 12.14 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.032e-05/0.3023, allocations: 7.938 kB / 332.4 MB, free: 12.14 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009602/0.3033, allocations: 460.1 kB / 332.8 MB, free: 11.87 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002288/0.3056, allocations: 1.265 MB / 334.1 MB, free: 10.53 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000836/0.3064, allocations: 368.2 kB / 334.5 MB, free: 10.16 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004639/0.3069, allocations: 249.2 kB / 334.7 MB, free: 9.914 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.852e-05/0.3069, allocations: 12.36 kB / 334.7 MB, free: 9.902 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.86e-05/0.307, allocations: 38.94 kB / 334.8 MB, free: 9.855 MB / 270.1 MB Notification: Performance of pre-optimization done (n=45): time 1.713e-06/0.307, allocations: 0 / 334.8 MB, free: 9.855 MB / 270.1 MB Notification: Performance of matching and sorting (n=49): time 0.005441/0.3124, allocations: 2.26 MB / 337 MB, free: 7.461 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.962e-05/0.3125, allocations: 55.84 kB / 337.1 MB, free: 7.395 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003214/0.3129, allocations: 250.6 kB / 337.3 MB, free: 7.141 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 5.24e-05/0.3129, allocations: 37.7 kB / 337.4 MB, free: 7.098 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001518/0.3131, allocations: 164.7 kB / 337.5 MB, free: 6.934 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001664/0.3133, allocations: 173.6 kB / 337.7 MB, free: 6.762 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002213/0.3135, allocations: 106.1 kB / 337.8 MB, free: 6.652 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001572/0.3137, allocations: 342.8 kB / 338.1 MB, free: 6.309 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005315/0.3142, allocations: 233 kB / 338.4 MB, free: 6.082 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005462/0.3148, allocations: 299.2 kB / 338.6 MB, free: 5.77 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007865/0.3156, allocations: 415.7 kB / 339.1 MB, free: 5.344 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.3156, allocations: 0 / 339.1 MB, free: 5.344 MB / 270.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001625/0.3172, allocations: 0.7625 MB / 339.8 MB, free: 4.566 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.977e-05/0.3172, allocations: 4 kB / 339.8 MB, free: 4.562 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.002e-05/0.3173, allocations: 4 kB / 339.8 MB, free: 4.559 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001172/0.3184, allocations: 0.5452 MB / 340.4 MB, free: 4.004 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002961/0.3187, allocations: 71.91 kB / 340.4 MB, free: 3.934 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003204/0.322, allocations: 3.466 MB / 343.9 MB, free: 180 kB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005662/0.3225, allocations: 80.08 kB / 344 MB, free: 100 kB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.311e-05/0.3226, allocations: 19.94 kB / 344 MB, free: 80 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 (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.0003094/0.3229, allocations: 166.2 kB / 344.2 MB, free: 15.91 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001089/0.323, allocations: 35.61 kB / 344.2 MB, free: 15.87 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001693/0.3247, allocations: 0.7248 MB / 344.9 MB, free: 15.13 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.122e-06/0.3248, allocations: 4 kB / 344.9 MB, free: 15.13 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.709e-06/0.3248, allocations: 0 / 344.9 MB, free: 15.13 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.578e-06/0.3248, allocations: 11.92 kB / 344.9 MB, free: 15.12 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002383/0.3272, allocations: 1.255 MB / 346.2 MB, free: 13.8 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.048e-06/0.3272, allocations: 4 kB / 346.2 MB, free: 13.79 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002783/0.3275, allocations: 63.89 kB / 346.3 MB, free: 13.73 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001044/0.3285, allocations: 0.5255 MB / 346.8 MB, free: 13.2 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001016/0.3287, allocations: 19.97 kB / 346.8 MB, free: 13.18 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003068/0.3317, allocations: 3.424 MB / 350.2 MB, free: 9.461 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.378e-06/0.3318, allocations: 224 / 350.2 MB, free: 9.461 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001989/0.3338, allocations: 1.032 MB / 351.3 MB, free: 8.402 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002618/0.334, allocations: 160.7 kB / 351.4 MB, free: 8.227 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.892e-05/0.3341, allocations: 16 kB / 351.4 MB, free: 8.211 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005017/0.3346, allocations: 75.78 kB / 351.5 MB, free: 8.137 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002267/0.3349, allocations: 92.36 kB / 351.6 MB, free: 8.047 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.835e-05/0.3349, allocations: 19.97 kB / 351.6 MB, free: 8.027 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002182/0.3352, allocations: 182 kB / 351.8 MB, free: 7.848 MB / 286.1 MB Notification: Performance of sort global known variables: time 2e-07/0.3352, allocations: 4 kB / 351.8 MB, free: 7.844 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0006248/0.3358, allocations: 124 kB / 351.9 MB, free: 7.723 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.0003071/0.3361, allocations: 131.2 kB / 352.1 MB, free: 7.586 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001724/0.3378, allocations: 0.806 MB / 352.9 MB, free: 6.758 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.537e-06/0.3379, allocations: 7.875 kB / 352.9 MB, free: 6.75 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009497/0.3388, allocations: 0.5332 MB / 353.4 MB, free: 6.188 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006104/0.3394, allocations: 60.55 kB / 353.5 MB, free: 6.129 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002267/0.3417, allocations: 1.128 MB / 354.6 MB, free: 4.98 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004195/0.3422, allocations: 0.7996 MB / 355.4 MB, free: 4.148 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001828/0.3424, allocations: 35.28 kB / 355.4 MB, free: 4.113 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.249e-05/0.3424, allocations: 27.42 kB / 355.4 MB, free: 4.086 MB / 286.1 MB Notification: Performance of SimCode: time 7.32e-07/0.3425, allocations: 0 / 355.4 MB, free: 4.086 MB / 286.1 MB Notification: Performance of Templates: time 0.01825/0.3607, allocations: 9.355 MB / 364.8 MB, free: 10.72 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)