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.8687/0.8687, allocations: 110.8 MB / 123.3 MB, free: 10.75 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo): time 0.001643/0.001643, allocations: 143.5 kB / 149.1 MB, free: 0.9609 MB / 122.7 MB Notification: Performance of FrontEnd - loaded program: time 2.447e-05/2.45e-05, allocations: 4 kB / 180.2 MB, free: 17.57 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.03859/0.03863, allocations: 25.18 MB / 205.4 MB, free: 8.43 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.04771/0.08637, allocations: 38.82 MB / 244.2 MB, free: 1.547 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000195/0.08661, allocations: 63.97 kB / 244.3 MB, free: 1.484 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1452/0.2318, allocations: 13.69 MB / 258 MB, free: 37.78 MB / 186.7 MB Notification: Performance of FrontEnd: time 1.302e-06/0.2318, allocations: 0 / 258 MB, free: 37.78 MB / 186.7 MB Notification: Performance of Transformations before backend: time 2.314e-05/0.2319, allocations: 12 kB / 258 MB, free: 37.77 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.002941/0.2348, allocations: 1.258 MB / 259.2 MB, free: 36.46 MB / 186.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.586e-05/0.2348, allocations: 8.031 kB / 259.2 MB, free: 36.45 MB / 186.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001488/0.235, allocations: 86.97 kB / 259.3 MB, free: 36.37 MB / 186.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000521/0.2355, allocations: 464.5 kB / 259.8 MB, free: 35.88 MB / 186.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.03e-05/0.2356, allocations: 49.31 kB / 259.8 MB, free: 35.83 MB / 186.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001267/0.2357, allocations: 63.91 kB / 259.9 MB, free: 35.77 MB / 186.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001153/0.2369, allocations: 0.7521 MB / 260.6 MB, free: 35.01 MB / 186.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.126e-05/0.2369, allocations: 8 kB / 260.6 MB, free: 35 MB / 186.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.804e-05/0.237, allocations: 24 kB / 260.7 MB, free: 34.98 MB / 186.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.233e-05/0.237, allocations: 23.92 kB / 260.7 MB, free: 34.96 MB / 186.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001267/0.2383, allocations: 0.8331 MB / 261.5 MB, free: 34.12 MB / 186.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004654/0.2429, allocations: 2.891 MB / 264.4 MB, free: 31.14 MB / 186.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001045/0.244, allocations: 0.6392 MB / 265.1 MB, free: 30.49 MB / 186.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005639/0.2446, allocations: 422.5 kB / 265.5 MB, free: 30.08 MB / 186.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.862e-05/0.2447, allocations: 16.55 kB / 265.5 MB, free: 30.06 MB / 186.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008209/0.2455, allocations: 0.5502 MB / 266 MB, free: 29.48 MB / 186.7 MB Notification: Performance of pre-optimization done (n=69): time 3.316e-06/0.2455, allocations: 4 kB / 266 MB, free: 29.48 MB / 186.7 MB Notification: Performance of matching and sorting (n=71): time 0.009019/0.2545, allocations: 3.209 MB / 269.2 MB, free: 26.21 MB / 186.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001069/0.2547, allocations: 149.2 kB / 269.4 MB, free: 26.03 MB / 186.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006176/0.2553, allocations: 420.7 kB / 269.8 MB, free: 25.62 MB / 186.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002175/0.2556, allocations: 45.7 kB / 269.9 MB, free: 25.57 MB / 186.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001636/0.2557, allocations: 328.2 kB / 270.2 MB, free: 25.24 MB / 186.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001674/0.2559, allocations: 236.6 kB / 270.4 MB, free: 25 MB / 186.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.301e-05/0.256, allocations: 12 kB / 270.4 MB, free: 24.99 MB / 186.7 MB Notification: Performance of setup shared object (initialization): time 7.598e-05/0.256, allocations: 378.8 kB / 270.8 MB, free: 24.61 MB / 186.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005381/0.2566, allocations: 345.5 kB / 271.1 MB, free: 24.28 MB / 186.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000614/0.2572, allocations: 480.5 kB / 271.6 MB, free: 23.77 MB / 186.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006906/0.2579, allocations: 364.2 kB / 271.9 MB, free: 23.41 MB / 186.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.887e-06/0.2579, allocations: 0 / 271.9 MB, free: 23.41 MB / 186.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.005649/0.2636, allocations: 1.958 MB / 273.9 MB, free: 21.43 MB / 186.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.461e-05/0.2637, allocations: 11.94 kB / 273.9 MB, free: 21.42 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.182e-05/0.2637, allocations: 0 / 273.9 MB, free: 21.42 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006058/0.2697, allocations: 1.3 MB / 275.2 MB, free: 20.11 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001337/0.2711, allocations: 227.6 kB / 275.4 MB, free: 19.89 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003578/0.2747, allocations: 3.565 MB / 279 MB, free: 16.14 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001462/0.2762, allocations: 223.8 kB / 279.2 MB, free: 15.92 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.649e-05/0.2763, allocations: 27.98 kB / 279.2 MB, free: 15.89 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.0003103/0.2766, allocations: 188.6 kB / 279.4 MB, free: 15.7 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001106/0.2767, allocations: 67.25 kB / 279.5 MB, free: 15.64 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004674/0.2814, allocations: 1.711 MB / 281.2 MB, free: 13.91 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.593e-06/0.2814, allocations: 8 kB / 281.2 MB, free: 13.9 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.54e-06/0.2814, allocations: 4 kB / 281.2 MB, free: 13.89 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.039e-05/0.2814, allocations: 3.984 kB / 281.2 MB, free: 13.89 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001052/0.2825, allocations: 0.908 MB / 282.1 MB, free: 12.93 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.627e-06/0.2825, allocations: 0 / 282.1 MB, free: 12.93 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008795/0.2834, allocations: 179.8 kB / 282.3 MB, free: 12.76 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004876/0.2883, allocations: 1.278 MB / 283.6 MB, free: 11.47 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.345e-05/0.2884, allocations: 19.97 kB / 283.6 MB, free: 11.45 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002989/0.2914, allocations: 3.592 MB / 287.2 MB, free: 7.672 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.2914, allocations: 0 / 287.2 MB, free: 7.672 MB / 186.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005062/0.2965, allocations: 2.157 MB / 289.4 MB, free: 5.488 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000362/0.2969, allocations: 224.2 kB / 289.6 MB, free: 5.25 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001236/0.297, allocations: 16 kB / 289.6 MB, free: 5.234 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001271/0.2983, allocations: 223.8 kB / 289.8 MB, free: 5.016 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001688/0.2985, allocations: 64.61 kB / 289.9 MB, free: 4.953 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.448e-05/0.2985, allocations: 31.97 kB / 289.9 MB, free: 4.922 MB / 186.7 MB Notification: Performance of sorting global known variables: time 0.0003242/0.2989, allocations: 317.6 kB / 290.2 MB, free: 4.609 MB / 186.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2989, allocations: 0 / 290.2 MB, free: 4.609 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.000729/0.2996, allocations: 228 kB / 290.4 MB, free: 4.387 MB / 186.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.0002221/0.2998, allocations: 143.4 kB / 290.6 MB, free: 4.238 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.001876/0.3017, allocations: 1.081 MB / 291.7 MB, free: 3.145 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 4.539e-06/0.3017, allocations: 4 kB / 291.7 MB, free: 3.141 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001057/0.3028, allocations: 0.6471 MB / 292.3 MB, free: 2.477 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007049/0.3035, allocations: 142.1 kB / 292.4 MB, free: 2.34 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001669/0.3052, allocations: 1.102 MB / 293.5 MB, free: 1.211 MB / 186.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002507/0.3055, allocations: 0.9459 MB / 294.5 MB, free: 236 kB / 186.7 MB Notification: Performance of simCode: alias equations: time 0.0003763/0.3058, allocations: 60.92 kB / 294.6 MB, free: 176 kB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001841/0.306, allocations: 39.42 kB / 294.6 MB, free: 136 kB / 186.7 MB Notification: Performance of SimCode: time 4.51e-07/0.306, allocations: 0 / 294.6 MB, free: 136 kB / 186.7 MB Notification: Performance of Templates: time 0.02214/0.3282, allocations: 14.14 MB / 308.7 MB, free: 1.969 MB / 202.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)