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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo): time 0.6586/0.6586, allocations: 110.8 MB / 118 MB, free: 14.68 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo): time 0.001626/0.001626, allocations: 160 kB / 143.7 MB, free: 5.012 MB / 122.7 MB Notification: Performance of FrontEnd - loaded program: time 6.802e-06/6.822e-06, allocations: 4 kB / 173.5 MB, free: 23.04 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04005/0.04007, allocations: 25.16 MB / 198.6 MB, free: 13.95 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.04549/0.08559, allocations: 35.41 MB / 234 MB, free: 10.48 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000153/0.08578, allocations: 63.95 kB / 234.1 MB, free: 10.42 MB / 186.7 MB Notification: Performance of FrontEnd: time 0.01046/0.09625, allocations: 3.552 MB / 237.6 MB, free: 6.848 MB / 186.7 MB Notification: Performance of Transformations before backend: time 1.33e-05/0.0963, allocations: 4 kB / 237.6 MB, free: 6.844 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.0006467/0.09696, allocations: 494.1 kB / 238.1 MB, free: 6.312 MB / 186.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.165e-05/0.09701, allocations: 8.031 kB / 238.1 MB, free: 6.305 MB / 186.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.081e-05/0.09707, allocations: 23.72 kB / 238.2 MB, free: 6.281 MB / 186.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002826/0.09736, allocations: 239.3 kB / 238.4 MB, free: 6.004 MB / 186.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.245e-05/0.09738, allocations: 4 kB / 238.4 MB, free: 6 MB / 186.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.535e-05/0.09742, allocations: 12 kB / 238.4 MB, free: 5.988 MB / 186.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002978/0.09773, allocations: 128.9 kB / 238.5 MB, free: 5.863 MB / 186.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00032/0.09806, allocations: 200.9 kB / 238.7 MB, free: 5.656 MB / 186.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.349e-05/0.09808, allocations: 0 / 238.7 MB, free: 5.656 MB / 186.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.302e-05/0.09811, allocations: 4 kB / 238.7 MB, free: 5.652 MB / 186.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.845e-06/0.09812, allocations: 4 kB / 238.7 MB, free: 5.648 MB / 186.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001387/0.09951, allocations: 0.8795 MB / 239.6 MB, free: 4.695 MB / 186.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002181/0.09975, allocations: 97.64 kB / 239.7 MB, free: 4.594 MB / 186.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001708/0.09993, allocations: 88.88 kB / 239.8 MB, free: 4.504 MB / 186.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.746e-05/0.09997, allocations: 3.984 kB / 239.8 MB, free: 4.5 MB / 186.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.214e-05/0.1, allocations: 34.56 kB / 239.8 MB, free: 4.457 MB / 186.7 MB Notification: Performance of pre-optimization done (n=17): time 1.192e-06/0.1, allocations: 0 / 239.8 MB, free: 4.457 MB / 186.7 MB Notification: Performance of matching and sorting (n=17): time 0.0006457/0.1007, allocations: 202.5 kB / 240 MB, free: 4.25 MB / 186.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.415e-05/0.1007, allocations: 51.41 kB / 240.1 MB, free: 4.188 MB / 186.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001604/0.1009, allocations: 158.7 kB / 240.2 MB, free: 4.02 MB / 186.7 MB Notification: Performance of collectPreVariables (initialization): time 2.085e-05/0.1009, allocations: 25.7 kB / 240.3 MB, free: 3.988 MB / 186.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.536e-05/0.101, allocations: 140 kB / 240.4 MB, free: 3.848 MB / 186.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.94e-05/0.101, allocations: 63.09 kB / 240.5 MB, free: 3.785 MB / 186.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.915e-06/0.101, allocations: 3.938 kB / 240.5 MB, free: 3.781 MB / 186.7 MB Notification: Performance of setup shared object (initialization): time 0.0001259/0.1012, allocations: 330.8 kB / 240.8 MB, free: 3.449 MB / 186.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.023e-05/0.1013, allocations: 40.19 kB / 240.8 MB, free: 3.406 MB / 186.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001008/0.1014, allocations: 80.88 kB / 240.9 MB, free: 3.312 MB / 186.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002165/0.1016, allocations: 63.86 kB / 241 MB, free: 3.25 MB / 186.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.1016, allocations: 4 kB / 241 MB, free: 3.246 MB / 186.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0004964/0.1021, allocations: 224.3 kB / 241.2 MB, free: 3.02 MB / 186.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.569e-05/0.1021, allocations: 6.031 kB / 241.2 MB, free: 3.016 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.093e-06/0.1022, allocations: 0 / 241.2 MB, free: 3.016 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006012/0.1028, allocations: 116.8 kB / 241.3 MB, free: 2.898 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001673/0.1029, allocations: 35.98 kB / 241.3 MB, free: 2.863 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005779/0.1035, allocations: 0.6458 MB / 242 MB, free: 2.191 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001513/0.1037, allocations: 15.84 kB / 242 MB, free: 2.176 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.574e-05/0.1037, allocations: 4 kB / 242 MB, free: 2.172 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" nominal = 300.0 ) "Temperature of element" type: Real Capacitor1.v:VARIABLE(unit = "V" ) "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 () * 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.0001835/0.1039, allocations: 117 kB / 242.1 MB, free: 2.051 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.245e-05/0.104, allocations: 15.81 kB / 242.1 MB, free: 2.035 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004805/0.1045, allocations: 220 kB / 242.4 MB, free: 1.816 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.861e-06/0.1045, allocations: 4 kB / 242.4 MB, free: 1.812 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.561e-06/0.1045, allocations: 0 / 242.4 MB, free: 1.812 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.889e-06/0.1045, allocations: 0 / 242.4 MB, free: 1.812 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009061/0.1054, allocations: 0.5512 MB / 242.9 MB, free: 1.211 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.385e-06/0.1054, allocations: 0 / 242.9 MB, free: 1.211 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001781/0.1056, allocations: 27.98 kB / 242.9 MB, free: 1.184 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005292/0.1061, allocations: 120.7 kB / 243.1 MB, free: 1.062 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.427e-05/0.1062, allocations: 0 / 243.1 MB, free: 1.062 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005688/0.1067, allocations: 0.6459 MB / 243.7 MB, free: 400 kB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.817e-06/0.1068, allocations: 4 kB / 243.7 MB, free: 396 kB / 186.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.05439/0.1612, allocations: 399.1 kB / 244.1 MB, free: 67.26 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000117/0.1613, allocations: 101.1 kB / 244.2 MB, free: 67.16 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.458e-05/0.1614, allocations: 7.156 kB / 244.2 MB, free: 67.16 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002332/0.1616, allocations: 7.781 kB / 244.2 MB, free: 67.16 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.708e-05/0.1617, allocations: 11.19 kB / 244.2 MB, free: 67.16 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.444e-05/0.1617, allocations: 6.375 kB / 244.2 MB, free: 67.16 MB / 186.7 MB Notification: Performance of sort global known variables: time 8.013e-05/0.1618, allocations: 135.4 kB / 244.4 MB, free: 67.09 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.0003204/0.1621, allocations: 55.84 kB / 244.4 MB, free: 67.09 MB / 186.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (Capacitor1.v,HeatCapacitor1.T) * Number of discrete variables: 0 () * Number of discrete 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.0001502/0.1622, allocations: 118.8 kB / 244.5 MB, free: 67 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.0003037/0.1626, allocations: 128.2 kB / 244.7 MB, free: 67 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.1626, allocations: 0.5 kB / 244.7 MB, free: 67 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000121/0.1627, allocations: 77.31 kB / 244.7 MB, free: 67 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003439/0.1631, allocations: 47.19 kB / 244.8 MB, free: 67 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006365/0.1637, allocations: 358.6 kB / 245.1 MB, free: 66.87 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001758/0.1639, allocations: 0.7633 MB / 245.9 MB, free: 66.17 MB / 186.7 MB Notification: Performance of SimCode: time 2.3e-07/0.1639, allocations: 0 / 245.9 MB, free: 66.17 MB / 186.7 MB Notification: Performance of Templates: time 0.0049/0.1688, allocations: 2.54 MB / 248.4 MB, free: 66.06 MB / 186.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)