Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.conf.json Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u,fileNamePrefix="Buildings_7_0_0_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_u",fmuType="me",version="2.0",platforms={"static"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.289/2.289, allocations: 248.6 MB / 255.9 MB, free: 7.133 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001703/0.001703, allocations: 192.2 kB / 315.1 MB, free: 4.281 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.827/1.827, allocations: 205.1 MB / 0.5658 GB, free: 400 kB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001294/0.001294, allocations: 95.25 kB / 0.67 GB, free: 5.594 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.459/0.4603, allocations: 112.4 MB / 0.7797 GB, free: 103.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2078/0.6682, allocations: 106.2 MB / 0.8835 GB, free: 13.39 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.511/2.179, allocations: 440.5 MB / 1.314 GB, free: 258.8 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004943/2.179, allocations: 96.3 kB / 1.314 GB, free: 258.8 MB / 0.8698 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 311 * Number of variables: 311 Notification: Performance of Generate backend data structure: time 5.062/7.242, allocations: 1.106 GB / 2.42 GB, free: 124.2 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 4.08e-05/7.242, allocations: 7.781 kB / 2.42 GB, free: 124.2 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003149/7.245, allocations: 397.2 kB / 2.42 GB, free: 124.1 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01022/7.255, allocations: 2.487 MB / 2.422 GB, free: 123.6 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.65e-05/7.255, allocations: 48.84 kB / 2.422 GB, free: 123.6 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004385/7.256, allocations: 75.81 kB / 2.422 GB, free: 123.6 MB / 0.8855 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0031/7.259, allocations: 0.8681 MB / 2.423 GB, free: 123.6 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003273/7.262, allocations: 1.183 MB / 2.424 GB, free: 123.3 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.096e-05/7.262, allocations: 10.72 kB / 2.424 GB, free: 123.3 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001819/7.262, allocations: 3.031 kB / 2.424 GB, free: 123.3 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.291e-05/7.263, allocations: 33.12 kB / 2.424 GB, free: 123.3 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01427/7.277, allocations: 7.652 MB / 2.432 GB, free: 118.8 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001717/7.279, allocations: 0.6561 MB / 2.433 GB, free: 118.8 MB / 0.8855 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007649/7.279, allocations: 367.7 kB / 2.433 GB, free: 118.8 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005388/7.285, allocations: 2.142 MB / 2.435 GB, free: 117.5 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008921/7.286, allocations: 378 kB / 2.435 GB, free: 117.5 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=72): time 4.458e-06/7.286, allocations: 0 / 2.435 GB, free: 117.5 MB / 0.8855 GB Notification: Performance of matching and sorting (n=72): time 0.003587/7.289, allocations: 0.8575 MB / 2.436 GB, free: 117.3 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.445e-05/7.289, allocations: 167.9 kB / 2.436 GB, free: 117.1 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002828/7.292, allocations: 1.205 MB / 2.438 GB, free: 117 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 0.000314/7.293, allocations: 25.7 kB / 2.438 GB, free: 116.9 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006876/7.293, allocations: 0.5848 MB / 2.438 GB, free: 116.6 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004318/7.294, allocations: 245.1 kB / 2.438 GB, free: 116.5 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.471e-05/7.294, allocations: 0 / 2.438 GB, free: 116.5 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001124/7.294, allocations: 350.7 kB / 2.439 GB, free: 116.1 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008101/7.295, allocations: 301.9 kB / 2.439 GB, free: 116.1 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001056/7.296, allocations: 0.6654 MB / 2.44 GB, free: 115.7 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002237/7.298, allocations: 0.49 MB / 2.44 GB, free: 115.7 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.307e-05/7.298, allocations: 0 / 2.44 GB, free: 115.7 MB / 0.8855 GB Notification: Performance of matching and sorting (n=129) (initialization): time 0.004122/7.302, allocations: 1.155 MB / 2.441 GB, free: 115.5 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 0.000795/7.303, allocations: 3.701 MB / 2.445 GB, free: 111.7 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.727e-05/7.303, allocations: 9.5 kB / 2.445 GB, free: 111.7 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.809e-05/7.303, allocations: 17.84 kB / 2.445 GB, free: 111.7 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002212/7.306, allocations: 264 kB / 2.445 GB, free: 111.7 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.366e-05/7.306, allocations: 22.14 kB / 2.445 GB, free: 111.7 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002669/7.308, allocations: 169.4 kB / 2.445 GB, free: 111.6 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002485/7.309, allocations: 54.2 kB / 2.445 GB, free: 111.6 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.253e-05/7.309, allocations: 3.938 kB / 2.445 GB, free: 111.6 MB / 0.8855 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003473/7.312, allocations: 0.9232 MB / 2.446 GB, free: 111.6 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.025e-05/7.312, allocations: 17.33 kB / 2.446 GB, free: 111.6 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.416e-05/7.312, allocations: 16.97 kB / 2.446 GB, free: 111.6 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001968/7.314, allocations: 264.2 kB / 2.447 GB, free: 111.6 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.946e-05/7.314, allocations: 16.91 kB / 2.447 GB, free: 111.6 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002568/7.317, allocations: 159 kB / 2.447 GB, free: 111.5 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002164/7.317, allocations: 52.27 kB / 2.447 GB, free: 111.5 MB / 0.8855 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 41 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,$PRE.TSet.T_start,TSet.T_start,$PRE.TSet.count,TSet.count,conPI.I.trigger_internal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (125): * Single equations (assignments): 121 * Array equations: 2 * Algorithm blocks: 1 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004575/7.318, allocations: 136.2 kB / 2.447 GB, free: 111.4 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007882/7.318, allocations: 175 kB / 2.447 GB, free: 111.3 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004239/7.323, allocations: 1.079 MB / 2.448 GB, free: 111.3 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.167e-05/7.323, allocations: 13.88 kB / 2.448 GB, free: 111.3 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.235e-05/7.323, allocations: 2.812 kB / 2.448 GB, free: 111.3 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002316/7.325, allocations: 0.7414 MB / 2.449 GB, free: 111.2 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006602/7.332, allocations: 2.203 MB / 2.451 GB, free: 110.8 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.478e-06/7.332, allocations: 10.56 kB / 2.451 GB, free: 110.8 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001623/7.333, allocations: 166 kB / 2.451 GB, free: 110.8 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002438/7.334, allocations: 40.55 kB / 2.451 GB, free: 110.8 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001011/7.334, allocations: 13.62 kB / 2.451 GB, free: 110.8 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001079/7.335, allocations: 1.258 MB / 2.453 GB, free: 109.6 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.519e-06/7.335, allocations: 1.688 kB / 2.453 GB, free: 109.6 MB / 0.8855 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004036/7.339, allocations: 1.472 MB / 2.454 GB, free: 109.3 MB / 0.8855 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.005293/7.344, allocations: 2.342 MB / 2.456 GB, free: 108.6 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001369/7.346, allocations: 357.5 kB / 2.457 GB, free: 108.4 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006193/7.346, allocations: 0 / 2.457 GB, free: 108.4 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002406/7.349, allocations: 103.4 kB / 2.457 GB, free: 108.4 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002303/7.349, allocations: 52.64 kB / 2.457 GB, free: 108.4 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001418/7.349, allocations: 40.31 kB / 2.457 GB, free: 108.4 MB / 0.8855 GB Notification: Performance of sort global known variables: time 0.002163/7.351, allocations: 0.9012 MB / 2.458 GB, free: 108.3 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.008435/7.36, allocations: 1.397 MB / 2.459 GB, free: 108.1 MB / 0.8855 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 6 (vol.dynBal.U,mov.filter.x[1],mov.filter.x[2],conPI.I.y,THeaOut.T,hea.vol.dynBal.U) * Number of discrete variables: 3 ($whenCondition1,TSet.T_start,TSet.count) * Number of discrete states: 1 (TSet.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (81): * Single equations (assignments): 73 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 5 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003128/7.363, allocations: 1.136 MB / 2.46 GB, free: 107.8 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0039/7.367, allocations: 1.443 MB / 2.462 GB, free: 107.7 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 7.965e-06/7.367, allocations: 1.594 kB / 2.462 GB, free: 107.7 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.001208/7.368, allocations: 493.4 kB / 2.462 GB, free: 107.6 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006669/7.375, allocations: 0.6964 MB / 2.463 GB, free: 107.5 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00955/7.385, allocations: 2.429 MB / 2.465 GB, free: 106.6 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002112/7.387, allocations: 1.625 MB / 2.467 GB, free: 105.8 MB / 0.8855 GB Notification: Performance of SimCode: time 1.793e-06/7.387, allocations: 2.688 kB / 2.467 GB, free: 105.8 MB / 0.8855 GB