Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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 0.9795/0.9795, allocations: 111.2 MB / 124.2 MB, free: 11.15 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.426e-05/2.434e-05, allocations: 4 kB / 154.3 MB, free: 13.13 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1367/0.1367, allocations: 25.15 MB / 179.4 MB, free: 0.7969 MB / 138.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.05809/0.1949, allocations: 38.83 MB / 218.3 MB, free: 10.26 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000215/0.1951, allocations: 63.97 kB / 218.3 MB, free: 10.2 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06121/0.2563, allocations: 13.68 MB / 232 MB, free: 12.47 MB / 202.7 MB Notification: Performance of FrontEnd: time 2.128e-06/0.2564, allocations: 0 / 232 MB, free: 12.47 MB / 202.7 MB Notification: Performance of Transformations before backend: time 4.291e-05/0.2564, allocations: 19.98 kB / 232 MB, free: 12.45 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.004193/0.2607, allocations: 1.253 MB / 233.3 MB, free: 11.15 MB / 202.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.533e-05/0.2607, allocations: 8.031 kB / 233.3 MB, free: 11.14 MB / 202.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002556/0.261, allocations: 90.88 kB / 233.4 MB, free: 11.05 MB / 202.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009117/0.2619, allocations: 472.5 kB / 233.8 MB, free: 10.55 MB / 202.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.027e-05/0.262, allocations: 45.31 kB / 233.9 MB, free: 10.5 MB / 202.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001919/0.2622, allocations: 63.98 kB / 233.9 MB, free: 10.44 MB / 202.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001951/0.2642, allocations: 0.7522 MB / 234.7 MB, free: 9.684 MB / 202.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.492e-05/0.2642, allocations: 0 / 234.7 MB, free: 9.684 MB / 202.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001323/0.2643, allocations: 24 kB / 234.7 MB, free: 9.66 MB / 202.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.989e-05/0.2644, allocations: 16 kB / 234.7 MB, free: 9.645 MB / 202.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002294/0.2667, allocations: 0.8331 MB / 235.6 MB, free: 8.809 MB / 202.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007977/0.2747, allocations: 2.898 MB / 238.5 MB, free: 5.82 MB / 202.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001733/0.2765, allocations: 0.6379 MB / 239.1 MB, free: 5.172 MB / 202.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00103/0.2775, allocations: 422.5 kB / 239.5 MB, free: 4.758 MB / 202.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.569e-05/0.2776, allocations: 16.55 kB / 239.5 MB, free: 4.738 MB / 202.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001333/0.2789, allocations: 0.5541 MB / 240.1 MB, free: 4.16 MB / 202.7 MB Notification: Performance of pre-optimization done (n=69): time 4.104e-06/0.279, allocations: 0 / 240.1 MB, free: 4.16 MB / 202.7 MB Notification: Performance of matching and sorting (n=71): time 0.01291/0.2919, allocations: 3.213 MB / 243.3 MB, free: 0.8828 MB / 202.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001204/0.292, allocations: 145.2 kB / 243.4 MB, free: 0.7109 MB / 202.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007253/0.2928, allocations: 412.7 kB / 243.8 MB, free: 316 kB / 202.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001475/0.2929, allocations: 45.69 kB / 243.9 MB, free: 264 kB / 202.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.118/0.4109, allocations: 355 kB / 244.2 MB, free: 50.25 MB / 202.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003939/0.4114, allocations: 239.9 kB / 244.5 MB, free: 50.18 MB / 202.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.335e-05/0.4115, allocations: 14.03 kB / 244.5 MB, free: 50.18 MB / 202.7 MB Notification: Performance of setup shared object (initialization): time 8.773e-05/0.4116, allocations: 339.8 kB / 244.8 MB, free: 49.86 MB / 202.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001015/0.4126, allocations: 354 kB / 245.2 MB, free: 49.86 MB / 202.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001089/0.4137, allocations: 469.1 kB / 245.6 MB, free: 49.75 MB / 202.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009639/0.4147, allocations: 362.5 kB / 246 MB, free: 49.74 MB / 202.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.415e-06/0.4147, allocations: 1.406 kB / 246 MB, free: 49.74 MB / 202.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.008312/0.4231, allocations: 1.932 MB / 247.9 MB, free: 49.64 MB / 202.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.681e-05/0.4231, allocations: 8.344 kB / 247.9 MB, free: 49.64 MB / 202.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.209e-05/0.4231, allocations: 0 / 247.9 MB, free: 49.64 MB / 202.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007037/0.4302, allocations: 1.295 MB / 249.2 MB, free: 49.62 MB / 202.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001535/0.4318, allocations: 224 kB / 249.4 MB, free: 49.62 MB / 202.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004655/0.4364, allocations: 3.559 MB / 253 MB, free: 47.19 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001961/0.4384, allocations: 223.5 kB / 253.2 MB, free: 47.18 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001159/0.4386, allocations: 35.19 kB / 253.2 MB, free: 47.17 MB / 202.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.0003929/0.439, allocations: 198 kB / 253.4 MB, free: 47.04 MB / 202.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001579/0.4392, allocations: 70.45 kB / 253.5 MB, free: 47 MB / 202.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006856/0.446, allocations: 1.705 MB / 255.2 MB, free: 46.5 MB / 202.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.326e-05/0.4461, allocations: 11.5 kB / 255.2 MB, free: 46.5 MB / 202.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.892e-06/0.4461, allocations: 3.875 kB / 255.2 MB, free: 46.5 MB / 202.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.35e-05/0.4461, allocations: 3.938 kB / 255.2 MB, free: 46.5 MB / 202.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001343/0.4475, allocations: 0.8975 MB / 256.1 MB, free: 46.05 MB / 202.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.677e-06/0.4475, allocations: 3.938 kB / 256.1 MB, free: 46.05 MB / 202.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001317/0.4488, allocations: 185.2 kB / 256.3 MB, free: 46.05 MB / 202.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00737/0.4562, allocations: 1.281 MB / 257.6 MB, free: 45.87 MB / 202.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001746/0.4564, allocations: 26.09 kB / 257.6 MB, free: 45.86 MB / 202.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004553/0.461, allocations: 3.579 MB / 261.2 MB, free: 42.89 MB / 202.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.703e-06/0.461, allocations: 0 / 261.2 MB, free: 42.89 MB / 202.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007121/0.4682, allocations: 2.158 MB / 263.3 MB, free: 41.07 MB / 202.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004785/0.4687, allocations: 233.7 kB / 263.6 MB, free: 40.86 MB / 202.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001755/0.4689, allocations: 20 kB / 263.6 MB, free: 40.84 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001485/0.4704, allocations: 208.5 kB / 263.8 MB, free: 40.7 MB / 202.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001801/0.4706, allocations: 70.7 kB / 263.9 MB, free: 40.66 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001048/0.4707, allocations: 26.56 kB / 263.9 MB, free: 40.64 MB / 202.7 MB Notification: Performance of sorting global known variables: time 0.0004135/0.4711, allocations: 323.6 kB / 264.2 MB, free: 40.34 MB / 202.7 MB Notification: Performance of sort global known variables: time 8.75e-07/0.4711, allocations: 0 / 264.2 MB, free: 40.34 MB / 202.7 MB Notification: Performance of remove unused functions: time 0.0009186/0.4721, allocations: 231.9 kB / 264.4 MB, free: 40.12 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.0002517/0.4723, allocations: 135.1 kB / 264.6 MB, free: 39.98 MB / 202.7 MB Notification: Performance of simCode: created initialization part: time 0.002534/0.4749, allocations: 1.075 MB / 265.6 MB, free: 38.95 MB / 202.7 MB Notification: Performance of simCode: created event and clocks part: time 7.408e-06/0.4749, allocations: 9.625 kB / 265.7 MB, free: 38.94 MB / 202.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001508/0.4764, allocations: 0.6535 MB / 266.3 MB, free: 38.31 MB / 202.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009186/0.4774, allocations: 152.3 kB / 266.5 MB, free: 38.2 MB / 202.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00242/0.4798, allocations: 1.135 MB / 267.6 MB, free: 37.14 MB / 202.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003651/0.4802, allocations: 0.9346 MB / 268.5 MB, free: 36.27 MB / 202.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003738/0.4806, allocations: 58.73 kB / 268.6 MB, free: 36.23 MB / 202.7 MB Notification: Performance of SimCode: time 1.743e-06/0.4806, allocations: 0 / 268.6 MB, free: 36.23 MB / 202.7 MB Notification: Performance of Templates: time 0.0211/0.5017, allocations: 17.53 MB / 286.1 MB, free: 19.2 MB / 202.7 MB