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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo): time 0.7493/0.7493, allocations: 110.8 MB / 118.3 MB, free: 10.53 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo): time 0.001609/0.001609, allocations: 155.3 kB / 144 MB, free: 9.805 MB / 122.7 MB Notification: Performance of FrontEnd - loaded program: time 1.454e-05/1.456e-05, allocations: 4 kB / 173.9 MB, free: 11.88 MB / 154.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0502/0.05023, allocations: 25.17 MB / 199 MB, free: 2.668 MB / 170.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1473/0.1975, allocations: 38.16 MB / 237.2 MB, free: 1.809 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002157/0.1978, allocations: 59.97 kB / 237.2 MB, free: 1.75 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04146/0.2393, allocations: 13.57 MB / 250.8 MB, free: 4.23 MB / 186.7 MB Notification: Performance of FrontEnd: time 1.833e-06/0.2394, allocations: 0 / 250.8 MB, free: 4.23 MB / 186.7 MB Notification: Performance of Transformations before backend: time 4.287e-05/0.2394, allocations: 16 kB / 250.8 MB, free: 4.215 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: 158 * Number of variables: 158 Notification: Performance of Generate backend data structure: time 0.003702/0.2431, allocations: 1.246 MB / 252.1 MB, free: 2.922 MB / 186.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.834e-05/0.2432, allocations: 8.031 kB / 252.1 MB, free: 2.914 MB / 186.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002971/0.2435, allocations: 86.97 kB / 252.2 MB, free: 2.828 MB / 186.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000742/0.2442, allocations: 478.6 kB / 252.6 MB, free: 2.32 MB / 186.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.921e-05/0.2443, allocations: 26.06 kB / 252.7 MB, free: 2.297 MB / 186.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001638/0.2444, allocations: 36.56 kB / 252.7 MB, free: 2.262 MB / 186.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001439/0.2459, allocations: 0.807 MB / 253.5 MB, free: 1.457 MB / 186.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001301/0.2472, allocations: 0.6692 MB / 254.2 MB, free: 0.7812 MB / 186.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.483e-05/0.2472, allocations: 4 kB / 254.2 MB, free: 0.7773 MB / 186.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.14e-05/0.2473, allocations: 0 / 254.2 MB, free: 0.7773 MB / 186.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.347e-05/0.2473, allocations: 16 kB / 254.2 MB, free: 0.7617 MB / 186.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006/0.2534, allocations: 2.779 MB / 257 MB, free: 13.92 MB / 202.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001167/0.2546, allocations: 0.6211 MB / 257.6 MB, free: 13.29 MB / 202.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006188/0.2552, allocations: 403 kB / 258 MB, free: 12.89 MB / 202.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.292e-05/0.2553, allocations: 20.5 kB / 258 MB, free: 12.87 MB / 202.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000904/0.2562, allocations: 0.5351 MB / 258.5 MB, free: 12.31 MB / 202.7 MB Notification: Performance of pre-optimization done (n=69): time 3.496e-06/0.2562, allocations: 3.938 kB / 258.5 MB, free: 12.3 MB / 202.7 MB Notification: Performance of matching and sorting (n=71): time 0.01028/0.2665, allocations: 3.169 MB / 261.7 MB, free: 9.07 MB / 202.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.341e-05/0.2666, allocations: 141.2 kB / 261.9 MB, free: 8.898 MB / 202.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004932/0.2671, allocations: 389.3 kB / 262.2 MB, free: 8.512 MB / 202.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000136/0.2673, allocations: 29.7 kB / 262.3 MB, free: 8.477 MB / 202.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002545/0.2675, allocations: 332.1 kB / 262.6 MB, free: 8.145 MB / 202.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002243/0.2677, allocations: 236.6 kB / 262.8 MB, free: 7.91 MB / 202.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.561e-05/0.2678, allocations: 0 / 262.8 MB, free: 7.91 MB / 202.7 MB Notification: Performance of setup shared object (initialization): time 0.000178/0.268, allocations: 382.7 kB / 263.2 MB, free: 7.527 MB / 202.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005463/0.2685, allocations: 329.5 kB / 263.5 MB, free: 7.207 MB / 202.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006142/0.2692, allocations: 447 kB / 264 MB, free: 6.73 MB / 202.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007525/0.2699, allocations: 383.6 kB / 264.3 MB, free: 6.359 MB / 202.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.2699, allocations: 0 / 264.3 MB, free: 6.359 MB / 202.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.006042/0.276, allocations: 1.915 MB / 266.2 MB, free: 4.426 MB / 202.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.999e-05/0.276, allocations: 4 kB / 266.2 MB, free: 4.422 MB / 202.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.02e-05/0.276, allocations: 4 kB / 266.2 MB, free: 4.418 MB / 202.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004863/0.2809, allocations: 1.225 MB / 267.5 MB, free: 3.184 MB / 202.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001126/0.2821, allocations: 219.7 kB / 267.7 MB, free: 2.969 MB / 202.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003844/0.2859, allocations: 3.58 MB / 271.3 MB, free: 15.23 MB / 218.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001527/0.2875, allocations: 213.5 kB / 271.5 MB, free: 15.02 MB / 218.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.642e-05/0.2876, allocations: 27.98 kB / 271.5 MB, free: 15 MB / 218.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.0003318/0.2879, allocations: 168.7 kB / 271.7 MB, free: 14.84 MB / 218.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001199/0.288, allocations: 71.16 kB / 271.7 MB, free: 14.77 MB / 218.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005162/0.2932, allocations: 1.658 MB / 273.4 MB, free: 13.09 MB / 218.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.739e-05/0.2932, allocations: 11.94 kB / 273.4 MB, free: 13.07 MB / 218.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.683e-06/0.2933, allocations: 4 kB / 273.4 MB, free: 13.07 MB / 218.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.009e-05/0.2933, allocations: 3.984 kB / 273.4 MB, free: 13.07 MB / 218.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001158/0.2944, allocations: 0.8109 MB / 274.2 MB, free: 12.22 MB / 218.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.378e-06/0.2945, allocations: 0 / 274.2 MB, free: 12.22 MB / 218.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009296/0.2954, allocations: 183.7 kB / 274.4 MB, free: 12.04 MB / 218.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004863/0.3003, allocations: 1.245 MB / 275.7 MB, free: 10.79 MB / 218.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002034/0.3005, allocations: 15.97 kB / 275.7 MB, free: 10.77 MB / 218.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003931/0.3044, allocations: 3.597 MB / 279.3 MB, free: 7.008 MB / 218.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.721e-06/0.3045, allocations: 3.938 kB / 279.3 MB, free: 7.004 MB / 218.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005887/0.3104, allocations: 2.106 MB / 281.4 MB, free: 4.867 MB / 218.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003946/0.3108, allocations: 228.2 kB / 281.6 MB, free: 4.625 MB / 218.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001327/0.3109, allocations: 11.98 kB / 281.6 MB, free: 4.613 MB / 218.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001261/0.3122, allocations: 196.9 kB / 281.8 MB, free: 4.422 MB / 218.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001815/0.3124, allocations: 72.62 kB / 281.9 MB, free: 4.348 MB / 218.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.126e-05/0.3125, allocations: 27.97 kB / 281.9 MB, free: 4.32 MB / 218.7 MB Notification: Performance of sorting global known variables: time 0.0003383/0.3128, allocations: 291 kB / 282.2 MB, free: 4.035 MB / 218.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3128, allocations: 0 / 282.2 MB, free: 4.035 MB / 218.7 MB Notification: Performance of remove unused functions: time 0.0007372/0.3136, allocations: 207.9 kB / 282.4 MB, free: 3.832 MB / 218.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.0002272/0.3138, allocations: 116.4 kB / 282.5 MB, free: 3.711 MB / 218.7 MB Notification: Performance of simCode: created initialization part: time 0.001871/0.3157, allocations: 1.03 MB / 283.5 MB, free: 2.672 MB / 218.7 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.3157, allocations: 0.625 kB / 283.5 MB, free: 2.672 MB / 218.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001122/0.3168, allocations: 0.6252 MB / 284.2 MB, free: 2.035 MB / 218.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006957/0.3175, allocations: 133.3 kB / 284.3 MB, free: 1.914 MB / 218.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001939/0.3195, allocations: 1.055 MB / 285.3 MB, free: 0.8281 MB / 218.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.09165/0.4112, allocations: 0.9304 MB / 286.3 MB, free: 60.49 MB / 218.7 MB Notification: Performance of simCode: alias equations: time 0.000668/0.4119, allocations: 62.22 kB / 286.3 MB, free: 60.49 MB / 218.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002237/0.4121, allocations: 43.73 kB / 286.4 MB, free: 60.48 MB / 218.7 MB Notification: Performance of SimCode: time 7.31e-07/0.4121, allocations: 0 / 286.4 MB, free: 60.48 MB / 218.7 MB Notification: Performance of Templates: time 0.01987/0.432, allocations: 13.17 MB / 299.5 MB, free: 58.98 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)