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.1 MB / 126.7 MB, free: 6.145 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000276/0.0002758, allocations: 8 kB / 158.3 MB, free: 15.13 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05786/0.05817, allocations: 25.17 MB / 183.5 MB, free: 5.922 MB / 154.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate): time 0.006149/0.06438, allocations: 3.697 MB / 187.2 MB, free: 2.215 MB / 154.7 MB Notification: Performance of NFInst.instExpressions: time 0.003462/0.06791, allocations: 1.226 MB / 188.4 MB, free: 0.9883 MB / 154.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000491/0.06845, allocations: 8 kB / 188.4 MB, free: 0.9805 MB / 154.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002054/0.06867, allocations: 79.36 kB / 188.5 MB, free: 0.9023 MB / 154.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007812/0.06947, allocations: 279.2 kB / 188.8 MB, free: 0.6289 MB / 154.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009936/0.07047, allocations: 267.5 kB / 189.1 MB, free: 376 kB / 154.7 MB Notification: Performance of NFFlatten.flatten: time 0.001435/0.07193, allocations: 0.758 MB / 189.8 MB, free: 15.61 MB / 170.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004773/0.07242, allocations: 195.6 kB / 190 MB, free: 15.39 MB / 170.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006789/0.07312, allocations: 426.6 kB / 190.4 MB, free: 14.98 MB / 170.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009531/0.07408, allocations: 0.5255 MB / 190.9 MB, free: 14.45 MB / 170.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001996/0.0743, allocations: 60 kB / 191 MB, free: 14.39 MB / 170.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002822/0.07459, allocations: 64 kB / 191.1 MB, free: 14.33 MB / 170.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002721/0.07488, allocations: 191.3 kB / 191.3 MB, free: 14.14 MB / 170.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002626/0.07515, allocations: 165.3 kB / 191.4 MB, free: 13.97 MB / 170.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001368/0.07653, allocations: 0.8531 MB / 192.3 MB, free: 13.12 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.07656, allocations: 4 kB / 192.3 MB, free: 13.11 MB / 170.7 MB Notification: Performance of FrontEnd: time 2.504e-06/0.07657, allocations: 4 kB / 192.3 MB, free: 13.11 MB / 170.7 MB Notification: Performance of Transformations before backend: time 1.365e-05/0.0766, allocations: 0 / 192.3 MB, free: 13.11 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.006303/0.08291, allocations: 1.337 MB / 193.6 MB, free: 11.71 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.785e-05/0.08299, allocations: 8.031 kB / 193.6 MB, free: 11.71 MB / 170.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002967/0.08329, allocations: 106.5 kB / 193.7 MB, free: 11.59 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002662/0.08357, allocations: 86.97 kB / 193.8 MB, free: 11.51 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009594/0.08454, allocations: 472.4 kB / 194.3 MB, free: 11.01 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.202e-05/0.08462, allocations: 49.31 kB / 194.3 MB, free: 10.96 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000221/0.08485, allocations: 67.89 kB / 194.4 MB, free: 10.89 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004991/0.08985, allocations: 1.103 MB / 195.5 MB, free: 9.781 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.091e-05/0.08994, allocations: 4 kB / 195.5 MB, free: 9.777 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00015/0.0901, allocations: 35.95 kB / 195.5 MB, free: 9.742 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.294e-05/0.09013, allocations: 16 kB / 195.5 MB, free: 9.727 MB / 170.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007875/0.09802, allocations: 1.535 MB / 197.1 MB, free: 8.191 MB / 170.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01018/0.1082, allocations: 3.077 MB / 200.2 MB, free: 4.973 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005894/0.1142, allocations: 1.114 MB / 201.3 MB, free: 3.848 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001243/0.1144, allocations: 16.5 kB / 201.3 MB, free: 3.832 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004517/0.1189, allocations: 0.909 MB / 202.2 MB, free: 2.891 MB / 170.7 MB Notification: Performance of pre-optimization done (n=69): time 4.118e-06/0.119, allocations: 0 / 202.2 MB, free: 2.891 MB / 170.7 MB Notification: Performance of matching and sorting (n=71): time 0.1956/0.3146, allocations: 7.219 MB / 209.4 MB, free: 23.57 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.267e-05/0.3147, allocations: 148.2 kB / 209.6 MB, free: 23.41 MB / 170.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008876/0.3156, allocations: 477.4 kB / 210 MB, free: 23.19 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002394/0.3159, allocations: 41.52 kB / 210.1 MB, free: 23.14 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002345/0.3161, allocations: 364 kB / 210.4 MB, free: 22.83 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000319/0.3164, allocations: 242.8 kB / 210.7 MB, free: 22.65 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.82e-05/0.3166, allocations: 14.56 kB / 210.7 MB, free: 22.64 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 8.533e-05/0.3166, allocations: 337.6 kB / 211 MB, free: 22.32 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003642/0.3203, allocations: 0.6836 MB / 211.7 MB, free: 22.15 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003766/0.3241, allocations: 0.8159 MB / 212.5 MB, free: 21.82 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003688/0.3278, allocations: 0.712 MB / 213.2 MB, free: 21.5 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.117e-06/0.3279, allocations: 0 / 213.2 MB, free: 21.5 MB / 170.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.01483/0.3427, allocations: 2.545 MB / 215.8 MB, free: 20.35 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.375e-05/0.3428, allocations: 5.406 kB / 215.8 MB, free: 20.35 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.578e-05/0.3428, allocations: 3.188 kB / 215.8 MB, free: 20.35 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01221/0.3551, allocations: 1.563 MB / 217.3 MB, free: 19.69 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001913/0.357, allocations: 224 kB / 217.5 MB, free: 19.62 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008258/0.3653, allocations: 4.013 MB / 221.6 MB, free: 15.5 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002526/0.3679, allocations: 227.6 kB / 221.8 MB, free: 15.27 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001578/0.3681, allocations: 31.98 kB / 221.8 MB, free: 15.24 MB / 170.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.0006892/0.3688, allocations: 258.5 kB / 222.1 MB, free: 14.99 MB / 170.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002071/0.369, allocations: 67.2 kB / 222.1 MB, free: 14.92 MB / 170.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01488/0.3839, allocations: 2.564 MB / 224.7 MB, free: 12.34 MB / 170.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.525e-05/0.384, allocations: 8 kB / 224.7 MB, free: 12.33 MB / 170.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.705e-06/0.384, allocations: 0 / 224.7 MB, free: 12.33 MB / 170.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.125e-05/0.384, allocations: 7.938 kB / 224.7 MB, free: 12.32 MB / 170.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00177/0.3858, allocations: 0.892 MB / 225.6 MB, free: 11.41 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.324e-06/0.3858, allocations: 0 / 225.6 MB, free: 11.41 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001683/0.3875, allocations: 176.6 kB / 225.8 MB, free: 11.24 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01149/0.3991, allocations: 1.565 MB / 227.3 MB, free: 9.672 MB / 170.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002505/0.3994, allocations: 23.97 kB / 227.4 MB, free: 9.648 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008176/0.4076, allocations: 4.035 MB / 231.4 MB, free: 5.43 MB / 170.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.108e-06/0.4076, allocations: 0.875 kB / 231.4 MB, free: 5.43 MB / 170.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01839/0.426, allocations: 3.37 MB / 234.8 MB, free: 2.035 MB / 170.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006189/0.4267, allocations: 224.2 kB / 235 MB, free: 1.797 MB / 170.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002478/0.4269, allocations: 23.98 kB / 235 MB, free: 1.773 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002288/0.4292, allocations: 215.7 kB / 235.2 MB, free: 1.562 MB / 170.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000237/0.4295, allocations: 71.88 kB / 235.3 MB, free: 1.496 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001345/0.4296, allocations: 29.7 kB / 235.3 MB, free: 1.469 MB / 170.7 MB Notification: Performance of sorting global known variables: time 0.0004723/0.4301, allocations: 322.9 kB / 235.6 MB, free: 1.156 MB / 170.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.4301, allocations: 0 / 235.6 MB, free: 1.156 MB / 170.7 MB Notification: Performance of remove unused functions: time 0.001074/0.4312, allocations: 229.8 kB / 235.9 MB, free: 0.9336 MB / 170.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.02027/0.4515, allocations: 3.928 MB / 239.8 MB, free: 12.96 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.008984/0.4605, allocations: 1.785 MB / 241.6 MB, free: 11.17 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 7.393e-06/0.4606, allocations: 0.625 kB / 241.6 MB, free: 11.17 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004925/0.4655, allocations: 1.002 MB / 242.6 MB, free: 10.16 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001373/0.467, allocations: 143.2 kB / 242.7 MB, free: 10.02 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03356/0.5005, allocations: 7.317 MB / 250 MB, free: 2.605 MB / 186.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006441/0.5012, allocations: 0.938 MB / 251 MB, free: 1.641 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008722/0.5021, allocations: 259.3 kB / 251.2 MB, free: 1.387 MB / 186.7 MB Notification: Performance of SimCode: time 1.112e-06/0.5021, allocations: 0 / 251.2 MB, free: 1.387 MB / 186.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.028/3.53, allocations: 20.52 MB / 271.7 MB, free: 12.86 MB / 218.7 MB