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.6319/0.6319, allocations: 110.9 MB / 125.9 MB, free: 6.215 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo): time 0.001686/0.001685, allocations: 150.5 kB / 151.9 MB, free: 4.98 MB / 122.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002622/0.0002623, allocations: 12 kB / 184.9 MB, free: 3.918 MB / 154.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1248/0.125, allocations: 25.15 MB / 210 MB, free: 29.77 MB / 170.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.04258/0.1677, allocations: 37.07 MB / 247.1 MB, free: 12.76 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002303/0.168, allocations: 67.95 kB / 247.2 MB, free: 12.7 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02373/0.1917, allocations: 8.356 MB / 255.5 MB, free: 4.363 MB / 186.7 MB Notification: Performance of FrontEnd: time 1.663e-06/0.1918, allocations: 0 / 255.5 MB, free: 4.363 MB / 186.7 MB Notification: Performance of Transformations before backend: time 1.555e-05/0.1918, allocations: 8 kB / 255.5 MB, free: 4.355 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.001102/0.1929, allocations: 0.6779 MB / 256.2 MB, free: 3.633 MB / 186.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.515e-05/0.1929, allocations: 8.031 kB / 256.2 MB, free: 3.625 MB / 186.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.446e-05/0.193, allocations: 39.53 kB / 256.3 MB, free: 3.586 MB / 186.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000357/0.1934, allocations: 299.3 kB / 256.6 MB, free: 3.25 MB / 186.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.456e-05/0.1934, allocations: 24.66 kB / 256.6 MB, free: 3.223 MB / 186.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.232e-05/0.1935, allocations: 39.91 kB / 256.6 MB, free: 3.184 MB / 186.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000836/0.1944, allocations: 495.3 kB / 257.1 MB, free: 2.688 MB / 186.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.771e-05/0.1944, allocations: 4 kB / 257.1 MB, free: 2.684 MB / 186.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.33e-05/0.1944, allocations: 15.95 kB / 257.1 MB, free: 2.668 MB / 186.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.928e-05/0.1945, allocations: 13.78 kB / 257.1 MB, free: 2.656 MB / 186.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008809/0.1954, allocations: 478.7 kB / 257.6 MB, free: 2.188 MB / 186.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001988/0.1974, allocations: 1.176 MB / 258.8 MB, free: 0.9531 MB / 186.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009822/0.1984, allocations: 0.5226 MB / 259.3 MB, free: 432 kB / 186.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.104e-05/0.1984, allocations: 8.5 kB / 259.3 MB, free: 424 kB / 186.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.211e-05/0.1984, allocations: 38.94 kB / 259.3 MB, free: 376 kB / 186.7 MB Notification: Performance of pre-optimization done (n=47): time 1.883e-06/0.1984, allocations: 0 / 259.3 MB, free: 376 kB / 186.7 MB Notification: Performance of matching and sorting (n=55): time 0.005287/0.2037, allocations: 2.673 MB / 262 MB, free: 13.56 MB / 202.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.73e-05/0.2038, allocations: 85.62 kB / 262.1 MB, free: 13.46 MB / 202.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000242/0.204, allocations: 249.8 kB / 262.3 MB, free: 13.21 MB / 202.7 MB Notification: Performance of collectPreVariables (initialization): time 5.283e-05/0.2041, allocations: 41.7 kB / 262.4 MB, free: 13.16 MB / 202.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.33e-05/0.2042, allocations: 156.8 kB / 262.5 MB, free: 13.01 MB / 202.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001381/0.2044, allocations: 181.4 kB / 262.7 MB, free: 12.83 MB / 202.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.571e-05/0.2044, allocations: 12 kB / 262.7 MB, free: 12.82 MB / 202.7 MB Notification: Performance of setup shared object (initialization): time 0.0001156/0.2045, allocations: 342.8 kB / 263.1 MB, free: 12.48 MB / 202.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004882/0.205, allocations: 281 kB / 263.3 MB, free: 12.2 MB / 202.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005137/0.2055, allocations: 333.5 kB / 263.7 MB, free: 11.87 MB / 202.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004838/0.206, allocations: 261.3 kB / 263.9 MB, free: 11.61 MB / 202.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.206, allocations: 4 kB / 263.9 MB, free: 11.61 MB / 202.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001498/0.2075, allocations: 0.8391 MB / 264.8 MB, free: 10.76 MB / 202.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.139e-05/0.2076, allocations: 9.812 kB / 264.8 MB, free: 10.75 MB / 202.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.995e-06/0.2076, allocations: 0 / 264.8 MB, free: 10.75 MB / 202.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008963/0.2085, allocations: 476.5 kB / 265.2 MB, free: 10.28 MB / 202.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003373/0.2088, allocations: 75.89 kB / 265.3 MB, free: 10.21 MB / 202.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001223/0.2101, allocations: 0.987 MB / 266.3 MB, free: 9.191 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005551/0.2107, allocations: 76 kB / 266.4 MB, free: 9.117 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.809e-05/0.2108, allocations: 31.98 kB / 266.4 MB, free: 9.086 MB / 202.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 (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.0002786/0.211, allocations: 165.7 kB / 266.6 MB, free: 8.914 MB / 202.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001017/0.2112, allocations: 39.52 kB / 266.6 MB, free: 8.875 MB / 202.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001595/0.2113, allocations: 55.62 kB / 266.7 MB, free: 8.82 MB / 202.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.474e-06/0.2113, allocations: 7.984 kB / 266.7 MB, free: 8.812 MB / 202.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.672e-06/0.2114, allocations: 4 kB / 266.7 MB, free: 8.809 MB / 202.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.022e-05/0.2114, allocations: 7.938 kB / 266.7 MB, free: 8.801 MB / 202.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00324/0.2146, allocations: 1.601 MB / 268.3 MB, free: 7.137 MB / 202.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.799e-06/0.2146, allocations: 4 kB / 268.3 MB, free: 7.133 MB / 202.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000329/0.215, allocations: 75.89 kB / 268.4 MB, free: 7.059 MB / 202.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008007/0.2158, allocations: 454.5 kB / 268.8 MB, free: 6.613 MB / 202.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.065e-05/0.2158, allocations: 23.97 kB / 268.8 MB, free: 6.59 MB / 202.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009582/0.2168, allocations: 0.9371 MB / 269.8 MB, free: 5.629 MB / 202.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.625e-06/0.2168, allocations: 3.984 kB / 269.8 MB, free: 5.625 MB / 202.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00197/0.2188, allocations: 1.224 MB / 271 MB, free: 4.379 MB / 202.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002449/0.2191, allocations: 172.6 kB / 271.2 MB, free: 4.191 MB / 202.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.526e-05/0.2191, allocations: 20 kB / 271.2 MB, free: 4.172 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003798/0.2195, allocations: 68 kB / 271.2 MB, free: 4.105 MB / 202.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001752/0.2197, allocations: 96.23 kB / 271.3 MB, free: 4.012 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.141e-05/0.2198, allocations: 31.98 kB / 271.4 MB, free: 3.98 MB / 202.7 MB Notification: Performance of sorting global known variables: time 0.0001758/0.22, allocations: 197.9 kB / 271.6 MB, free: 3.781 MB / 202.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.22, allocations: 0 / 271.6 MB, free: 3.781 MB / 202.7 MB Notification: Performance of remove unused functions: time 0.0004844/0.2205, allocations: 143.9 kB / 271.7 MB, free: 3.641 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) * Number of clocked states: 0 () * 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.0002349/0.2207, allocations: 154.9 kB / 271.9 MB, free: 3.48 MB / 202.7 MB Notification: Performance of simCode: created initialization part: time 0.001223/0.2219, allocations: 0.624 MB / 272.5 MB, free: 2.863 MB / 202.7 MB Notification: Performance of simCode: created event and clocks part: time 3.687e-06/0.2219, allocations: 4 kB / 272.5 MB, free: 2.859 MB / 202.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006629/0.2226, allocations: 338.9 kB / 272.8 MB, free: 2.527 MB / 202.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003278/0.223, allocations: 42.12 kB / 272.9 MB, free: 2.488 MB / 202.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001576/0.2245, allocations: 1.019 MB / 273.9 MB, free: 1.434 MB / 202.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003329/0.2249, allocations: 0.8086 MB / 274.7 MB, free: 0.5977 MB / 202.7 MB Notification: Performance of simCode: alias equations: time 0.0001716/0.2251, allocations: 55.25 kB / 274.7 MB, free: 0.543 MB / 202.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001163/0.2252, allocations: 35.42 kB / 274.8 MB, free: 0.5078 MB / 202.7 MB Notification: Performance of SimCode: time 2.675e-06/0.2252, allocations: 0 / 274.8 MB, free: 0.5078 MB / 202.7 MB Notification: Performance of Templates: time 0.01187/0.2371, allocations: 7.332 MB / 282.1 MB, free: 9.203 MB / 218.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)