Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo", uses=false) Using package ModelicaServices with version 1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo) Using package Modelica with version 3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo): time 0.7181/0.7181, allocations: 110.8 MB / 118.3 MB, free: 10.53 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo): time 0.001629/0.001628, allocations: 147.4 kB / 144 MB, free: 9.816 MB / 122.7 MB Notification: Performance of FrontEnd - loaded program: time 1.583e-05/1.585e-05, allocations: 4 kB / 173.9 MB, free: 11.89 MB / 154.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05322/0.05326, allocations: 25.17 MB / 199 MB, free: 2.668 MB / 170.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1544/0.2077, allocations: 36.29 MB / 235.3 MB, free: 3.684 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001818/0.2079, allocations: 69.12 kB / 235.4 MB, free: 3.617 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02277/0.2307, allocations: 8.291 MB / 243.7 MB, free: 11.39 MB / 186.7 MB Notification: Performance of FrontEnd: time 1.573e-06/0.2307, allocations: 0 / 243.7 MB, free: 11.39 MB / 186.7 MB Notification: Performance of Transformations before backend: time 2.079e-05/0.2308, allocations: 8 kB / 243.7 MB, free: 11.39 MB / 186.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 85 * Number of variables: 85 Notification: Performance of Generate backend data structure: time 0.001329/0.2321, allocations: 0.6463 MB / 244.3 MB, free: 10.7 MB / 186.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.871e-05/0.2322, allocations: 17.52 kB / 244.4 MB, free: 10.69 MB / 186.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001506/0.2323, allocations: 39.53 kB / 244.4 MB, free: 10.65 MB / 186.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000427/0.2327, allocations: 291.5 kB / 244.7 MB, free: 10.32 MB / 186.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.213e-05/0.2328, allocations: 12 kB / 244.7 MB, free: 10.31 MB / 186.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.205e-05/0.2329, allocations: 20 kB / 244.7 MB, free: 10.29 MB / 186.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000688/0.2336, allocations: 397.4 kB / 245.1 MB, free: 9.898 MB / 186.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006735/0.2342, allocations: 425.3 kB / 245.5 MB, free: 9.473 MB / 186.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.43e-05/0.2343, allocations: 15.84 kB / 245.5 MB, free: 9.457 MB / 186.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.257e-05/0.2343, allocations: 4 kB / 245.5 MB, free: 9.453 MB / 186.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.111e-05/0.2344, allocations: 11.94 kB / 245.5 MB, free: 9.441 MB / 186.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002114/0.2365, allocations: 1.097 MB / 246.6 MB, free: 8.297 MB / 186.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007758/0.2373, allocations: 467.5 kB / 247.1 MB, free: 7.828 MB / 186.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003482/0.2376, allocations: 260.5 kB / 247.3 MB, free: 7.574 MB / 186.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.954e-05/0.2377, allocations: 16.48 kB / 247.4 MB, free: 7.559 MB / 186.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.787e-05/0.2377, allocations: 39 kB / 247.4 MB, free: 7.512 MB / 186.7 MB Notification: Performance of pre-optimization done (n=47): time 1.793e-06/0.2377, allocations: 0.9375 kB / 247.4 MB, free: 7.512 MB / 186.7 MB Notification: Performance of matching and sorting (n=55): time 0.003367/0.2411, allocations: 1.802 MB / 249.2 MB, free: 5.621 MB / 186.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.032e-05/0.2412, allocations: 81.67 kB / 249.3 MB, free: 5.523 MB / 186.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002066/0.2414, allocations: 216.3 kB / 249.5 MB, free: 5.309 MB / 186.7 MB Notification: Performance of collectPreVariables (initialization): time 5.327e-05/0.2415, allocations: 29.7 kB / 249.5 MB, free: 5.273 MB / 186.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.038e-05/0.2416, allocations: 160.8 kB / 249.7 MB, free: 5.113 MB / 186.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001576/0.2417, allocations: 177.5 kB / 249.9 MB, free: 4.938 MB / 186.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.607e-05/0.2418, allocations: 0 / 249.9 MB, free: 4.938 MB / 186.7 MB Notification: Performance of setup shared object (initialization): time 0.0001566/0.2419, allocations: 346.8 kB / 250.2 MB, free: 4.59 MB / 186.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003681/0.2423, allocations: 237.1 kB / 250.4 MB, free: 4.359 MB / 186.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004052/0.2427, allocations: 294.2 kB / 250.7 MB, free: 4.059 MB / 186.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004322/0.2432, allocations: 218.9 kB / 250.9 MB, free: 3.852 MB / 186.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.2432, allocations: 32 / 250.9 MB, free: 3.852 MB / 186.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001297/0.2445, allocations: 0.7454 MB / 251.7 MB, free: 3.094 MB / 186.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.711e-05/0.2445, allocations: 8 kB / 251.7 MB, free: 3.086 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.632e-06/0.2445, allocations: 0 / 251.7 MB, free: 3.086 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008432/0.2454, allocations: 456.5 kB / 252.1 MB, free: 2.637 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003529/0.2457, allocations: 84.38 kB / 252.2 MB, free: 2.555 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00113/0.2469, allocations: 1.029 MB / 253.2 MB, free: 1.496 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004145/0.2473, allocations: 67.95 kB / 253.3 MB, free: 1.43 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.559e-05/0.2474, allocations: 35.98 kB / 253.3 MB, free: 1.395 MB / 186.7 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 (41): * Single equations (assignments): 40 * 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 23} Notification: Performance of prepare postOptimizeDAE: time 0.0001886/0.2476, allocations: 118.9 kB / 253.5 MB, free: 1.273 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.82e-05/0.2477, allocations: 31.62 kB / 253.5 MB, free: 1.242 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001294/0.2478, allocations: 51.38 kB / 253.5 MB, free: 1.191 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.414e-06/0.2478, allocations: 8 kB / 253.5 MB, free: 1.184 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.219e-06/0.2478, allocations: 0 / 253.5 MB, free: 1.184 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.602e-06/0.2478, allocations: 7.984 kB / 253.6 MB, free: 1.176 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002389/0.2502, allocations: 1.449 MB / 255 MB, free: 15.67 MB / 202.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.286e-06/0.2503, allocations: 0 / 255 MB, free: 15.67 MB / 202.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003437/0.2506, allocations: 77 kB / 255.1 MB, free: 15.6 MB / 202.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007915/0.2514, allocations: 442.6 kB / 255.5 MB, free: 15.16 MB / 202.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.904e-05/0.2515, allocations: 11.98 kB / 255.5 MB, free: 15.15 MB / 202.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001083/0.2526, allocations: 0.9794 MB / 256.5 MB, free: 14.15 MB / 202.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.079e-06/0.2526, allocations: 3.984 kB / 256.5 MB, free: 14.14 MB / 202.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001708/0.2543, allocations: 1.088 MB / 257.6 MB, free: 13.02 MB / 202.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002304/0.2545, allocations: 168.7 kB / 257.8 MB, free: 12.84 MB / 202.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.416e-05/0.2546, allocations: 12.89 kB / 257.8 MB, free: 12.83 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003996/0.255, allocations: 60 kB / 257.8 MB, free: 12.77 MB / 202.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001884/0.2552, allocations: 96.23 kB / 257.9 MB, free: 12.68 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.918e-05/0.2553, allocations: 27.98 kB / 257.9 MB, free: 12.65 MB / 202.7 MB Notification: Performance of sorting global known variables: time 0.0001673/0.2555, allocations: 172.4 kB / 258.1 MB, free: 12.48 MB / 202.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2555, allocations: 0.8438 kB / 258.1 MB, free: 12.48 MB / 202.7 MB Notification: Performance of remove unused functions: time 0.0005708/0.2561, allocations: 115.9 kB / 258.2 MB, free: 12.37 MB / 202.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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (34): * Single equations (assignments): 33 * 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 20} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003551/0.2564, allocations: 159.8 kB / 258.4 MB, free: 12.2 MB / 202.7 MB Notification: Performance of simCode: created initialization part: time 0.001035/0.2575, allocations: 0.5307 MB / 258.9 MB, free: 11.68 MB / 202.7 MB Notification: Performance of simCode: created event and clocks part: time 2.895e-06/0.2575, allocations: 0 / 258.9 MB, free: 11.68 MB / 202.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005521/0.258, allocations: 296.3 kB / 259.2 MB, free: 11.39 MB / 202.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003708/0.2584, allocations: 26.61 kB / 259.2 MB, free: 11.36 MB / 202.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001391/0.2598, allocations: 0.6519 MB / 259.9 MB, free: 10.68 MB / 202.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003563/0.2602, allocations: 0.8123 MB / 260.7 MB, free: 9.848 MB / 202.7 MB Notification: Performance of simCode: alias equations: time 0.0001997/0.2604, allocations: 59.25 kB / 260.8 MB, free: 9.793 MB / 202.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001198/0.2605, allocations: 31.42 kB / 260.8 MB, free: 9.762 MB / 202.7 MB Notification: Performance of SimCode: time 2.565e-06/0.2605, allocations: 0 / 260.8 MB, free: 9.762 MB / 202.7 MB Notification: Performance of Templates: time 0.01215/0.2727, allocations: 6.99 MB / 267.8 MB, free: 2.828 MB / 202.7 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.makefile (rm -f Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; mkfifo Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe >> ../files/Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.sim & ./Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe 2>&1)