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 1.101/1.101, allocations: 111.1 MB / 126.7 MB, free: 6.129 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002656/0.0002657, allocations: 8 kB / 158.3 MB, free: 15.19 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0449/0.04519, allocations: 25.17 MB / 183.5 MB, free: 5.98 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1796/0.2249, allocations: 38.91 MB / 222.4 MB, free: 5.316 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001998/0.2251, allocations: 67.05 kB / 222.5 MB, free: 5.305 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05492/0.2801, allocations: 13.7 MB / 236.2 MB, free: 11.6 MB / 186.7 MB Notification: Performance of FrontEnd: time 2.069e-06/0.2801, allocations: 0 / 236.2 MB, free: 11.6 MB / 186.7 MB Notification: Performance of Transformations before backend: time 4.14e-05/0.2802, allocations: 12 kB / 236.2 MB, free: 11.59 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.004413/0.2846, allocations: 1.331 MB / 237.5 MB, free: 10.25 MB / 186.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.044e-05/0.2847, allocations: 12.03 kB / 237.5 MB, free: 10.24 MB / 186.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003084/0.285, allocations: 90.95 kB / 237.6 MB, free: 10.15 MB / 186.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009237/0.2859, allocations: 471.8 kB / 238.1 MB, free: 9.727 MB / 186.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.908e-05/0.286, allocations: 43.62 kB / 238.1 MB, free: 9.703 MB / 186.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002024/0.2862, allocations: 69.64 kB / 238.2 MB, free: 9.656 MB / 186.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003582/0.2898, allocations: 1.109 MB / 239.3 MB, free: 8.801 MB / 186.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.87e-05/0.2899, allocations: 0 / 239.3 MB, free: 8.801 MB / 186.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001349/0.29, allocations: 24.44 kB / 239.3 MB, free: 8.797 MB / 186.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.638e-05/0.29, allocations: 23.92 kB / 239.3 MB, free: 8.773 MB / 186.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005458/0.2955, allocations: 1.537 MB / 240.9 MB, free: 7.562 MB / 186.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007519/0.3031, allocations: 2.878 MB / 243.8 MB, free: 5.32 MB / 186.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003845/0.3069, allocations: 1.113 MB / 244.9 MB, free: 4.461 MB / 186.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.136e-05/0.3071, allocations: 20.47 kB / 244.9 MB, free: 4.445 MB / 186.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00294/0.31, allocations: 0.9057 MB / 245.8 MB, free: 3.684 MB / 186.7 MB Notification: Performance of pre-optimization done (n=69): time 4.742e-06/0.3101, allocations: 0 / 245.8 MB, free: 3.684 MB / 186.7 MB Notification: Performance of matching and sorting (n=71): time 0.03225/0.3423, allocations: 7.457 MB / 253.3 MB, free: 12.57 MB / 202.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001241/0.3425, allocations: 145.1 kB / 253.4 MB, free: 12.39 MB / 202.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007669/0.3433, allocations: 414.1 kB / 253.8 MB, free: 11.98 MB / 202.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002054/0.3435, allocations: 41.7 kB / 253.8 MB, free: 11.94 MB / 202.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003316/0.3438, allocations: 370.5 kB / 254.2 MB, free: 11.57 MB / 202.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003227/0.3442, allocations: 232.6 kB / 254.4 MB, free: 11.34 MB / 202.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.672e-05/0.3443, allocations: 12 kB / 254.4 MB, free: 11.33 MB / 202.7 MB Notification: Performance of setup shared object (initialization): time 0.0001973/0.3445, allocations: 347.4 kB / 254.8 MB, free: 10.98 MB / 202.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002581/0.3471, allocations: 0.685 MB / 255.5 MB, free: 10.3 MB / 202.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00271/0.3498, allocations: 0.8106 MB / 256.3 MB, free: 9.438 MB / 202.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002628/0.3525, allocations: 0.7176 MB / 257 MB, free: 8.727 MB / 202.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.507e-06/0.3525, allocations: 4 kB / 257 MB, free: 8.723 MB / 202.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.01189/0.3644, allocations: 2.759 MB / 259.8 MB, free: 5.945 MB / 202.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.812e-05/0.3645, allocations: 4.625 kB / 259.8 MB, free: 5.941 MB / 202.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.403e-05/0.3645, allocations: 8 kB / 259.8 MB, free: 5.934 MB / 202.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008548/0.373, allocations: 1.563 MB / 261.3 MB, free: 4.359 MB / 202.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001426/0.3745, allocations: 231.6 kB / 261.6 MB, free: 4.133 MB / 202.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007942/0.3825, allocations: 4.01 MB / 265.6 MB, free: 15.93 MB / 218.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001789/0.3843, allocations: 223.8 kB / 265.8 MB, free: 15.71 MB / 218.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001563/0.3845, allocations: 27.98 kB / 265.8 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.0007204/0.3852, allocations: 255.8 kB / 266.1 MB, free: 15.43 MB / 218.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002101/0.3855, allocations: 67.36 kB / 266.1 MB, free: 15.36 MB / 218.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01065/0.3961, allocations: 2.547 MB / 268.7 MB, free: 12.8 MB / 218.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.735e-05/0.3962, allocations: 8 kB / 268.7 MB, free: 12.79 MB / 218.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.902e-06/0.3962, allocations: 4 kB / 268.7 MB, free: 12.79 MB / 218.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.829e-05/0.3962, allocations: 3.984 kB / 268.7 MB, free: 12.78 MB / 218.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001797/0.398, allocations: 0.9 MB / 269.6 MB, free: 11.82 MB / 218.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.736e-06/0.3981, allocations: 0 / 269.6 MB, free: 11.82 MB / 218.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001207/0.3993, allocations: 175.8 kB / 269.8 MB, free: 11.65 MB / 218.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008208/0.4075, allocations: 1.555 MB / 271.3 MB, free: 10.09 MB / 218.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002222/0.4078, allocations: 31.97 kB / 271.3 MB, free: 10.05 MB / 218.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007845/0.4156, allocations: 4.033 MB / 275.4 MB, free: 5.836 MB / 218.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.607e-06/0.4157, allocations: 7.953 kB / 275.4 MB, free: 5.828 MB / 218.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01352/0.4292, allocations: 3.323 MB / 278.7 MB, free: 2.473 MB / 218.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000671/0.4299, allocations: 232 kB / 278.9 MB, free: 2.227 MB / 218.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002033/0.4302, allocations: 20.19 kB / 279 MB, free: 2.207 MB / 218.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001515/0.4317, allocations: 211.8 kB / 279.2 MB, free: 2 MB / 218.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002084/0.4319, allocations: 68.53 kB / 279.2 MB, free: 1.934 MB / 218.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001161/0.4321, allocations: 31.92 kB / 279.3 MB, free: 1.902 MB / 218.7 MB Notification: Performance of sorting global known variables: time 0.0005674/0.4326, allocations: 326.9 kB / 279.6 MB, free: 1.582 MB / 218.7 MB Notification: Performance of sort global known variables: time 7.06e-07/0.4327, allocations: 0 / 279.6 MB, free: 1.582 MB / 218.7 MB Notification: Performance of remove unused functions: time 0.001045/0.4337, allocations: 228 kB / 279.8 MB, free: 1.359 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.0003017/0.434, allocations: 139.1 kB / 279.9 MB, free: 1.215 MB / 218.7 MB Notification: Performance of simCode: created initialization part: time 0.00626/0.4403, allocations: 1.774 MB / 281.7 MB, free: 15.42 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 9.299e-06/0.4404, allocations: 4.625 kB / 281.7 MB, free: 15.42 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003584/0.4439, allocations: 1.009 MB / 282.7 MB, free: 14.39 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001051/0.445, allocations: 146.1 kB / 282.9 MB, free: 14.25 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004894/0.45, allocations: 2.024 MB / 284.9 MB, free: 12.19 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007213/0.4507, allocations: 0.942 MB / 285.8 MB, free: 11.22 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004217/0.4511, allocations: 51.41 kB / 285.9 MB, free: 11.17 MB / 234.7 MB Notification: Performance of SimCode: time 1.825e-06/0.4512, allocations: 0 / 285.9 MB, free: 11.17 MB / 234.7 MB Notification: Performance of Templates: time 0.1491/0.6003, allocations: 17.53 MB / 303.4 MB, free: 72.12 MB / 234.7 MB