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.033/1.033, allocations: 111.1 MB / 126.7 MB, free: 6.145 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002747/0.0002749, allocations: 7.984 kB / 158.4 MB, free: 15.08 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05838/0.05868, allocations: 25.18 MB / 183.6 MB, free: 5.859 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2218/0.2805, allocations: 38.9 MB / 222.5 MB, free: 4.914 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002381/0.2808, allocations: 63.41 kB / 222.6 MB, free: 4.906 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06525/0.3461, allocations: 13.69 MB / 236.3 MB, free: 11.1 MB / 186.7 MB Notification: Performance of FrontEnd: time 1.734e-06/0.3461, allocations: 4 kB / 236.3 MB, free: 11.1 MB / 186.7 MB Notification: Performance of Transformations before backend: time 4.08e-05/0.3462, allocations: 12 kB / 236.3 MB, free: 11.09 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.006026/0.3522, allocations: 1.338 MB / 237.6 MB, free: 9.742 MB / 186.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.54e-05/0.3523, allocations: 8.031 kB / 237.6 MB, free: 9.734 MB / 186.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000226/0.3525, allocations: 105.8 kB / 237.7 MB, free: 9.66 MB / 186.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002558/0.3528, allocations: 86.97 kB / 237.8 MB, free: 9.574 MB / 186.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009017/0.3537, allocations: 475.1 kB / 238.3 MB, free: 9.148 MB / 186.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.298e-05/0.3538, allocations: 48.56 kB / 238.3 MB, free: 9.121 MB / 186.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002262/0.354, allocations: 70.11 kB / 238.4 MB, free: 9.074 MB / 186.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004588/0.3586, allocations: 1.102 MB / 239.5 MB, free: 8.223 MB / 186.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.931e-05/0.3587, allocations: 4 kB / 239.5 MB, free: 8.219 MB / 186.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001384/0.3588, allocations: 30.88 kB / 239.5 MB, free: 8.211 MB / 186.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.664e-05/0.3588, allocations: 16 kB / 239.5 MB, free: 8.195 MB / 186.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00741/0.3663, allocations: 1.529 MB / 241.1 MB, free: 6.992 MB / 186.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009096/0.3754, allocations: 2.884 MB / 244 MB, free: 4.742 MB / 186.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005764/0.3812, allocations: 1.113 MB / 245.1 MB, free: 3.883 MB / 186.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001075/0.3813, allocations: 16.53 kB / 245.1 MB, free: 3.867 MB / 186.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004622/0.386, allocations: 0.9057 MB / 246 MB, free: 3.109 MB / 186.7 MB Notification: Performance of pre-optimization done (n=69): time 3.646e-06/0.386, allocations: 0 / 246 MB, free: 3.109 MB / 186.7 MB Notification: Performance of matching and sorting (n=71): time 0.04721/0.4332, allocations: 7.458 MB / 253.4 MB, free: 12.23 MB / 202.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001317/0.4334, allocations: 145.1 kB / 253.6 MB, free: 12.06 MB / 202.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001169/0.4346, allocations: 418 kB / 254 MB, free: 11.65 MB / 202.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003002/0.4349, allocations: 45.64 kB / 254 MB, free: 11.6 MB / 202.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004671/0.4354, allocations: 366.6 kB / 254.4 MB, free: 11.23 MB / 202.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005035/0.4359, allocations: 232.7 kB / 254.6 MB, free: 11 MB / 202.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001491/0.4361, allocations: 12 kB / 254.6 MB, free: 10.99 MB / 202.7 MB Notification: Performance of setup shared object (initialization): time 0.000214/0.4363, allocations: 347.4 kB / 255 MB, free: 10.64 MB / 202.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003587/0.4399, allocations: 0.685 MB / 255.7 MB, free: 9.961 MB / 202.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003812/0.4438, allocations: 0.8067 MB / 256.5 MB, free: 9.105 MB / 202.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003819/0.4476, allocations: 0.7176 MB / 257.2 MB, free: 8.395 MB / 202.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.803e-06/0.4477, allocations: 0 / 257.2 MB, free: 8.395 MB / 202.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.01772/0.4654, allocations: 2.763 MB / 260 MB, free: 5.613 MB / 202.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.076e-05/0.4655, allocations: 8 kB / 260 MB, free: 5.605 MB / 202.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.608e-05/0.4655, allocations: 4 kB / 260 MB, free: 5.602 MB / 202.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0126/0.4781, allocations: 1.575 MB / 261.5 MB, free: 4.016 MB / 202.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002051/0.4802, allocations: 219.7 kB / 261.8 MB, free: 3.801 MB / 202.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009421/0.4897, allocations: 4.018 MB / 265.8 MB, free: 15.59 MB / 218.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002682/0.4924, allocations: 215.8 kB / 266 MB, free: 15.38 MB / 218.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001417/0.4926, allocations: 31.98 kB / 266 MB, free: 15.35 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.0007964/0.4934, allocations: 266 kB / 266.3 MB, free: 15.08 MB / 218.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002096/0.4936, allocations: 63.25 kB / 266.3 MB, free: 15.02 MB / 218.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01529/0.5089, allocations: 2.539 MB / 268.9 MB, free: 12.46 MB / 218.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.698e-05/0.509, allocations: 8 kB / 268.9 MB, free: 12.45 MB / 218.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.017e-06/0.509, allocations: 4 kB / 268.9 MB, free: 12.45 MB / 218.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.538e-05/0.509, allocations: 7.984 kB / 268.9 MB, free: 12.44 MB / 218.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002207/0.5113, allocations: 0.8961 MB / 269.8 MB, free: 11.49 MB / 218.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.336e-06/0.5113, allocations: 3.984 kB / 269.8 MB, free: 11.48 MB / 218.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001789/0.5131, allocations: 175.8 kB / 270 MB, free: 11.31 MB / 218.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01186/0.525, allocations: 1.559 MB / 271.5 MB, free: 9.742 MB / 218.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000273/0.5253, allocations: 23.97 kB / 271.5 MB, free: 9.719 MB / 218.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009156/0.5345, allocations: 4.045 MB / 275.6 MB, free: 5.488 MB / 218.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.012e-06/0.5345, allocations: 3.953 kB / 275.6 MB, free: 5.484 MB / 218.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01911/0.5537, allocations: 3.315 MB / 278.9 MB, free: 2.137 MB / 218.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006758/0.5544, allocations: 240.1 kB / 279.1 MB, free: 1.883 MB / 218.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002212/0.5546, allocations: 23.94 kB / 279.2 MB, free: 1.859 MB / 218.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00231/0.557, allocations: 207.8 kB / 279.4 MB, free: 1.656 MB / 218.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002338/0.5572, allocations: 64.56 kB / 279.4 MB, free: 1.594 MB / 218.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001196/0.5573, allocations: 24.16 kB / 279.5 MB, free: 1.57 MB / 218.7 MB Notification: Performance of sorting global known variables: time 0.0005979/0.5579, allocations: 330.9 kB / 279.8 MB, free: 1.246 MB / 218.7 MB Notification: Performance of sort global known variables: time 3.877e-06/0.558, allocations: 4 kB / 279.8 MB, free: 1.242 MB / 218.7 MB Notification: Performance of remove unused functions: time 0.001085/0.5591, allocations: 231.9 kB / 280 MB, free: 1.016 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.01945/0.5785, allocations: 3.911 MB / 283.9 MB, free: 13.07 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.008471/0.5871, allocations: 1.774 MB / 285.7 MB, free: 11.27 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 5.831e-06/0.5871, allocations: 0 / 285.7 MB, free: 11.27 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004572/0.5917, allocations: 1.01 MB / 286.7 MB, free: 10.25 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001352/0.5931, allocations: 142.2 kB / 286.8 MB, free: 10.11 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03229/0.6254, allocations: 8.8 MB / 295.6 MB, free: 1.188 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006491/0.6261, allocations: 0.9381 MB / 296.6 MB, free: 224 kB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.1461/0.7722, allocations: 256.3 kB / 296.8 MB, free: 72.33 MB / 234.7 MB Notification: Performance of SimCode: time 1.273e-06/0.7723, allocations: 1.219 kB / 296.8 MB, free: 72.33 MB / 234.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.968/3.74, allocations: 20.52 MB / 317.4 MB, free: 67.03 MB / 234.7 MB