Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.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.HeatingNPN_OrGate,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate") translateModel(Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate") [: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.7283/0.7283, allocations: 110.8 MB / 118 MB, free: 14.55 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo): time 0.001823/0.001823, allocations: 160 kB / 143.7 MB, free: 4.879 MB / 122.7 MB Notification: Performance of FrontEnd - loaded program: time 7.173e-06/7.213e-06, allocations: 0 / 173.5 MB, free: 23.04 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04974/0.04977, allocations: 25.16 MB / 198.6 MB, free: 13.94 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1662/0.216, allocations: 38.08 MB / 236.7 MB, free: 4.379 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00027/0.2163, allocations: 61.5 kB / 236.8 MB, free: 4.379 MB / 170.7 MB Notification: Performance of FrontEnd: time 0.04133/0.2577, allocations: 13.47 MB / 250.2 MB, free: 0.625 MB / 170.7 MB Notification: Performance of Transformations before backend: time 3.527e-05/0.2578, allocations: 13.75 kB / 250.3 MB, free: 0.625 MB / 170.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 158 * Number of variables: 158 Notification: Performance of Generate backend data structure: time 0.003854/0.2616, allocations: 1.299 MB / 251.5 MB, free: 15.84 MB / 186.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.843e-05/0.2617, allocations: 12.92 kB / 251.6 MB, free: 15.84 MB / 186.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002275/0.2619, allocations: 91.12 kB / 251.7 MB, free: 15.79 MB / 186.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007364/0.2627, allocations: 463.6 kB / 252.1 MB, free: 15.46 MB / 186.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.198e-05/0.2627, allocations: 23.14 kB / 252.1 MB, free: 15.45 MB / 186.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001405/0.2629, allocations: 41.34 kB / 252.2 MB, free: 15.45 MB / 186.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001582/0.2644, allocations: 0.803 MB / 253 MB, free: 15.4 MB / 186.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001277/0.2657, allocations: 0.665 MB / 253.6 MB, free: 15.23 MB / 186.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.072e-05/0.2658, allocations: 0 / 253.6 MB, free: 15.23 MB / 186.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.765e-05/0.2659, allocations: 4 kB / 253.6 MB, free: 15.23 MB / 186.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.809e-05/0.2659, allocations: 20.31 kB / 253.7 MB, free: 15.22 MB / 186.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006475/0.2724, allocations: 3.115 MB / 256.8 MB, free: 13.53 MB / 186.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001002/0.2734, allocations: 488.3 kB / 257.3 MB, free: 13.48 MB / 186.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006421/0.2741, allocations: 407.7 kB / 257.6 MB, free: 13.46 MB / 186.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.127e-05/0.2741, allocations: 13.42 kB / 257.7 MB, free: 13.46 MB / 186.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008912/0.275, allocations: 0.5159 MB / 258.2 MB, free: 13.28 MB / 186.7 MB Notification: Performance of pre-optimization done (n=69): time 5.159e-06/0.275, allocations: 0 / 258.2 MB, free: 13.28 MB / 186.7 MB Notification: Performance of matching and sorting (n=71): time 0.01139/0.2864, allocations: 3.204 MB / 261.4 MB, free: 10.97 MB / 186.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001092/0.2866, allocations: 156.4 kB / 261.5 MB, free: 10.79 MB / 186.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005405/0.2871, allocations: 382.4 kB / 261.9 MB, free: 10.49 MB / 186.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001612/0.2873, allocations: 25.7 kB / 261.9 MB, free: 10.46 MB / 186.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001829/0.2875, allocations: 268.8 kB / 262.2 MB, free: 10.22 MB / 186.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002431/0.2878, allocations: 223.2 kB / 262.4 MB, free: 10.03 MB / 186.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.178e-05/0.2878, allocations: 0 / 262.4 MB, free: 10.03 MB / 186.7 MB Notification: Performance of setup shared object (initialization): time 0.0001561/0.288, allocations: 378.3 kB / 262.8 MB, free: 9.68 MB / 186.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006088/0.2886, allocations: 328 kB / 263.1 MB, free: 9.508 MB / 186.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006392/0.2893, allocations: 458.9 kB / 263.6 MB, free: 9.188 MB / 186.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009215/0.2902, allocations: 375.2 kB / 263.9 MB, free: 8.957 MB / 186.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.098e-06/0.2902, allocations: 4 kB / 263.9 MB, free: 8.953 MB / 186.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.006899/0.2971, allocations: 1.962 MB / 265.9 MB, free: 7.172 MB / 186.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.24e-05/0.2972, allocations: 4 kB / 265.9 MB, free: 7.168 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.177e-05/0.2972, allocations: 3.938 kB / 265.9 MB, free: 7.164 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005557/0.3028, allocations: 1.264 MB / 267.2 MB, free: 5.895 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001404/0.3042, allocations: 235.7 kB / 267.4 MB, free: 5.664 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004786/0.309, allocations: 3.552 MB / 270.9 MB, free: 1.945 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001939/0.311, allocations: 219.8 kB / 271.2 MB, free: 1.73 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001395/0.3111, allocations: 39.89 kB / 271.2 MB, free: 1.691 MB / 186.7 MB Warning: Assuming fixed start value for the following 10 variables: V1.signalSource.counter:DISCRETE(start = V1.signalSource.nperiod fixed = false protected = true ) "Period counter" type: Integer V2.signalSource.counter:DISCRETE(start = V2.signalSource.nperiod fixed = false protected = true ) "Period counter" type: Integer T2.vbc:VARIABLE() type: Real T1.vbc:VARIABLE() type: Real C2.v:VARIABLE(unit = "V" ) "Voltage drop between the two pins (= p.v - n.v)" type: Real V2.signalSource.counter2:DISCRETE(start = V2.signalSource.nperiod fixed = false protected = true ) type: Integer V2.signalSource.T0:DISCRETE(start = V2.signalSource.startTime unit = "s" fixed = false protected = true ) "Start time of current period" type: Real V1.signalSource.counter2:DISCRETE(start = V1.signalSource.nperiod fixed = false protected = true ) type: Integer V1.signalSource.T0:DISCRETE(start = V1.signalSource.startTime unit = "s" fixed = false protected = true ) "Start time of current period" type: Real HeatCapacitor1.T:VARIABLE(min = max(1.0, max(1.0, max(1.0, 1.0))) max = min(6000.0, min(6000.0, min(6000.0, 6000.0))) start = 293.15 unit = "K" nominal = 300.0 ) "Temperature of element" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 14 ($PRE.V1.signalSource.counter,V1.signalSource.counter,$PRE.V2.signalSource.counter,V2.signalSource.counter,$whenCondition2,$whenCondition1,$PRE.V1.signalSource.T0,V1.signalSource.T0,$PRE.V1.signalSource.counter2,V1.signalSource.counter2,$PRE.V2.signalSource.T0,V2.signalSource.T0,$PRE.V2.signalSource.counter2,V2.signalSource.counter2) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (65): * Single equations (assignments): 62 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,77.8%) 9} * Non-linear torn systems: 2 {1 10,1 10} Notification: Performance of prepare postOptimizeDAE: time 0.0004343/0.3116, allocations: 155.7 kB / 271.3 MB, free: 1.539 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001741/0.3117, allocations: 63.25 kB / 271.4 MB, free: 1.477 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006524/0.3183, allocations: 1.679 MB / 273.1 MB, free: 15.78 MB / 202.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.053e-05/0.3183, allocations: 15.98 kB / 273.1 MB, free: 15.77 MB / 202.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.214e-06/0.3184, allocations: 0 / 273.1 MB, free: 15.77 MB / 202.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.321e-05/0.3184, allocations: 0 / 273.1 MB, free: 15.77 MB / 202.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001578/0.32, allocations: 0.8057 MB / 273.9 MB, free: 14.93 MB / 202.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.353e-06/0.32, allocations: 4 kB / 273.9 MB, free: 14.93 MB / 202.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00117/0.3212, allocations: 191.7 kB / 274.1 MB, free: 14.74 MB / 202.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005971/0.3271, allocations: 1.287 MB / 275.4 MB, free: 13.45 MB / 202.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002598/0.3274, allocations: 15.97 kB / 275.4 MB, free: 13.43 MB / 202.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004601/0.3321, allocations: 3.576 MB / 279 MB, free: 9.684 MB / 202.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.438e-06/0.3321, allocations: 0 / 279 MB, free: 9.684 MB / 202.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.006817/0.3389, allocations: 2.12 MB / 281.1 MB, free: 7.543 MB / 202.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005382/0.3395, allocations: 224.1 kB / 281.3 MB, free: 7.305 MB / 202.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000169/0.3397, allocations: 11.94 kB / 281.3 MB, free: 7.293 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001665/0.3413, allocations: 219.8 kB / 281.5 MB, free: 7.078 MB / 202.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001507/0.3415, allocations: 52.56 kB / 281.6 MB, free: 7.027 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.688e-05/0.3416, allocations: 27.97 kB / 281.6 MB, free: 7 MB / 202.7 MB Notification: Performance of sort global known variables: time 0.0003699/0.342, allocations: 291 kB / 281.9 MB, free: 6.719 MB / 202.7 MB Notification: Performance of remove unused functions: time 0.000807/0.3428, allocations: 204.1 kB / 282.1 MB, free: 6.52 MB / 202.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (HeatCapacitor1.T,C2.v,T1.vbc,T2.vbc) * Number of discrete variables: 8 ($whenCondition2,$whenCondition1,V1.signalSource.T0,V1.signalSource.counter,V1.signalSource.counter2,V2.signalSource.T0,V2.signalSource.counter,V2.signalSource.counter2) * Number of discrete states: 4 (V2.signalSource.counter,V1.signalSource.counter,V2.signalSource.counter2,V1.signalSource.counter2) * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,77.8%) 9} * Non-linear torn systems: 2 {1 12,1 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002756/0.3431, allocations: 120.7 kB / 282.2 MB, free: 6.391 MB / 202.7 MB Notification: Performance of simCode: created initialization part: time 0.00215/0.3452, allocations: 1.005 MB / 283.2 MB, free: 5.375 MB / 202.7 MB Notification: Performance of simCode: created event and clocks part: time 3.306e-06/0.3453, allocations: 4 kB / 283.2 MB, free: 5.371 MB / 202.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00119/0.3465, allocations: 0.5939 MB / 283.8 MB, free: 4.766 MB / 202.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007542/0.3472, allocations: 127.9 kB / 283.9 MB, free: 4.645 MB / 202.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002725/0.35, allocations: 1.171 MB / 285.1 MB, free: 3.465 MB / 202.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008114/0.3508, allocations: 1.012 MB / 286.1 MB, free: 2.426 MB / 202.7 MB Notification: Performance of SimCode: time 5.2e-07/0.3508, allocations: 4 kB / 286.1 MB, free: 2.422 MB / 202.7 MB Notification: Performance of Templates: time 0.02476/0.3756, allocations: 15.16 MB / 301.3 MB, free: 3.266 MB / 218.7 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.makefile (rm -f Modelica_3.1_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.sim & ./Modelica_3.1_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.pipe 2>&1)