Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Electrical.Analog.Examples.HeatingRectifier.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.Electrical.Analog.Examples.HeatingRectifier,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Analog.Examples.HeatingRectifier") translateModel(Modelica.Electrical.Analog.Examples.HeatingRectifier,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Analog.Examples.HeatingRectifier") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo): time 0.6379/0.6379, 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.001612/0.001612, allocations: 139.4 kB / 151.8 MB, free: 4.977 MB / 122.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00022/0.0002198, allocations: 4 kB / 184.9 MB, free: 3.91 MB / 154.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1096/0.1098, allocations: 25.15 MB / 210 MB, free: 29.73 MB / 170.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.03756/0.1474, allocations: 36.23 MB / 246.3 MB, free: 13.58 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001828/0.1476, allocations: 71.95 kB / 246.3 MB, free: 13.51 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0104/0.158, allocations: 3.873 MB / 250.2 MB, free: 9.668 MB / 186.7 MB Notification: Performance of FrontEnd: time 2.054e-06/0.1581, allocations: 0 / 250.2 MB, free: 9.668 MB / 186.7 MB Notification: Performance of Transformations before backend: time 1.381e-05/0.1581, allocations: 4 kB / 250.2 MB, free: 9.664 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: 52 * Number of variables: 52 Notification: Performance of Generate backend data structure: time 0.0008088/0.1589, allocations: 0.4989 MB / 250.7 MB, free: 9.113 MB / 186.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.962e-05/0.159, allocations: 8.031 kB / 250.7 MB, free: 9.105 MB / 186.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.828e-05/0.1591, allocations: 27.72 kB / 250.8 MB, free: 9.078 MB / 186.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002976/0.1594, allocations: 235.4 kB / 251 MB, free: 8.805 MB / 186.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.288e-05/0.1594, allocations: 16.44 kB / 251 MB, free: 8.789 MB / 186.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.72e-05/0.1594, allocations: 20 kB / 251 MB, free: 8.77 MB / 186.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004198/0.1599, allocations: 233.8 kB / 251.3 MB, free: 8.531 MB / 186.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.459e-05/0.1599, allocations: 5.594 kB / 251.3 MB, free: 8.527 MB / 186.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.485e-05/0.1599, allocations: 8.5 kB / 251.3 MB, free: 8.52 MB / 186.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.384e-06/0.16, allocations: 4 kB / 251.3 MB, free: 8.516 MB / 186.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003136/0.1603, allocations: 161.7 kB / 251.4 MB, free: 8.359 MB / 186.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00133/0.1616, allocations: 0.8592 MB / 252.3 MB, free: 7.434 MB / 186.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003231/0.162, allocations: 158.6 kB / 252.4 MB, free: 7.27 MB / 186.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.371e-05/0.162, allocations: 0 / 252.4 MB, free: 7.27 MB / 186.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.834e-05/0.162, allocations: 34.56 kB / 252.5 MB, free: 7.227 MB / 186.7 MB Notification: Performance of pre-optimization done (n=17): time 2.776e-06/0.162, allocations: 3.984 kB / 252.5 MB, free: 7.223 MB / 186.7 MB Notification: Performance of matching and sorting (n=17): time 0.001237/0.1633, allocations: 425.2 kB / 252.9 MB, free: 6.781 MB / 186.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.385e-05/0.1633, allocations: 63.34 kB / 253 MB, free: 6.707 MB / 186.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001487/0.1635, allocations: 158.4 kB / 253.1 MB, free: 6.543 MB / 186.7 MB Notification: Performance of collectPreVariables (initialization): time 1.867e-05/0.1635, allocations: 29.7 kB / 253.1 MB, free: 6.508 MB / 186.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.784e-05/0.1636, allocations: 159.9 kB / 253.3 MB, free: 6.348 MB / 186.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.779e-05/0.1637, allocations: 55.11 kB / 253.3 MB, free: 6.293 MB / 186.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.099e-05/0.1637, allocations: 8 kB / 253.4 MB, free: 6.285 MB / 186.7 MB Notification: Performance of setup shared object (initialization): time 0.0001371/0.1638, allocations: 330.8 kB / 253.7 MB, free: 5.953 MB / 186.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001149/0.1639, allocations: 50.98 kB / 253.7 MB, free: 5.902 MB / 186.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001341/0.1641, allocations: 92.64 kB / 253.8 MB, free: 5.797 MB / 186.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001398/0.1642, allocations: 66.91 kB / 253.9 MB, free: 5.734 MB / 186.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.1643, allocations: 0 / 253.9 MB, free: 5.734 MB / 186.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0004825/0.1647, allocations: 255.8 kB / 254.1 MB, free: 5.477 MB / 186.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.702e-05/0.1648, allocations: 7.984 kB / 254.1 MB, free: 5.469 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.32e-06/0.1648, allocations: 0 / 254.1 MB, free: 5.469 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001326/0.1661, allocations: 228.7 kB / 254.4 MB, free: 5.242 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000153/0.1663, allocations: 35.97 kB / 254.4 MB, free: 5.207 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004489/0.1667, allocations: 0.6069 MB / 255 MB, free: 4.574 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001684/0.1669, allocations: 27.92 kB / 255 MB, free: 4.547 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.573e-05/0.1669, allocations: 8 kB / 255 MB, free: 4.539 MB / 186.7 MB Warning: Assuming fixed start value for the following 2 variables: HeatCapacitor1.T:VARIABLE(min = max(1.0, max(1.0, 1.0)) max = min(6000.0, min(6000.0, 6000.0)) start = 293.15 unit = "K" fixed = true nominal = 300.0 ) "Temperature of element" type: Real Capacitor1.v:VARIABLE(unit = "V" fixed = true ) "Voltage drop between the two pins (= p.v - n.v)" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 16 * 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 {1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0002379/0.1672, allocations: 138.2 kB / 255.2 MB, free: 4.391 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.423e-05/0.1672, allocations: 19.81 kB / 255.2 MB, free: 4.371 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004513/0.1677, allocations: 244.4 kB / 255.4 MB, free: 4.113 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.891e-06/0.1677, allocations: 5.875 kB / 255.4 MB, free: 4.109 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.299e-06/0.1677, allocations: 0 / 255.4 MB, free: 4.109 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.437e-06/0.1677, allocations: 0 / 255.4 MB, free: 4.109 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003364/0.1681, allocations: 297.3 kB / 255.7 MB, free: 3.77 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.278e-06/0.1681, allocations: 0 / 255.7 MB, free: 3.77 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001556/0.1682, allocations: 39.86 kB / 255.8 MB, free: 3.73 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001176/0.1694, allocations: 220.6 kB / 256 MB, free: 3.512 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.603e-05/0.1695, allocations: 2.25 kB / 256 MB, free: 3.512 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004422/0.1699, allocations: 0.6225 MB / 256.6 MB, free: 2.863 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.1699, allocations: 0 / 256.6 MB, free: 2.863 MB / 186.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000525/0.1704, allocations: 388.4 kB / 257 MB, free: 2.465 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.768e-05/0.1706, allocations: 100.9 kB / 257.1 MB, free: 2.348 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.288e-05/0.1706, allocations: 16.11 kB / 257.1 MB, free: 2.332 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001636/0.1708, allocations: 17.22 kB / 257.1 MB, free: 2.316 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.273e-05/0.1708, allocations: 11.94 kB / 257.1 MB, free: 2.305 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.356e-05/0.1708, allocations: 4 kB / 257.1 MB, free: 2.301 MB / 186.7 MB Notification: Performance of sorting global known variables: time 0.0001093/0.171, allocations: 141.1 kB / 257.3 MB, free: 2.164 MB / 186.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.171, allocations: 0 / 257.3 MB, free: 2.164 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.0003165/0.1713, allocations: 63.78 kB / 257.3 MB, free: 2.102 MB / 186.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (Capacitor1.v,HeatCapacitor1.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 9 * 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 {1 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001738/0.1715, allocations: 123.2 kB / 257.5 MB, free: 1.973 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.0004018/0.1719, allocations: 160.6 kB / 257.6 MB, free: 1.816 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.1719, allocations: 0 / 257.6 MB, free: 1.816 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002001/0.1721, allocations: 95.92 kB / 257.7 MB, free: 1.727 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003532/0.1725, allocations: 47.94 kB / 257.8 MB, free: 1.684 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009884/0.1735, allocations: 0.676 MB / 258.4 MB, free: 0.9922 MB / 186.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003181/0.1738, allocations: 0.7517 MB / 259.2 MB, free: 220 kB / 186.7 MB Notification: Performance of simCode: alias equations: time 8.212e-05/0.1739, allocations: 17.55 kB / 259.2 MB, free: 204 kB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.259e-05/0.1739, allocations: 15.44 kB / 259.2 MB, free: 188 kB / 186.7 MB Notification: Performance of SimCode: time 3.2e-07/0.1739, allocations: 0 / 259.2 MB, free: 188 kB / 186.7 MB Notification: Performance of Templates: time 0.005662/0.1796, allocations: 2.549 MB / 261.8 MB, free: 13.67 MB / 202.7 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Analog.Examples.HeatingRectifier.makefile (rm -f Modelica_3.1_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Analog.Examples.HeatingRectifier.sim & ./Modelica_3.1_Modelica.Electrical.Analog.Examples.HeatingRectifier -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe 2>&1)