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/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.175/1.175, allocations: 111.2 MB / 119.1 MB, free: 11.18 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.7e-05/2.701e-05, allocations: 4 kB / 148.2 MB, free: 6.125 MB / 122.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05679/0.05685, allocations: 25.17 MB / 173.4 MB, free: 12.91 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2218/0.2787, allocations: 38.15 MB / 211.5 MB, free: 4.621 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002444/0.279, allocations: 62.8 kB / 211.6 MB, free: 4.621 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0656/0.3446, allocations: 13.57 MB / 225.2 MB, free: 440 kB / 170.7 MB Notification: Performance of FrontEnd: time 2.585e-06/0.3447, allocations: 0 / 225.2 MB, free: 440 kB / 170.7 MB Notification: Performance of Transformations before backend: time 4.099e-05/0.3447, allocations: 19.5 kB / 225.2 MB, free: 436 kB / 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.005933/0.3507, allocations: 1.244 MB / 226.4 MB, free: 15.67 MB / 186.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.988e-05/0.3507, allocations: 15.66 kB / 226.5 MB, free: 15.66 MB / 186.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003954/0.3511, allocations: 89.12 kB / 226.5 MB, free: 15.62 MB / 186.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001025/0.3522, allocations: 475 kB / 227 MB, free: 15.29 MB / 186.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.754e-05/0.3523, allocations: 18.84 kB / 227 MB, free: 15.29 MB / 186.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001954/0.3525, allocations: 45.89 kB / 227.1 MB, free: 15.28 MB / 186.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002175/0.3546, allocations: 0.7999 MB / 227.9 MB, free: 15.23 MB / 186.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001861/0.3565, allocations: 0.6646 MB / 228.5 MB, free: 15.06 MB / 186.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.055e-05/0.3566, allocations: 3.938 kB / 228.5 MB, free: 15.06 MB / 186.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001239/0.3567, allocations: 0 / 228.5 MB, free: 15.06 MB / 186.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.682e-05/0.3568, allocations: 15.31 kB / 228.6 MB, free: 15.06 MB / 186.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009441/0.3662, allocations: 2.789 MB / 231.3 MB, free: 13.76 MB / 186.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001726/0.368, allocations: 0.6125 MB / 232 MB, free: 13.7 MB / 186.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009783/0.369, allocations: 403.7 kB / 232.3 MB, free: 13.68 MB / 186.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001035/0.3691, allocations: 14.94 kB / 232.4 MB, free: 13.67 MB / 186.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001423/0.3706, allocations: 0.5346 MB / 232.9 MB, free: 13.27 MB / 186.7 MB Notification: Performance of pre-optimization done (n=69): time 4.449e-06/0.3706, allocations: 3.938 kB / 232.9 MB, free: 13.27 MB / 186.7 MB Notification: Performance of matching and sorting (n=71): time 0.01874/0.3894, allocations: 3.176 MB / 236.1 MB, free: 10.6 MB / 186.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001225/0.3895, allocations: 151 kB / 236.2 MB, free: 10.42 MB / 186.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007361/0.3903, allocations: 386 kB / 236.6 MB, free: 10.12 MB / 186.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002939/0.3906, allocations: 29.7 kB / 236.6 MB, free: 10.09 MB / 186.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003268/0.391, allocations: 370.3 kB / 237 MB, free: 9.805 MB / 186.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004268/0.3914, allocations: 221.2 kB / 237.2 MB, free: 9.613 MB / 186.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001048/0.3915, allocations: 0 / 237.2 MB, free: 9.613 MB / 186.7 MB Notification: Performance of setup shared object (initialization): time 0.0001831/0.3917, allocations: 353.2 kB / 237.6 MB, free: 9.273 MB / 186.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001072/0.3928, allocations: 326.3 kB / 237.9 MB, free: 9.105 MB / 186.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001281/0.3941, allocations: 455.8 kB / 238.3 MB, free: 8.785 MB / 186.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001555/0.3957, allocations: 372.3 kB / 238.7 MB, free: 8.562 MB / 186.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.063e-05/0.3958, allocations: 4 kB / 238.7 MB, free: 8.559 MB / 186.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.01147/0.4073, allocations: 1.879 MB / 240.6 MB, free: 6.758 MB / 186.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.058e-05/0.4073, allocations: 8 kB / 240.6 MB, free: 6.75 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.617e-05/0.4074, allocations: 4 kB / 240.6 MB, free: 6.746 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00911/0.4165, allocations: 1.224 MB / 241.8 MB, free: 5.516 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002128/0.4187, allocations: 231.7 kB / 242 MB, free: 5.289 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006746/0.4255, allocations: 3.575 MB / 245.6 MB, free: 1.551 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002697/0.4282, allocations: 215.7 kB / 245.8 MB, free: 1.34 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002658/0.4285, allocations: 31.97 kB / 245.8 MB, free: 1.309 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.0005341/0.4291, allocations: 161.3 kB / 246 MB, free: 1.152 MB / 186.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.009709/0.4388, allocations: 1.637 MB / 247.6 MB, free: 15.5 MB / 202.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004373/0.4393, allocations: 71.16 kB / 247.7 MB, free: 15.43 MB / 202.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009546/0.4488, allocations: 1.657 MB / 249.4 MB, free: 13.75 MB / 202.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.027e-05/0.4489, allocations: 4 kB / 249.4 MB, free: 13.75 MB / 202.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.324e-05/0.4489, allocations: 7.984 kB / 249.4 MB, free: 13.74 MB / 202.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.344e-05/0.449, allocations: 0 / 249.4 MB, free: 13.74 MB / 202.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001983/0.451, allocations: 0.8141 MB / 250.2 MB, free: 12.9 MB / 202.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.468e-06/0.451, allocations: 3.984 kB / 250.2 MB, free: 12.9 MB / 202.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001856/0.4529, allocations: 179.8 kB / 250.4 MB, free: 12.72 MB / 202.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009276/0.4622, allocations: 1.252 MB / 251.6 MB, free: 11.46 MB / 202.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002754/0.4625, allocations: 19.97 kB / 251.6 MB, free: 11.44 MB / 202.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006617/0.4692, allocations: 3.603 MB / 255.2 MB, free: 7.668 MB / 202.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.022e-06/0.4692, allocations: 0 / 255.2 MB, free: 7.668 MB / 202.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01101/0.4802, allocations: 2.102 MB / 257.3 MB, free: 5.539 MB / 202.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007524/0.481, allocations: 236.1 kB / 257.6 MB, free: 5.289 MB / 202.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002401/0.4813, allocations: 8 kB / 257.6 MB, free: 5.281 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00254/0.4839, allocations: 195.8 kB / 257.8 MB, free: 5.09 MB / 202.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003205/0.4842, allocations: 68.62 kB / 257.8 MB, free: 5.023 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001963/0.4845, allocations: 35.92 kB / 257.9 MB, free: 4.988 MB / 202.7 MB Notification: Performance of sorting global known variables: time 0.0005573/0.485, allocations: 291 kB / 258.2 MB, free: 4.703 MB / 202.7 MB Notification: Performance of sort global known variables: time 6.92e-07/0.485, allocations: 0 / 258.2 MB, free: 4.703 MB / 202.7 MB Notification: Performance of remove unused functions: time 0.001345/0.4864, allocations: 199.9 kB / 258.4 MB, free: 4.508 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.01141/0.4978, allocations: 2.682 MB / 261 MB, free: 1.789 MB / 202.7 MB Notification: Performance of simCode: created initialization part: time 0.003359/0.5013, allocations: 1.026 MB / 262.1 MB, free: 0.75 MB / 202.7 MB Notification: Performance of simCode: created event and clocks part: time 6.122e-06/0.5013, allocations: 0 / 262.1 MB, free: 0.75 MB / 202.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002032/0.5033, allocations: 0.6336 MB / 262.7 MB, free: 112 kB / 202.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001286/0.5047, allocations: 111.2 kB / 262.8 MB, free: 4 kB / 202.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003985/0.5087, allocations: 1.195 MB / 264 MB, free: 14.76 MB / 218.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006155/0.5093, allocations: 0.9345 MB / 264.9 MB, free: 13.79 MB / 218.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008129/0.5102, allocations: 267.3 kB / 265.2 MB, free: 13.53 MB / 218.7 MB Notification: Performance of SimCode: time 1.082e-06/0.5102, allocations: 3.938 kB / 265.2 MB, free: 13.53 MB / 218.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.141/3.651, allocations: 20.37 MB / 285.6 MB, free: 9.16 MB / 234.7 MB