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: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate,fileNamePrefix="Modelica_3_1_cpp_Modelica_Electrical_Analog_Examples_HeatingNPN_OrGate",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.042/1.042, allocations: 111.2 MB / 124.2 MB, free: 11.17 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 3.01e-05/3.027e-05, allocations: 4 kB / 154.4 MB, free: 13.06 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.174/0.1741, allocations: 25.15 MB / 179.5 MB, free: 0.8164 MB / 138.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.06997/0.2441, allocations: 38.82 MB / 218.3 MB, free: 10.29 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002524/0.2444, allocations: 71.95 kB / 218.4 MB, free: 10.22 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07119/0.3156, allocations: 13.69 MB / 232.1 MB, free: 12.48 MB / 202.7 MB Notification: Performance of FrontEnd: time 2.063e-06/0.3157, allocations: 0 / 232.1 MB, free: 12.48 MB / 202.7 MB Notification: Performance of Transformations before backend: time 4.205e-05/0.3158, allocations: 12 kB / 232.1 MB, free: 12.47 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.007666/0.3234, allocations: 1.257 MB / 233.4 MB, free: 11.16 MB / 202.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.568e-05/0.3235, allocations: 8.031 kB / 233.4 MB, free: 11.16 MB / 202.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005078/0.324, allocations: 106.5 kB / 233.5 MB, free: 11.04 MB / 202.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004594/0.3245, allocations: 98.88 kB / 233.6 MB, free: 10.95 MB / 202.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001598/0.3262, allocations: 468.5 kB / 234 MB, free: 10.45 MB / 202.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.896e-05/0.3263, allocations: 45.31 kB / 234.1 MB, free: 10.4 MB / 202.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003427/0.3266, allocations: 63.95 kB / 234.1 MB, free: 10.34 MB / 202.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002557/0.3292, allocations: 0.7483 MB / 234.9 MB, free: 9.586 MB / 202.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.294e-05/0.3293, allocations: 0 / 234.9 MB, free: 9.586 MB / 202.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001521/0.3295, allocations: 31.98 kB / 234.9 MB, free: 9.555 MB / 202.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.014e-05/0.3295, allocations: 12 kB / 234.9 MB, free: 9.543 MB / 202.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00268/0.3322, allocations: 0.8331 MB / 235.8 MB, free: 8.707 MB / 202.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009772/0.342, allocations: 2.89 MB / 238.7 MB, free: 5.727 MB / 202.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002082/0.3441, allocations: 0.634 MB / 239.3 MB, free: 5.082 MB / 202.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001217/0.3454, allocations: 426.5 kB / 239.7 MB, free: 4.664 MB / 202.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001031/0.3455, allocations: 24.47 kB / 239.7 MB, free: 4.637 MB / 202.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001524/0.347, allocations: 0.5502 MB / 240.3 MB, free: 4.062 MB / 202.7 MB Notification: Performance of pre-optimization done (n=69): time 4.208e-06/0.347, allocations: 4 kB / 240.3 MB, free: 4.059 MB / 202.7 MB Notification: Performance of matching and sorting (n=71): time 0.01785/0.3649, allocations: 3.213 MB / 243.5 MB, free: 0.7812 MB / 202.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001202/0.3651, allocations: 145.3 kB / 243.6 MB, free: 0.6094 MB / 202.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008198/0.3659, allocations: 416.7 kB / 244 MB, free: 208 kB / 202.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002485/0.3662, allocations: 37.7 kB / 244.1 MB, free: 164 kB / 202.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.1517/0.5179, allocations: 361.1 kB / 244.4 MB, free: 50.3 MB / 202.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005147/0.5185, allocations: 238.6 kB / 244.7 MB, free: 50.21 MB / 202.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001059/0.5186, allocations: 16.84 kB / 244.7 MB, free: 50.21 MB / 202.7 MB Notification: Performance of setup shared object (initialization): time 0.000103/0.5187, allocations: 343.5 kB / 245 MB, free: 49.9 MB / 202.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00124/0.52, allocations: 345.1 kB / 245.4 MB, free: 49.9 MB / 202.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001479/0.5215, allocations: 472.8 kB / 245.8 MB, free: 49.79 MB / 202.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001429/0.523, allocations: 364.5 kB / 246.2 MB, free: 49.78 MB / 202.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.061e-05/0.523, allocations: 1.406 kB / 246.2 MB, free: 49.78 MB / 202.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.0111/0.5341, allocations: 1.923 MB / 248.1 MB, free: 49.68 MB / 202.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.92e-05/0.5342, allocations: 10.19 kB / 248.1 MB, free: 49.68 MB / 202.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.469e-05/0.5342, allocations: 0 / 248.1 MB, free: 49.68 MB / 202.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009971/0.5442, allocations: 1.3 MB / 249.4 MB, free: 49.66 MB / 202.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001994/0.5463, allocations: 227.3 kB / 249.6 MB, free: 49.66 MB / 202.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005461/0.5518, allocations: 3.565 MB / 253.2 MB, free: 47.11 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002574/0.5544, allocations: 217.8 kB / 253.4 MB, free: 47.1 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001462/0.5546, allocations: 33.39 kB / 253.4 MB, free: 47.09 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.000458/0.555, allocations: 192.3 kB / 253.6 MB, free: 46.95 MB / 202.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001836/0.5552, allocations: 71.83 kB / 253.7 MB, free: 46.91 MB / 202.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008729/0.564, allocations: 1.71 MB / 255.4 MB, free: 46.42 MB / 202.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.513e-05/0.564, allocations: 7.281 kB / 255.4 MB, free: 46.42 MB / 202.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.723e-06/0.5641, allocations: 0 / 255.4 MB, free: 46.42 MB / 202.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.047e-05/0.5641, allocations: 3.281 kB / 255.4 MB, free: 46.42 MB / 202.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001667/0.5658, allocations: 0.8947 MB / 256.3 MB, free: 45.98 MB / 202.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.071e-06/0.5658, allocations: 0 / 256.3 MB, free: 45.98 MB / 202.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001696/0.5675, allocations: 189.8 kB / 256.5 MB, free: 45.97 MB / 202.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009388/0.5769, allocations: 1.285 MB / 257.8 MB, free: 45.8 MB / 202.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002469/0.5772, allocations: 26.45 kB / 257.8 MB, free: 45.79 MB / 202.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005149/0.5824, allocations: 3.583 MB / 261.4 MB, free: 42.81 MB / 202.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.023e-06/0.5824, allocations: 7.562 kB / 261.4 MB, free: 42.81 MB / 202.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009844/0.5923, allocations: 2.148 MB / 263.5 MB, free: 41 MB / 202.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005724/0.5929, allocations: 233.2 kB / 263.8 MB, free: 40.79 MB / 202.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002029/0.5931, allocations: 19.56 kB / 263.8 MB, free: 40.78 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002325/0.5955, allocations: 216 kB / 264 MB, free: 40.62 MB / 202.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002374/0.5958, allocations: 61.47 kB / 264.1 MB, free: 40.59 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001253/0.5959, allocations: 25.34 kB / 264.1 MB, free: 40.57 MB / 202.7 MB Notification: Performance of sorting global known variables: time 0.0004781/0.5964, allocations: 321.9 kB / 264.4 MB, free: 40.27 MB / 202.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.5964, allocations: 0 / 264.4 MB, free: 40.27 MB / 202.7 MB Notification: Performance of remove unused functions: time 0.001015/0.5974, allocations: 231.9 kB / 264.6 MB, free: 40.05 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.01004/0.6075, allocations: 2.731 MB / 267.4 MB, free: 37.59 MB / 202.7 MB Notification: Performance of simCode: created initialization part: time 0.003204/0.6107, allocations: 1.092 MB / 268.5 MB, free: 36.54 MB / 202.7 MB Notification: Performance of simCode: created event and clocks part: time 8.486e-06/0.6108, allocations: 5.5 kB / 268.5 MB, free: 36.53 MB / 202.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001925/0.6127, allocations: 0.6452 MB / 269.1 MB, free: 35.91 MB / 202.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001374/0.6141, allocations: 149.6 kB / 269.3 MB, free: 35.8 MB / 202.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003525/0.6177, allocations: 1.262 MB / 270.5 MB, free: 34.62 MB / 202.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004011/0.6181, allocations: 0.9387 MB / 271.5 MB, free: 33.75 MB / 202.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007191/0.6188, allocations: 261.4 kB / 271.7 MB, free: 33.53 MB / 202.7 MB Notification: Performance of SimCode: time 1.323e-06/0.6189, allocations: 4 kB / 271.7 MB, free: 33.53 MB / 202.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.464/4.083, allocations: 20.5 MB / 292.2 MB, free: 13.17 MB / 202.7 MB