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/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.21/1.21, allocations: 111.3 MB / 119.1 MB, free: 11.16 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 1.34e-05/1.344e-05, allocations: 0 / 148.1 MB, free: 6.23 MB / 122.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04561/0.04565, allocations: 25.17 MB / 173.3 MB, free: 13.01 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2112/0.2569, allocations: 38.15 MB / 211.4 MB, free: 7.039 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001922/0.2571, allocations: 60.94 kB / 211.5 MB, free: 7.039 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05633/0.3134, allocations: 13.58 MB / 225.1 MB, free: 3.129 MB / 170.7 MB Notification: Performance of FrontEnd: time 2.101e-06/0.3135, allocations: 0 / 225.1 MB, free: 3.129 MB / 170.7 MB Notification: Performance of Transformations before backend: time 3.404e-05/0.3135, allocations: 11.75 kB / 225.1 MB, free: 3.129 MB / 170.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.003821/0.3174, allocations: 1.253 MB / 226.3 MB, free: 2.359 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.128e-05/0.3174, allocations: 11.53 kB / 226.4 MB, free: 2.359 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002509/0.3177, allocations: 85.19 kB / 226.4 MB, free: 2.316 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007475/0.3184, allocations: 476.9 kB / 226.9 MB, free: 1.98 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.236e-05/0.3185, allocations: 27.28 kB / 226.9 MB, free: 1.977 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001625/0.3187, allocations: 34.62 kB / 227 MB, free: 1.977 MB / 170.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00202/0.3207, allocations: 0.8104 MB / 227.8 MB, free: 1.926 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001567/0.3223, allocations: 0.6613 MB / 228.4 MB, free: 1.758 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.641e-05/0.3223, allocations: 3.938 kB / 228.4 MB, free: 1.754 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001111/0.3225, allocations: 3.984 kB / 228.4 MB, free: 1.75 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.875e-05/0.3225, allocations: 15.31 kB / 228.5 MB, free: 1.75 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006854/0.3294, allocations: 2.784 MB / 231.2 MB, free: 460 kB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001416/0.3308, allocations: 0.6175 MB / 231.9 MB, free: 400 kB / 170.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008092/0.3316, allocations: 406.6 kB / 232.3 MB, free: 380 kB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.398e-05/0.3317, allocations: 19.34 kB / 232.3 MB, free: 372 kB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00109/0.3328, allocations: 0.5315 MB / 232.8 MB, free: 176 kB / 170.7 MB Notification: Performance of pre-optimization done (n=69): time 4.118e-06/0.3329, allocations: 0 / 232.8 MB, free: 176 kB / 170.7 MB Notification: Performance of matching and sorting (n=71): time 0.01318/0.346, allocations: 3.172 MB / 236 MB, free: 13.51 MB / 186.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001165/0.3462, allocations: 144.8 kB / 236.1 MB, free: 13.34 MB / 186.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006482/0.3469, allocations: 380 kB / 236.5 MB, free: 13.04 MB / 186.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001789/0.3471, allocations: 33.52 kB / 236.5 MB, free: 13 MB / 186.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003102/0.3474, allocations: 370.4 kB / 236.9 MB, free: 12.71 MB / 186.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002959/0.3477, allocations: 229.7 kB / 237.1 MB, free: 12.52 MB / 186.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.707e-05/0.3478, allocations: 0 / 237.1 MB, free: 12.52 MB / 186.7 MB Notification: Performance of setup shared object (initialization): time 0.0001875/0.348, allocations: 346.2 kB / 237.4 MB, free: 12.18 MB / 186.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008596/0.3489, allocations: 333.4 kB / 237.8 MB, free: 12.01 MB / 186.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009502/0.3498, allocations: 452.6 kB / 238.2 MB, free: 11.7 MB / 186.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001209/0.3511, allocations: 370.7 kB / 238.6 MB, free: 11.47 MB / 186.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.777e-06/0.3511, allocations: 4 kB / 238.6 MB, free: 11.47 MB / 186.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.007983/0.3591, allocations: 1.881 MB / 240.5 MB, free: 9.676 MB / 186.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.004e-05/0.3591, allocations: 4 kB / 240.5 MB, free: 9.672 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.374e-05/0.3592, allocations: 7.938 kB / 240.5 MB, free: 9.664 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00634/0.3655, allocations: 1.224 MB / 241.7 MB, free: 8.43 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001401/0.367, allocations: 227.7 kB / 241.9 MB, free: 8.207 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005979/0.373, allocations: 3.575 MB / 245.5 MB, free: 4.473 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001786/0.3748, allocations: 219.6 kB / 245.7 MB, free: 4.258 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001287/0.3749, allocations: 31.98 kB / 245.7 MB, free: 4.227 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.0004477/0.3754, allocations: 161.6 kB / 245.9 MB, free: 4.07 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001884/0.3756, allocations: 67.25 kB / 246 MB, free: 4.004 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006827/0.3824, allocations: 1.664 MB / 247.6 MB, free: 2.316 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.713e-05/0.3825, allocations: 11.94 kB / 247.6 MB, free: 2.305 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.038e-06/0.3825, allocations: 4 kB / 247.6 MB, free: 2.301 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.768e-05/0.3826, allocations: 3.984 kB / 247.6 MB, free: 2.297 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001684/0.3842, allocations: 0.8012 MB / 248.5 MB, free: 1.473 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.23e-06/0.3843, allocations: 7.984 kB / 248.5 MB, free: 1.465 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001189/0.3855, allocations: 183.8 kB / 248.6 MB, free: 1.285 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006282/0.3918, allocations: 1.244 MB / 249.9 MB, free: 32 kB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002024/0.392, allocations: 23.91 kB / 249.9 MB, free: 8 kB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005848/0.3979, allocations: 3.608 MB / 253.5 MB, free: 12.23 MB / 202.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.776e-06/0.3979, allocations: 4 kB / 253.5 MB, free: 12.23 MB / 202.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007977/0.4059, allocations: 2.098 MB / 255.6 MB, free: 10.11 MB / 202.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005993/0.4066, allocations: 232.2 kB / 255.8 MB, free: 9.859 MB / 202.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001739/0.4068, allocations: 4 kB / 255.8 MB, free: 9.855 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001507/0.4083, allocations: 203.8 kB / 256 MB, free: 9.656 MB / 202.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002107/0.4085, allocations: 68.62 kB / 256.1 MB, free: 9.586 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001226/0.4086, allocations: 31.97 kB / 256.1 MB, free: 9.555 MB / 202.7 MB Notification: Performance of sorting global known variables: time 0.0004797/0.4091, allocations: 283 kB / 256.4 MB, free: 9.277 MB / 202.7 MB Notification: Performance of sort global known variables: time 8.44e-07/0.4092, allocations: 4 kB / 256.4 MB, free: 9.273 MB / 202.7 MB Notification: Performance of remove unused functions: time 0.001042/0.4102, allocations: 211.9 kB / 256.6 MB, free: 9.066 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.0002936/0.4105, allocations: 119.2 kB / 256.7 MB, free: 8.941 MB / 202.7 MB Notification: Performance of simCode: created initialization part: time 0.002839/0.4134, allocations: 1.026 MB / 257.8 MB, free: 7.906 MB / 202.7 MB Notification: Performance of simCode: created event and clocks part: time 9.852e-06/0.4134, allocations: 4 kB / 257.8 MB, free: 7.902 MB / 202.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001859/0.4153, allocations: 0.6258 MB / 258.4 MB, free: 7.266 MB / 202.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009928/0.4163, allocations: 126.1 kB / 258.5 MB, free: 7.145 MB / 202.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002865/0.4192, allocations: 1.088 MB / 259.6 MB, free: 6.02 MB / 202.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006912/0.4199, allocations: 0.9383 MB / 260.6 MB, free: 5.051 MB / 202.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004363/0.4204, allocations: 51.41 kB / 260.6 MB, free: 5 MB / 202.7 MB Notification: Performance of SimCode: time 1.875e-06/0.4204, allocations: 0 / 260.6 MB, free: 5 MB / 202.7 MB Notification: Performance of Templates: time 0.02879/0.4492, allocations: 17.41 MB / 278 MB, free: 3.586 MB / 218.7 MB