Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.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.LossyGearDemo2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.009947/0.009946, allocations: 165.6 kB / 15.11 MB, free: 5.973 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.284/1.284, allocations: 170.8 MB / 186.6 MB, free: 1.129 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.001898/0.001898, allocations: 114.6 kB / 226.2 MB, free: 10.11 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005264/0.0005264, allocations: 8 kB / 274.1 MB, free: 10.09 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2706/0.2712, allocations: 38.77 MB / 312.9 MB, free: 38.72 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.116/0.3872, allocations: 72.62 MB / 385.5 MB, free: 1.902 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002574/0.3875, allocations: 83.94 kB / 385.6 MB, free: 1.82 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03373/0.4213, allocations: 11.94 MB / 397.5 MB, free: 5.867 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.955e-06/0.4213, allocations: 0 / 397.5 MB, free: 5.867 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.197e-05/0.4214, allocations: 8 kB / 397.5 MB, free: 5.859 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.001439/0.4228, allocations: 0.7523 MB / 398.3 MB, free: 5.055 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.447e-05/0.4229, allocations: 8.031 kB / 398.3 MB, free: 5.047 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003274/0.4232, allocations: 63.42 kB / 398.4 MB, free: 4.984 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005169/0.4237, allocations: 333.6 kB / 398.7 MB, free: 4.617 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001389/0.4239, allocations: 100.4 kB / 398.8 MB, free: 4.508 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.397e-05/0.424, allocations: 43.95 kB / 398.8 MB, free: 4.465 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001088/0.4251, allocations: 0.5682 MB / 399.4 MB, free: 3.887 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.43e-05/0.4251, allocations: 3.906 kB / 399.4 MB, free: 3.883 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.647e-05/0.4252, allocations: 16 kB / 399.4 MB, free: 3.867 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.811e-05/0.4252, allocations: 15.94 kB / 399.4 MB, free: 3.852 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001307/0.4265, allocations: 0.648 MB / 400.1 MB, free: 3.199 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002127/0.4287, allocations: 1.228 MB / 401.3 MB, free: 1.918 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001127/0.4298, allocations: 0.5331 MB / 401.8 MB, free: 1.371 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.622e-05/0.4299, allocations: 12.55 kB / 401.8 MB, free: 1.359 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.188e-05/0.4299, allocations: 39.31 kB / 401.9 MB, free: 1.312 MB / 298.7 MB Notification: Performance of pre-optimization done (n=61): time 5.2e-06/0.4299, allocations: 0 / 401.9 MB, free: 1.312 MB / 298.7 MB Notification: Performance of matching and sorting (n=69): time 0.006797/0.4367, allocations: 2.924 MB / 404.8 MB, free: 14.25 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.515e-05/0.4368, allocations: 89.61 kB / 404.9 MB, free: 14.15 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003746/0.4372, allocations: 274.2 kB / 405.2 MB, free: 13.88 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 6.568e-05/0.4373, allocations: 49.64 kB / 405.2 MB, free: 13.82 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001282/0.4374, allocations: 157.6 kB / 405.4 MB, free: 13.67 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001887/0.4376, allocations: 232.7 kB / 405.6 MB, free: 13.44 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.013e-05/0.4377, allocations: 15.98 kB / 405.6 MB, free: 13.43 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.000185/0.4379, allocations: 346.8 kB / 405.9 MB, free: 13.08 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005896/0.4385, allocations: 285.2 kB / 406.2 MB, free: 12.8 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006282/0.4391, allocations: 358.5 kB / 406.6 MB, free: 12.44 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005652/0.4397, allocations: 267.2 kB / 406.8 MB, free: 12.18 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.4397, allocations: 0 / 406.8 MB, free: 12.18 MB / 314.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001729/0.4414, allocations: 0.9006 MB / 407.7 MB, free: 11.27 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.233e-05/0.4415, allocations: 4 kB / 407.7 MB, free: 11.27 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.616e-06/0.4415, allocations: 0 / 407.7 MB, free: 11.27 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001187/0.4427, allocations: 0.5376 MB / 408.3 MB, free: 10.73 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003835/0.4431, allocations: 91.88 kB / 408.4 MB, free: 10.64 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001346/0.4444, allocations: 1.079 MB / 409.4 MB, free: 9.531 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004857/0.4449, allocations: 80.03 kB / 409.5 MB, free: 9.453 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.372e-05/0.445, allocations: 35.94 kB / 409.6 MB, free: 9.418 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 15 (bearingFriction.free,gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,$PRE.gear.mode,gear.mode,$PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode,gear.ideal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 45 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 32} Notification: Performance of prepare postOptimizeDAE: time 0.0002713/0.4453, allocations: 175.4 kB / 409.7 MB, free: 9.238 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.273e-05/0.4454, allocations: 47.53 kB / 409.8 MB, free: 9.191 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001508/0.4455, allocations: 63.77 kB / 409.8 MB, free: 9.125 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.943e-06/0.4456, allocations: 8 kB / 409.8 MB, free: 9.117 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.204e-06/0.4456, allocations: 0 / 409.8 MB, free: 9.117 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.963e-06/0.4456, allocations: 3.984 kB / 409.9 MB, free: 9.113 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003301/0.4489, allocations: 1.82 MB / 411.7 MB, free: 7.227 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.651e-06/0.4489, allocations: 0 / 411.7 MB, free: 7.227 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003592/0.4493, allocations: 79.88 kB / 411.8 MB, free: 7.148 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001029/0.4503, allocations: 0.5165 MB / 412.3 MB, free: 6.629 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.689e-05/0.4504, allocations: 27.97 kB / 412.3 MB, free: 6.602 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001228/0.4516, allocations: 1.032 MB / 413.3 MB, free: 5.543 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.4516, allocations: 0 / 413.3 MB, free: 5.543 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002481/0.4541, allocations: 1.366 MB / 414.7 MB, free: 4.145 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002785/0.4544, allocations: 184.5 kB / 414.9 MB, free: 3.945 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.923e-05/0.4545, allocations: 23.95 kB / 414.9 MB, free: 3.922 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004355/0.455, allocations: 68 kB / 415 MB, free: 3.855 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001857/0.4551, allocations: 100.4 kB / 415.1 MB, free: 3.758 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.502e-05/0.4552, allocations: 31.97 kB / 415.1 MB, free: 3.727 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002539/0.4555, allocations: 213.9 kB / 415.3 MB, free: 3.516 MB / 314.7 MB Notification: Performance of sort global known variables: time 3.4e-07/0.4555, allocations: 4 kB / 415.3 MB, free: 3.512 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0006062/0.4561, allocations: 171.9 kB / 415.5 MB, free: 3.344 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (Inertia2.phi,Inertia2.w) * Number of discrete variables: 9 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode) * Number of discrete states: 4 (bearingFriction.mode,bearingFriction.startBackward,bearingFriction.startForward,gear.mode) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 38 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 29} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003243/0.4564, allocations: 163.1 kB / 415.6 MB, free: 3.176 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001492/0.4579, allocations: 0.7001 MB / 416.3 MB, free: 2.48 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.458, allocations: 0 / 416.3 MB, free: 2.48 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007504/0.4587, allocations: 380.1 kB / 416.7 MB, free: 2.105 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003579/0.4591, allocations: 41.38 kB / 416.7 MB, free: 2.062 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002516/0.4616, allocations: 1.36 MB / 418.1 MB, free: 0.6719 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1572/0.6188, allocations: 0.8252 MB / 418.9 MB, free: 89.95 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0005495/0.6194, allocations: 60.42 kB / 419 MB, free: 89.94 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002117/0.6197, allocations: 43.58 kB / 419 MB, free: 89.93 MB / 314.7 MB Notification: Performance of SimCode: time 1.954e-06/0.6197, allocations: 2.906 kB / 419 MB, free: 89.93 MB / 314.7 MB Notification: Performance of Templates: time 0.01745/0.6371, allocations: 8.545 MB / 427.6 MB, free: 88.9 MB / 314.7 MB make -j1 -f Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.makefile (rm -f Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; mkfifo Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe >> ../files/Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.sim & ./Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe 2>&1)