Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.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.LossyGearDemo1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo): time 0.6423/0.6423, 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.001576/0.001576, allocations: 147.2 kB / 151.8 MB, free: 4.996 MB / 122.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002433/0.0002434, allocations: 12 kB / 184.9 MB, free: 3.93 MB / 154.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1147/0.115, allocations: 25.16 MB / 210 MB, free: 29.73 MB / 170.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.0427/0.1578, allocations: 35.82 MB / 245.9 MB, free: 14.01 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002035/0.158, allocations: 63.97 kB / 245.9 MB, free: 13.95 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01843/0.1764, allocations: 6.65 MB / 252.6 MB, free: 7.324 MB / 186.7 MB Notification: Performance of FrontEnd: time 1.913e-06/0.1765, allocations: 0 / 252.6 MB, free: 7.324 MB / 186.7 MB Notification: Performance of Transformations before backend: time 1.319e-05/0.1765, allocations: 8 kB / 252.6 MB, free: 7.316 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: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.0008912/0.1774, allocations: 0.5612 MB / 253.2 MB, free: 6.707 MB / 186.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.768e-05/0.1775, allocations: 8.031 kB / 253.2 MB, free: 6.699 MB / 186.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.873e-05/0.1775, allocations: 31.62 kB / 253.2 MB, free: 6.668 MB / 186.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002873/0.1778, allocations: 247.3 kB / 253.4 MB, free: 6.387 MB / 186.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.166e-05/0.1779, allocations: 20.56 kB / 253.5 MB, free: 6.367 MB / 186.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.392e-05/0.1779, allocations: 27.98 kB / 253.5 MB, free: 6.34 MB / 186.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006497/0.1786, allocations: 343.6 kB / 253.8 MB, free: 5.992 MB / 186.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.053e-05/0.1786, allocations: 3.953 kB / 253.8 MB, free: 5.988 MB / 186.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.485e-05/0.1787, allocations: 12 kB / 253.8 MB, free: 5.977 MB / 186.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.177e-05/0.1787, allocations: 8 kB / 253.8 MB, free: 5.969 MB / 186.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006358/0.1794, allocations: 298.1 kB / 254.1 MB, free: 5.676 MB / 186.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00144/0.1808, allocations: 0.8564 MB / 255 MB, free: 4.762 MB / 186.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006559/0.1815, allocations: 384 kB / 255.4 MB, free: 4.379 MB / 186.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.339e-05/0.1815, allocations: 8.062 kB / 255.4 MB, free: 4.371 MB / 186.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.54e-05/0.1816, allocations: 34.56 kB / 255.4 MB, free: 4.328 MB / 186.7 MB Notification: Performance of pre-optimization done (n=36): time 2.405e-06/0.1816, allocations: 0 / 255.4 MB, free: 4.328 MB / 186.7 MB Notification: Performance of matching and sorting (n=42): time 0.003981/0.1856, allocations: 1.905 MB / 257.3 MB, free: 2.312 MB / 186.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.419e-05/0.1856, allocations: 88.98 kB / 257.4 MB, free: 2.207 MB / 186.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000207/0.1858, allocations: 198.5 kB / 257.6 MB, free: 2.004 MB / 186.7 MB Notification: Performance of collectPreVariables (initialization): time 3.967e-05/0.1859, allocations: 33.7 kB / 257.6 MB, free: 1.965 MB / 186.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.597e-05/0.186, allocations: 133.6 kB / 257.8 MB, free: 1.832 MB / 186.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001143/0.1861, allocations: 138 kB / 257.9 MB, free: 1.695 MB / 186.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.38e-05/0.1861, allocations: 8 kB / 257.9 MB, free: 1.688 MB / 186.7 MB Notification: Performance of setup shared object (initialization): time 0.0001575/0.1863, allocations: 338.8 kB / 258.2 MB, free: 1.348 MB / 186.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003591/0.1867, allocations: 188.6 kB / 258.4 MB, free: 1.16 MB / 186.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003714/0.1871, allocations: 223.7 kB / 258.6 MB, free: 0.9336 MB / 186.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003608/0.1874, allocations: 180 kB / 258.8 MB, free: 0.7578 MB / 186.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.1874, allocations: 0 / 258.8 MB, free: 0.7578 MB / 186.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0009182/0.1884, allocations: 0.5602 MB / 259.4 MB, free: 192 kB / 186.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.647e-05/0.1884, allocations: 5.781 kB / 259.4 MB, free: 188 kB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.579e-05/0.1884, allocations: 3.125 kB / 259.4 MB, free: 188 kB / 186.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004356/0.1889, allocations: 156.7 kB / 259.5 MB, free: 28 kB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002908/0.1892, allocations: 71.89 kB / 259.6 MB, free: 15.96 MB / 202.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002768/0.1919, allocations: 2.324 MB / 261.9 MB, free: 13.5 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002385/0.1922, allocations: 32.02 kB / 262 MB, free: 13.47 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.915e-05/0.1923, allocations: 19.98 kB / 262 MB, free: 13.45 MB / 202.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,$PRE.gear.mode,gear.mode,gear.ideal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (29): * 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: 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 16} Notification: Performance of prepare postOptimizeDAE: time 0.0002123/0.1925, allocations: 154.5 kB / 262.1 MB, free: 13.29 MB / 202.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.615e-05/0.1925, allocations: 39.64 kB / 262.2 MB, free: 13.25 MB / 202.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.239e-05/0.1926, allocations: 35 kB / 262.2 MB, free: 13.22 MB / 202.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.107e-06/0.1926, allocations: 4 kB / 262.2 MB, free: 13.21 MB / 202.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.659e-06/0.1927, allocations: 0 / 262.2 MB, free: 13.21 MB / 202.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.921e-06/0.1927, allocations: 3.984 kB / 262.2 MB, free: 13.21 MB / 202.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001823/0.1945, allocations: 1.129 MB / 263.3 MB, free: 12.02 MB / 202.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.066e-06/0.1945, allocations: 4.031 kB / 263.3 MB, free: 12.01 MB / 202.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002767/0.1948, allocations: 63.95 kB / 263.4 MB, free: 11.95 MB / 202.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000383/0.1952, allocations: 147.1 kB / 263.5 MB, free: 11.8 MB / 202.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.658e-05/0.1952, allocations: 19.98 kB / 263.6 MB, free: 11.79 MB / 202.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002594/0.1978, allocations: 2.23 MB / 265.8 MB, free: 9.422 MB / 202.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.1979, allocations: 10.03 kB / 265.8 MB, free: 9.414 MB / 202.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001378/0.1992, allocations: 0.8703 MB / 266.7 MB, free: 8.516 MB / 202.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001814/0.1994, allocations: 136.8 kB / 266.8 MB, free: 8.363 MB / 202.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.972e-05/0.1995, allocations: 15.95 kB / 266.8 MB, free: 8.348 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002454/0.1998, allocations: 37.16 kB / 266.9 MB, free: 8.312 MB / 202.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001478/0.1999, allocations: 67.88 kB / 266.9 MB, free: 8.246 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.864e-05/0.2, allocations: 15.98 kB / 266.9 MB, free: 8.23 MB / 202.7 MB Notification: Performance of sorting global known variables: time 0.0001401/0.2001, allocations: 148.5 kB / 267.1 MB, free: 8.086 MB / 202.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.2001, allocations: 0 / 267.1 MB, free: 8.086 MB / 202.7 MB Notification: Performance of remove unused functions: time 0.0005807/0.2007, allocations: 120 kB / 267.2 MB, free: 7.969 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: 5 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode) * Number of discrete states: 1 (gear.mode) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (27): * Single equations (assignments): 26 * 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 14} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002246/0.2009, allocations: 143.1 kB / 267.3 MB, free: 7.82 MB / 202.7 MB Notification: Performance of simCode: created initialization part: time 0.001056/0.202, allocations: 0.5994 MB / 267.9 MB, free: 7.207 MB / 202.7 MB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.202, allocations: 0 / 267.9 MB, free: 7.207 MB / 202.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006105/0.2026, allocations: 406.2 kB / 268.3 MB, free: 6.797 MB / 202.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002913/0.2029, allocations: 32.22 kB / 268.4 MB, free: 6.77 MB / 202.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001436/0.2044, allocations: 0.8382 MB / 269.2 MB, free: 5.906 MB / 202.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004258/0.2048, allocations: 0.784 MB / 270 MB, free: 5.094 MB / 202.7 MB Notification: Performance of simCode: alias equations: time 0.0001876/0.205, allocations: 54.25 kB / 270 MB, free: 5.043 MB / 202.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.08e-05/0.2051, allocations: 31.36 kB / 270.1 MB, free: 5.012 MB / 202.7 MB Notification: Performance of SimCode: time 7.31e-07/0.2051, allocations: 0 / 270.1 MB, free: 5.012 MB / 202.7 MB Notification: Performance of Templates: time 0.00968/0.2148, allocations: 5.333 MB / 275.4 MB, free: 15.7 MB / 218.7 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.makefile (rm -f Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & ./Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1)