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.6745/0.6745, allocations: 110.9 MB / 125.9 MB, free: 6.219 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo): time 0.001723/0.001723, allocations: 146.5 kB / 151.9 MB, free: 4.996 MB / 122.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003321/0.0003322, allocations: 12 kB / 184.9 MB, free: 3.93 MB / 154.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1377/0.138, allocations: 25.15 MB / 210 MB, free: 29.74 MB / 170.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.04739/0.1855, allocations: 38.92 MB / 249 MB, free: 10.9 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000191/0.1857, allocations: 67.97 kB / 249 MB, free: 10.84 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04373/0.2294, allocations: 13.69 MB / 262.7 MB, free: 13.15 MB / 202.7 MB Notification: Performance of FrontEnd: time 2.424e-06/0.2295, allocations: 4 kB / 262.7 MB, free: 13.14 MB / 202.7 MB Notification: Performance of Transformations before backend: time 3.753e-05/0.2295, allocations: 16 kB / 262.7 MB, free: 13.13 MB / 202.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.003971/0.2335, allocations: 1.331 MB / 264.1 MB, free: 11.74 MB / 202.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.826e-05/0.2336, allocations: 12.03 kB / 264.1 MB, free: 11.73 MB / 202.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000188/0.2338, allocations: 90.97 kB / 264.2 MB, free: 11.64 MB / 202.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006358/0.2344, allocations: 468.4 kB / 264.6 MB, free: 11.14 MB / 202.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.945e-05/0.2345, allocations: 45.31 kB / 264.7 MB, free: 11.1 MB / 202.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001564/0.2346, allocations: 67.89 kB / 264.7 MB, free: 11.03 MB / 202.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002625/0.2373, allocations: 1.103 MB / 265.8 MB, free: 9.918 MB / 202.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.069e-05/0.2373, allocations: 3.984 kB / 265.8 MB, free: 9.914 MB / 202.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.06e-05/0.2374, allocations: 28 kB / 265.9 MB, free: 9.887 MB / 202.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.311e-05/0.2374, allocations: 16 kB / 265.9 MB, free: 9.871 MB / 202.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003958/0.2414, allocations: 1.539 MB / 267.4 MB, free: 8.332 MB / 202.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005821/0.2472, allocations: 2.878 MB / 270.3 MB, free: 5.371 MB / 202.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002824/0.2501, allocations: 1.121 MB / 271.4 MB, free: 4.238 MB / 202.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.646e-05/0.2501, allocations: 16.53 kB / 271.4 MB, free: 4.223 MB / 202.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002215/0.2524, allocations: 0.9027 MB / 272.3 MB, free: 3.297 MB / 202.7 MB Notification: Performance of pre-optimization done (n=69): time 3.337e-06/0.2524, allocations: 0 / 272.3 MB, free: 3.297 MB / 202.7 MB Notification: Performance of matching and sorting (n=71): time 0.02598/0.2784, allocations: 7.456 MB / 279.8 MB, free: 11.68 MB / 218.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.111e-05/0.2785, allocations: 149.1 kB / 279.9 MB, free: 11.51 MB / 218.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005717/0.2791, allocations: 414.1 kB / 280.4 MB, free: 11.1 MB / 218.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001615/0.2793, allocations: 41.7 kB / 280.4 MB, free: 11.05 MB / 218.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002548/0.2795, allocations: 340.1 kB / 280.7 MB, free: 10.71 MB / 218.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002193/0.2797, allocations: 234.2 kB / 281 MB, free: 10.48 MB / 218.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.798e-05/0.2798, allocations: 12 kB / 281 MB, free: 10.47 MB / 218.7 MB Notification: Performance of setup shared object (initialization): time 0.0001532/0.28, allocations: 379.4 kB / 281.3 MB, free: 10.09 MB / 218.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001835/0.2818, allocations: 0.685 MB / 282 MB, free: 9.406 MB / 218.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001992/0.2838, allocations: 0.8107 MB / 282.8 MB, free: 8.547 MB / 218.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001886/0.2857, allocations: 0.7135 MB / 283.5 MB, free: 7.84 MB / 218.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.538e-06/0.2857, allocations: 7.938 kB / 283.6 MB, free: 7.832 MB / 218.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.009033/0.2948, allocations: 2.786 MB / 286.3 MB, free: 5.027 MB / 218.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.809e-05/0.2948, allocations: 8 kB / 286.3 MB, free: 5.02 MB / 218.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.28e-05/0.2949, allocations: 0 / 286.3 MB, free: 5.02 MB / 218.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006684/0.3015, allocations: 1.581 MB / 287.9 MB, free: 3.43 MB / 218.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001251/0.3028, allocations: 223.6 kB / 288.1 MB, free: 3.211 MB / 218.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.09396/0.3968, allocations: 4.004 MB / 292.1 MB, free: 60.75 MB / 218.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001748/0.3986, allocations: 217.2 kB / 292.4 MB, free: 60.75 MB / 218.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001108/0.3987, allocations: 32.88 kB / 292.4 MB, free: 60.75 MB / 218.7 MB Warning: Assuming fixed start value for the following 10 variables: V1.signalSource.counter:DISCRETE(start = V1.signalSource.nperiod fixed = true protected = true ) "Period counter" type: Integer V2.signalSource.counter:DISCRETE(start = V2.signalSource.nperiod fixed = true protected = true ) "Period counter" type: Integer T2.vbc:VARIABLE(fixed = true ) type: Real T1.vbc:VARIABLE(fixed = true ) type: Real C2.v:VARIABLE(unit = "V" fixed = true ) "Voltage drop between the two pins (= p.v - n.v)" type: Real V2.signalSource.counter2:DISCRETE(start = V2.signalSource.nperiod fixed = true protected = true ) type: Integer V2.signalSource.T0:DISCRETE(start = V2.signalSource.startTime unit = "s" fixed = true protected = true ) "Start time of current period" type: Real V1.signalSource.counter2:DISCRETE(start = V1.signalSource.nperiod fixed = true protected = true ) type: Integer V1.signalSource.T0:DISCRETE(start = V1.signalSource.startTime unit = "s" fixed = true 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" fixed = true 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 () * Number of clocked 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.0005584/0.3993, allocations: 258.8 kB / 292.6 MB, free: 60.62 MB / 218.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001336/0.3994, allocations: 73.44 kB / 292.7 MB, free: 60.62 MB / 218.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008778/0.4082, allocations: 2.537 MB / 295.3 MB, free: 60.54 MB / 218.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.362e-05/0.4083, allocations: 6.656 kB / 295.3 MB, free: 60.54 MB / 218.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.215e-06/0.4083, allocations: 8.781 kB / 295.3 MB, free: 60.54 MB / 218.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.062e-05/0.4083, allocations: 3.672 kB / 295.3 MB, free: 60.54 MB / 218.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001174/0.4095, allocations: 0.8953 MB / 296.2 MB, free: 60.35 MB / 218.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.49e-06/0.4095, allocations: 0 / 296.2 MB, free: 60.35 MB / 218.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009541/0.4105, allocations: 188.2 kB / 296.4 MB, free: 60.34 MB / 218.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006319/0.4168, allocations: 1.559 MB / 297.9 MB, free: 60.32 MB / 218.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001548/0.417, allocations: 25.02 kB / 297.9 MB, free: 60.32 MB / 218.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004666/0.4216, allocations: 4.039 MB / 302 MB, free: 57.95 MB / 218.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.914e-06/0.4217, allocations: 3.281 kB / 302 MB, free: 57.95 MB / 218.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009214/0.4309, allocations: 3.324 MB / 305.3 MB, free: 57.15 MB / 218.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003699/0.4313, allocations: 229.9 kB / 305.5 MB, free: 56.98 MB / 218.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001222/0.4314, allocations: 20.75 kB / 305.5 MB, free: 56.97 MB / 218.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001231/0.4327, allocations: 211.9 kB / 305.8 MB, free: 56.96 MB / 218.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001498/0.4328, allocations: 68.19 kB / 305.8 MB, free: 56.95 MB / 218.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.127e-05/0.4329, allocations: 27.47 kB / 305.8 MB, free: 56.94 MB / 218.7 MB Notification: Performance of sorting global known variables: time 0.0003095/0.4332, allocations: 329.3 kB / 306.2 MB, free: 56.79 MB / 218.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4332, allocations: 0 / 306.2 MB, free: 56.79 MB / 218.7 MB Notification: Performance of remove unused functions: time 0.0006928/0.4339, allocations: 234.8 kB / 306.4 MB, free: 56.76 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) * Number of clocked states: 0 () * 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.0002126/0.4341, allocations: 129.6 kB / 306.5 MB, free: 56.66 MB / 218.7 MB Notification: Performance of simCode: created initialization part: time 0.004093/0.4382, allocations: 1.782 MB / 308.3 MB, free: 56.13 MB / 218.7 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.4383, allocations: 3.906 kB / 308.3 MB, free: 56.13 MB / 218.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002187/0.4405, allocations: 1.005 MB / 309.3 MB, free: 55.8 MB / 218.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007407/0.4412, allocations: 148.8 kB / 309.5 MB, free: 55.75 MB / 218.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002885/0.4441, allocations: 1.993 MB / 311.5 MB, free: 54.7 MB / 218.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002509/0.4444, allocations: 0.9432 MB / 312.4 MB, free: 53.99 MB / 218.7 MB Notification: Performance of simCode: alias equations: time 0.0003796/0.4448, allocations: 69.69 kB / 312.5 MB, free: 53.97 MB / 218.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001849/0.445, allocations: 48.02 kB / 312.5 MB, free: 53.96 MB / 218.7 MB Notification: Performance of SimCode: time 7.12e-07/0.445, allocations: 0 / 312.5 MB, free: 53.96 MB / 218.7 MB Notification: Performance of Templates: time 0.01661/0.4616, allocations: 14.11 MB / 326.6 MB, free: 41.17 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)