Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.1_cpp_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.conf.json Using package ModelicaServices with version 1.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_cpp_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate") Notification: Performance of loadModel(Modelica): time 1.098/1.098, allocations: 111.1 MB / 127.3 MB, free: 6.145 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000276/0.0002761, allocations: 15.98 kB / 158.9 MB, free: 15.23 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05346/0.05376, allocations: 25.15 MB / 184 MB, free: 6.035 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2183/0.2721, allocations: 38.91 MB / 222.9 MB, free: 5.277 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002397/0.2724, allocations: 66.12 kB / 223 MB, free: 5.27 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07034/0.3428, allocations: 13.7 MB / 236.7 MB, free: 11.68 MB / 186.7 MB Notification: Performance of FrontEnd: time 4.147e-06/0.3429, allocations: 0 / 236.7 MB, free: 11.68 MB / 186.7 MB Notification: Performance of Transformations before backend: time 0.0001553/0.3431, allocations: 12 kB / 236.7 MB, free: 11.66 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.01095/0.3541, allocations: 1.332 MB / 238 MB, free: 10.33 MB / 186.7 MB Notification: Performance of prepare preOptimizeDAE: time 0.0001398/0.3543, allocations: 12.03 kB / 238.1 MB, free: 10.32 MB / 186.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001334/0.3557, allocations: 86.97 kB / 238.1 MB, free: 10.23 MB / 186.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001379/0.3571, allocations: 477.2 kB / 238.6 MB, free: 9.805 MB / 186.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.554e-05/0.3572, allocations: 48.31 kB / 238.7 MB, free: 9.777 MB / 186.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002598/0.3575, allocations: 62.59 kB / 238.7 MB, free: 9.734 MB / 186.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005285/0.3628, allocations: 1.117 MB / 239.8 MB, free: 8.875 MB / 186.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.274e-05/0.3629, allocations: 0 / 239.8 MB, free: 8.875 MB / 186.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001481/0.363, allocations: 27.06 kB / 239.9 MB, free: 8.867 MB / 186.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.094e-05/0.3631, allocations: 12 kB / 239.9 MB, free: 8.855 MB / 186.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008173/0.3713, allocations: 1.533 MB / 241.4 MB, free: 7.648 MB / 186.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01083/0.3821, allocations: 2.895 MB / 244.3 MB, free: 5.387 MB / 186.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006059/0.3883, allocations: 1.108 MB / 245.4 MB, free: 4.531 MB / 186.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001935/0.3885, allocations: 12.55 kB / 245.4 MB, free: 4.52 MB / 186.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.008497/0.397, allocations: 0.9058 MB / 246.3 MB, free: 3.762 MB / 186.7 MB Notification: Performance of pre-optimization done (n=69): time 6.803e-06/0.3971, allocations: 0 / 246.3 MB, free: 3.762 MB / 186.7 MB Notification: Performance of matching and sorting (n=71): time 0.05326/0.4504, allocations: 7.457 MB / 253.8 MB, free: 12.63 MB / 202.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001394/0.4506, allocations: 153 kB / 253.9 MB, free: 12.45 MB / 202.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009369/0.4515, allocations: 470.9 kB / 254.4 MB, free: 11.98 MB / 202.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002811/0.4518, allocations: 41.7 kB / 254.4 MB, free: 11.93 MB / 202.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003483/0.4522, allocations: 366.5 kB / 254.8 MB, free: 11.57 MB / 202.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000424/0.4526, allocations: 236.6 kB / 255 MB, free: 11.34 MB / 202.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00011/0.4527, allocations: 12 kB / 255 MB, free: 11.33 MB / 202.7 MB Notification: Performance of setup shared object (initialization): time 0.0001726/0.4529, allocations: 347.4 kB / 255.4 MB, free: 10.98 MB / 202.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003864/0.4568, allocations: 0.685 MB / 256.1 MB, free: 10.3 MB / 202.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005299/0.4622, allocations: 0.8107 MB / 256.9 MB, free: 9.438 MB / 202.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004092/0.4663, allocations: 0.7137 MB / 257.6 MB, free: 8.73 MB / 202.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.296e-06/0.4664, allocations: 7.938 kB / 257.6 MB, free: 8.723 MB / 202.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.01844/0.4848, allocations: 2.759 MB / 260.3 MB, free: 5.945 MB / 202.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.456e-05/0.4849, allocations: 8 kB / 260.4 MB, free: 5.938 MB / 202.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.41e-05/0.4849, allocations: 0 / 260.4 MB, free: 5.938 MB / 202.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0131/0.498, allocations: 1.571 MB / 261.9 MB, free: 4.355 MB / 202.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002126/0.5002, allocations: 227.8 kB / 262.1 MB, free: 4.133 MB / 202.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01011/0.5104, allocations: 4.013 MB / 266.2 MB, free: 15.93 MB / 218.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002732/0.5132, allocations: 219.8 kB / 266.4 MB, free: 15.72 MB / 218.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002544/0.5135, allocations: 27.98 kB / 266.4 MB, free: 15.69 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.0009414/0.5144, allocations: 258.1 kB / 266.7 MB, free: 15.43 MB / 218.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002587/0.5147, allocations: 67.25 kB / 266.7 MB, free: 15.37 MB / 218.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01646/0.5312, allocations: 2.543 MB / 269.3 MB, free: 12.8 MB / 218.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.149e-05/0.5312, allocations: 12 kB / 269.3 MB, free: 12.79 MB / 218.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.635e-06/0.5313, allocations: 0 / 269.3 MB, free: 12.79 MB / 218.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.889e-05/0.5313, allocations: 7.984 kB / 269.3 MB, free: 12.78 MB / 218.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002341/0.5336, allocations: 0.8921 MB / 270.2 MB, free: 11.84 MB / 218.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.14e-05/0.5337, allocations: 4 kB / 270.2 MB, free: 11.83 MB / 218.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001895/0.5356, allocations: 175.8 kB / 270.4 MB, free: 11.66 MB / 218.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01248/0.5481, allocations: 1.559 MB / 271.9 MB, free: 10.09 MB / 218.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002938/0.5485, allocations: 27.97 kB / 271.9 MB, free: 10.06 MB / 218.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01011/0.5586, allocations: 4.049 MB / 276 MB, free: 5.832 MB / 218.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.415e-06/0.5587, allocations: 0 / 276 MB, free: 5.832 MB / 218.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02042/0.5791, allocations: 3.323 MB / 279.3 MB, free: 2.477 MB / 218.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008218/0.58, allocations: 236 kB / 279.5 MB, free: 2.227 MB / 218.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003157/0.5803, allocations: 16 kB / 279.6 MB, free: 2.211 MB / 218.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002607/0.5829, allocations: 211.8 kB / 279.8 MB, free: 2.004 MB / 218.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003187/0.5833, allocations: 64.73 kB / 279.8 MB, free: 1.941 MB / 218.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001819/0.5835, allocations: 23.98 kB / 279.9 MB, free: 1.918 MB / 218.7 MB Notification: Performance of sorting global known variables: time 0.0006594/0.5842, allocations: 326.9 kB / 280.2 MB, free: 1.602 MB / 218.7 MB Notification: Performance of sort global known variables: time 3.51e-07/0.5842, allocations: 0 / 280.2 MB, free: 1.602 MB / 218.7 MB Notification: Performance of remove unused functions: time 0.001361/0.5856, allocations: 232 kB / 280.4 MB, free: 1.375 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.0004306/0.586, allocations: 135.2 kB / 280.5 MB, free: 1.23 MB / 218.7 MB Notification: Performance of simCode: created initialization part: time 0.009373/0.5954, allocations: 1.782 MB / 282.3 MB, free: 15.43 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 8.456e-06/0.5955, allocations: 0.625 kB / 282.3 MB, free: 15.43 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005221/0.6007, allocations: 1.013 MB / 283.3 MB, free: 14.4 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001655/0.6024, allocations: 142.2 kB / 283.5 MB, free: 14.26 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006764/0.6092, allocations: 2.035 MB / 285.5 MB, free: 12.19 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000667/0.6099, allocations: 0.9381 MB / 286.4 MB, free: 11.22 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006024/0.6106, allocations: 55.34 kB / 286.5 MB, free: 11.17 MB / 234.7 MB Notification: Performance of SimCode: time 1.653e-06/0.6106, allocations: 4 kB / 286.5 MB, free: 11.16 MB / 234.7 MB Notification: Performance of Templates: time 0.2031/0.8137, allocations: 17.53 MB / 304 MB, free: 71.79 MB / 234.7 MB