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/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+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/Complex 3.2.1+maint.om/package.mo): time 0.001339/0.001339, allocations: 171.5 kB / 7.638 MB, free: 1.418 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.279/1.279, allocations: 170.6 MB / 178.7 MB, free: 15.59 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001479/0.001479, allocations: 107.5 kB / 218 MB, free: 8.344 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 1.751e-05/1.753e-05, allocations: 4 kB / 262.2 MB, free: 26.41 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08138/0.08141, allocations: 38.77 MB / 301 MB, free: 3.633 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3144/0.3959, allocations: 69.94 MB / 370.9 MB, free: 14.5 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001928/0.3961, allocations: 71.53 kB / 371 MB, free: 14.47 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01856/0.4147, allocations: 6.454 MB / 377.4 MB, free: 8.969 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.513e-06/0.4147, allocations: 0 / 377.4 MB, free: 8.969 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.99e-05/0.4148, allocations: 8 kB / 377.5 MB, free: 8.961 MB / 266.7 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.001207/0.416, allocations: 0.663 MB / 378.1 MB, free: 8.273 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.483e-05/0.416, allocations: 8.031 kB / 378.1 MB, free: 8.266 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.3e-05/0.4161, allocations: 43.53 kB / 378.2 MB, free: 8.223 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003616/0.4165, allocations: 288.1 kB / 378.4 MB, free: 7.926 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.7e-05/0.4165, allocations: 12.75 kB / 378.5 MB, free: 7.914 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.825e-05/0.4166, allocations: 26.53 kB / 378.5 MB, free: 7.891 MB / 266.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006278/0.4173, allocations: 403.4 kB / 378.9 MB, free: 7.617 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005745/0.4178, allocations: 362.6 kB / 379.2 MB, free: 7.352 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.782e-05/0.4179, allocations: 0 / 379.2 MB, free: 7.352 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.009e-05/0.4179, allocations: 4 kB / 379.2 MB, free: 7.348 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.219e-05/0.4179, allocations: 11.98 kB / 379.2 MB, free: 7.336 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002232/0.4202, allocations: 1.229 MB / 380.5 MB, free: 6.289 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006094/0.4208, allocations: 331.5 kB / 380.8 MB, free: 6.066 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002964/0.4211, allocations: 207.2 kB / 381 MB, free: 5.941 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.184e-05/0.4212, allocations: 4.375 kB / 381 MB, free: 5.938 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.079e-05/0.4212, allocations: 42.25 kB / 381 MB, free: 5.891 MB / 266.7 MB Notification: Performance of pre-optimization done (n=45): time 1.773e-06/0.4212, allocations: 0 / 381 MB, free: 5.891 MB / 266.7 MB Notification: Performance of matching and sorting (n=49): time 0.003088/0.4243, allocations: 1.547 MB / 382.6 MB, free: 4.531 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.285e-05/0.4243, allocations: 59.78 kB / 382.7 MB, free: 4.461 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001882/0.4245, allocations: 209.3 kB / 382.9 MB, free: 4.277 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.261e-05/0.4246, allocations: 33.64 kB / 382.9 MB, free: 4.242 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001163/0.4247, allocations: 170.2 kB / 383.1 MB, free: 4.098 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001239/0.4249, allocations: 159.9 kB / 383.2 MB, free: 3.961 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.002e-05/0.4249, allocations: 0 / 383.2 MB, free: 3.961 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001251/0.425, allocations: 340.3 kB / 383.5 MB, free: 3.633 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002777/0.4253, allocations: 203.2 kB / 383.7 MB, free: 3.516 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003191/0.4256, allocations: 258.1 kB / 384 MB, free: 3.332 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000348/0.426, allocations: 165 kB / 384.2 MB, free: 3.215 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.462e-06/0.426, allocations: 0 / 384.2 MB, free: 3.215 MB / 266.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001567/0.4276, allocations: 0.8173 MB / 385 MB, free: 2.562 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.825e-05/0.4276, allocations: 4 kB / 385 MB, free: 2.559 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.985e-06/0.4276, allocations: 8.062 kB / 385 MB, free: 2.551 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009986/0.4286, allocations: 0.5555 MB / 385.5 MB, free: 2.09 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003059/0.4289, allocations: 78.7 kB / 385.6 MB, free: 2.016 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002699/0.4316, allocations: 3.411 MB / 389 MB, free: 14.6 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005051/0.4322, allocations: 100.1 kB / 389.1 MB, free: 14.5 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.134e-05/0.4322, allocations: 26.92 kB / 389.2 MB, free: 14.48 MB / 282.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: clutch.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real brake.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real 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 () * 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.0001954/0.4324, allocations: 128.7 kB / 389.3 MB, free: 14.35 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.38e-05/0.4325, allocations: 31.62 kB / 389.3 MB, free: 14.32 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001466/0.434, allocations: 0.713 MB / 390 MB, free: 13.77 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.27e-06/0.434, allocations: 4 kB / 390 MB, free: 13.76 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.394e-06/0.434, allocations: 0 / 390 MB, free: 13.76 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.44e-05/0.434, allocations: 7.984 kB / 390 MB, free: 13.75 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001709/0.4358, allocations: 1.118 MB / 391.2 MB, free: 12.84 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.885e-06/0.4358, allocations: 0 / 391.2 MB, free: 12.84 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002946/0.4361, allocations: 59.34 kB / 391.2 MB, free: 12.79 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009579/0.437, allocations: 0.5423 MB / 391.8 MB, free: 12.34 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.454e-05/0.4371, allocations: 19.42 kB / 391.8 MB, free: 12.32 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00252/0.4396, allocations: 3.372 MB / 395.1 MB, free: 8.902 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.006e-06/0.4396, allocations: 0 / 395.1 MB, free: 8.902 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001379/0.441, allocations: 0.9332 MB / 396.1 MB, free: 8.207 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001955/0.4412, allocations: 157.1 kB / 396.2 MB, free: 8.055 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.599e-05/0.4413, allocations: 7.438 kB / 396.2 MB, free: 8.051 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006055/0.442, allocations: 95.84 kB / 396.3 MB, free: 7.957 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002388/0.4422, allocations: 107 kB / 396.4 MB, free: 7.863 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.568e-05/0.4423, allocations: 22.98 kB / 396.5 MB, free: 7.848 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001626/0.4424, allocations: 162.8 kB / 396.6 MB, free: 7.707 MB / 282.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.4424, allocations: 0 / 396.6 MB, free: 7.707 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0006102/0.4431, allocations: 108 kB / 396.7 MB, free: 7.602 MB / 282.7 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 (brake.mode,brake.startBackward,brake.startForward,clutch.mode,clutch.startBackward,clutch.startForward) * 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.0002619/0.4433, allocations: 141.2 kB / 396.9 MB, free: 7.461 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001276/0.4446, allocations: 0.7009 MB / 397.6 MB, free: 6.902 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.935e-06/0.4446, allocations: 0 / 397.6 MB, free: 6.902 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007806/0.4454, allocations: 489.2 kB / 398 MB, free: 6.492 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004213/0.4459, allocations: 44.3 kB / 398.1 MB, free: 6.453 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001606/0.4475, allocations: 0.7706 MB / 398.9 MB, free: 5.742 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004258/0.4479, allocations: 0.8036 MB / 399.7 MB, free: 4.906 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.000133/0.4481, allocations: 27.3 kB / 399.7 MB, free: 4.879 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.852e-05/0.4482, allocations: 35.36 kB / 399.7 MB, free: 4.844 MB / 282.7 MB Notification: Performance of SimCode: time 2.4e-07/0.4482, allocations: 0 / 399.7 MB, free: 4.844 MB / 282.7 MB Notification: Performance of Templates: time 0.01349/0.4617, allocations: 7.849 MB / 407.6 MB, free: 13.01 MB / 298.7 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)