Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.000953/0.0009529, allocations: 188.5 kB / 8.353 MB, free: 0.707 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.429/1.429, allocations: 194.3 MB / 203.1 MB, free: 9.324 MB / 171.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001769/0.001769, allocations: 118.7 kB / 248.1 MB, free: 6.344 MB / 203.1 MB Notification: Performance of FrontEnd - loaded program: time 1.794e-05/1.797e-05, allocations: 4 kB / 298.1 MB, free: 8.254 MB / 251.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09668/0.09671, allocations: 44.49 MB / 342.6 MB, free: 11.66 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2994/0.3962, allocations: 77.02 MB / 419.6 MB, free: 18.89 MB / 315.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001898/0.3964, allocations: 62.59 kB / 419.6 MB, free: 18.86 MB / 315.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.02808/0.4245, allocations: 11.49 MB / 431.1 MB, free: 9.332 MB / 315.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.4246, allocations: 0 / 431.1 MB, free: 9.332 MB / 315.1 MB Notification: Performance of Transformations before backend: time 1.637e-05/0.4246, allocations: 15.94 kB / 431.2 MB, free: 9.316 MB / 315.1 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.001072/0.4257, allocations: 0.6968 MB / 431.8 MB, free: 8.602 MB / 315.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.805e-05/0.4257, allocations: 12.03 kB / 431.9 MB, free: 8.59 MB / 315.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002976/0.426, allocations: 61.8 kB / 431.9 MB, free: 8.531 MB / 315.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003644/0.4264, allocations: 334.8 kB / 432.2 MB, free: 8.207 MB / 315.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.493e-05/0.4265, allocations: 83.98 kB / 432.3 MB, free: 8.117 MB / 315.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.858e-05/0.4266, allocations: 27.94 kB / 432.4 MB, free: 8.09 MB / 315.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006697/0.4273, allocations: 0.5183 MB / 432.9 MB, free: 7.723 MB / 315.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006017/0.4279, allocations: 461.7 kB / 433.3 MB, free: 7.379 MB / 315.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.063e-05/0.4279, allocations: 11.89 kB / 433.3 MB, free: 7.367 MB / 315.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.4e-05/0.4279, allocations: 4.844 kB / 433.3 MB, free: 7.363 MB / 315.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.866e-06/0.428, allocations: 11.98 kB / 433.4 MB, free: 7.352 MB / 315.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00157/0.4295, allocations: 1.07 MB / 434.4 MB, free: 6.469 MB / 315.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005709/0.4301, allocations: 446.2 kB / 434.9 MB, free: 6.168 MB / 315.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003132/0.4304, allocations: 270.4 kB / 435.1 MB, free: 6 MB / 315.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.606e-05/0.4305, allocations: 10.61 kB / 435.1 MB, free: 5.992 MB / 315.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.234e-05/0.4305, allocations: 48.2 kB / 435.2 MB, free: 5.941 MB / 315.1 MB Notification: Performance of pre-optimization done (n=63): time 1.753e-06/0.4306, allocations: 0 / 435.2 MB, free: 5.941 MB / 315.1 MB Notification: Performance of matching and sorting (n=71): time 0.003126/0.4337, allocations: 1.853 MB / 437 MB, free: 4.387 MB / 315.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.204e-05/0.4337, allocations: 89.89 kB / 437.1 MB, free: 4.281 MB / 315.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001784/0.4339, allocations: 225 kB / 437.3 MB, free: 4.09 MB / 315.1 MB Notification: Performance of collectPreVariables (initialization): time 4.7e-05/0.434, allocations: 37.33 kB / 437.4 MB, free: 4.051 MB / 315.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.753e-05/0.434, allocations: 151.2 kB / 437.5 MB, free: 3.922 MB / 315.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001147/0.4342, allocations: 226 kB / 437.7 MB, free: 3.727 MB / 315.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.61e-05/0.4342, allocations: 0 / 437.7 MB, free: 3.727 MB / 315.1 MB Notification: Performance of setup shared object (initialization): time 5.798e-05/0.4343, allocations: 345.2 kB / 438.1 MB, free: 3.395 MB / 315.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002814/0.4345, allocations: 227.3 kB / 438.3 MB, free: 3.258 MB / 315.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003237/0.4349, allocations: 283.9 kB / 438.6 MB, free: 3.074 MB / 315.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004/0.4353, allocations: 218.8 kB / 438.8 MB, free: 2.93 MB / 315.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.824e-06/0.4353, allocations: 0 / 438.8 MB, free: 2.93 MB / 315.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001182/0.4365, allocations: 0.7493 MB / 439.5 MB, free: 2.375 MB / 315.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.045e-05/0.4365, allocations: 12.98 kB / 439.6 MB, free: 2.363 MB / 315.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.501e-05/0.4365, allocations: 0 / 439.6 MB, free: 2.363 MB / 315.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008119/0.4374, allocations: 421.1 kB / 440 MB, free: 2.047 MB / 315.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003382/0.4377, allocations: 87.38 kB / 440.1 MB, free: 1.965 MB / 315.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009447/0.4387, allocations: 1.058 MB / 441.1 MB, free: 1.105 MB / 315.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004244/0.4391, allocations: 71.95 kB / 441.2 MB, free: 1.035 MB / 315.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.365e-05/0.4392, allocations: 32.58 kB / 441.2 MB, free: 1.008 MB / 315.1 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: bearingFriction.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real gear.sa:VARIABLE(unit = "1" ) "Path parameter for acceleration and torque loss" type: Real 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 44 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.0001747/0.4394, allocations: 128.1 kB / 441.3 MB, free: 0.8789 MB / 315.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.615e-05/0.4394, allocations: 43.48 kB / 441.4 MB, free: 0.8359 MB / 315.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001256/0.4407, allocations: 0.7663 MB / 442.1 MB, free: 288 kB / 315.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.963e-06/0.4407, allocations: 8 kB / 442.2 MB, free: 280 kB / 315.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.599e-06/0.4407, allocations: 0 / 442.2 MB, free: 280 kB / 315.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.274e-06/0.4407, allocations: 5.859 kB / 442.2 MB, free: 276 kB / 315.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002491/0.4432, allocations: 1.538 MB / 443.7 MB, free: 15.05 MB / 331.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.1e-06/0.4433, allocations: 4 kB / 443.7 MB, free: 15.04 MB / 331.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000372/0.4436, allocations: 83.5 kB / 443.8 MB, free: 14.96 MB / 331.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000843/0.4445, allocations: 401.8 kB / 444.2 MB, free: 14.65 MB / 331.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.825e-05/0.4446, allocations: 15.91 kB / 444.2 MB, free: 14.64 MB / 331.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001071/0.4456, allocations: 1.017 MB / 445.2 MB, free: 13.79 MB / 331.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.659e-06/0.4456, allocations: 3.953 kB / 445.2 MB, free: 13.79 MB / 331.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001773/0.4474, allocations: 1.143 MB / 446.4 MB, free: 12.93 MB / 331.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002186/0.4477, allocations: 178.1 kB / 446.5 MB, free: 12.76 MB / 331.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.628e-05/0.4478, allocations: 11.42 kB / 446.5 MB, free: 12.75 MB / 331.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000445/0.4482, allocations: 60 kB / 446.6 MB, free: 12.69 MB / 331.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001761/0.4484, allocations: 105 kB / 446.7 MB, free: 12.61 MB / 331.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.205e-05/0.4485, allocations: 34.41 kB / 446.7 MB, free: 12.58 MB / 331.1 MB Notification: Performance of sorting global known variables: time 0.0001582/0.4486, allocations: 182.1 kB / 446.9 MB, free: 12.43 MB / 331.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4486, allocations: 0 / 446.9 MB, free: 12.43 MB / 331.1 MB Notification: Performance of remove unused functions: time 0.0005028/0.4492, allocations: 120 kB / 447 MB, free: 12.31 MB / 331.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 39 * 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.000254/0.4494, allocations: 146 kB / 447.2 MB, free: 12.17 MB / 331.1 MB Notification: Performance of simCode: created initialization part: time 0.0009652/0.4504, allocations: 0.6028 MB / 447.8 MB, free: 11.75 MB / 331.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.4504, allocations: 0 / 447.8 MB, free: 11.75 MB / 331.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005479/0.451, allocations: 332.7 kB / 448.1 MB, free: 11.52 MB / 331.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003472/0.4513, allocations: 27.88 kB / 448.1 MB, free: 11.5 MB / 331.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00206/0.4534, allocations: 0.9334 MB / 449.1 MB, free: 10.64 MB / 331.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003902/0.4538, allocations: 0.8302 MB / 449.9 MB, free: 9.785 MB / 331.1 MB Notification: Performance of simCode: alias equations: time 0.0002362/0.454, allocations: 69.19 kB / 450 MB, free: 9.727 MB / 331.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000152/0.4542, allocations: 43.22 kB / 450 MB, free: 9.688 MB / 331.1 MB Notification: Performance of SimCode: time 2.51e-07/0.4542, allocations: 0 / 450 MB, free: 9.688 MB / 331.1 MB Notification: Performance of Templates: time 0.0131/0.4673, allocations: 8.244 MB / 458.2 MB, free: 1.508 MB / 331.1 MB make -j1 -f Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.makefile (rm -f Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; mkfifo Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe >> ../files/Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.sim & ./Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe 2>&1)