Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.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_T,fileNamePrefix="Buildings_7_0_0_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_T",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.071/2.071, allocations: 248.6 MB / 255.9 MB, free: 7.145 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.001668/0.001668, allocations: 175.7 kB / 315.1 MB, free: 4.273 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.953/1.953, allocations: 205.1 MB / 0.5658 GB, free: 376 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.001272/0.001271, allocations: 97.88 kB / 0.67 GB, free: 5.578 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.4661/0.4674, allocations: 112.4 MB / 0.7797 GB, free: 103.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2172/0.6846, allocations: 106.2 MB / 0.8835 GB, free: 13.37 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.454/2.139, allocations: 447 MB / 1.32 GB, free: 256.5 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003554/2.139, allocations: 91.55 kB / 1.32 GB, free: 256.5 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: 282 * Number of variables: 282 Notification: Performance of Generate backend data structure: time 5.054/7.194, allocations: 1.138 GB / 2.458 GB, free: 124.9 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 4.686e-05/7.194, allocations: 11.28 kB / 2.458 GB, free: 124.9 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004149/7.198, allocations: 488.8 kB / 2.458 GB, free: 124.8 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009993/7.208, allocations: 2.326 MB / 2.461 GB, free: 123.8 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.423e-05/7.208, allocations: 34.62 kB / 2.461 GB, free: 123.8 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003763/7.208, allocations: 70.97 kB / 2.461 GB, free: 123.8 MB / 0.8855 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002597/7.211, allocations: 0.795 MB / 2.461 GB, free: 123.5 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004242/7.215, allocations: 1.095 MB / 2.463 GB, free: 122.9 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.137e-05/7.215, allocations: 1.125 kB / 2.463 GB, free: 122.9 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003068/7.216, allocations: 7.781 kB / 2.463 GB, free: 122.9 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.755e-05/7.216, allocations: 29.92 kB / 2.463 GB, free: 122.9 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01897/7.235, allocations: 6.914 MB / 2.469 GB, free: 117.7 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00183/7.237, allocations: 0.6161 MB / 2.47 GB, free: 117.5 MB / 0.8855 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008196/7.238, allocations: 321.3 kB / 2.47 GB, free: 117.3 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 0.007721/7.245, allocations: 2.814 MB / 2.473 GB, free: 115.1 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009596/7.246, allocations: 338.2 kB / 2.473 GB, free: 114.9 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=64): time 4.168e-06/7.246, allocations: 0 / 2.473 GB, free: 114.9 MB / 0.8855 GB Notification: Performance of matching and sorting (n=64): time 0.004428/7.251, allocations: 0.8391 MB / 2.474 GB, free: 114.6 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.02e-05/7.251, allocations: 168.2 kB / 2.474 GB, free: 114.4 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003713/7.255, allocations: 1.248 MB / 2.476 GB, free: 113.9 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 0.0003099/7.255, allocations: 28.72 kB / 2.476 GB, free: 113.9 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008332/7.256, allocations: 0.5798 MB / 2.476 GB, free: 113.5 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004473/7.256, allocations: 222.2 kB / 2.476 GB, free: 113.3 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.144e-05/7.256, allocations: 1.094 kB / 2.476 GB, free: 113.3 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001228/7.257, allocations: 344.3 kB / 2.477 GB, free: 113 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008868/7.258, allocations: 270.8 kB / 2.477 GB, free: 112.9 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001276/7.259, allocations: 0.7019 MB / 2.478 GB, free: 112.2 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002985/7.262, allocations: 0.5306 MB / 2.478 GB, free: 112.1 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.078e-05/7.262, allocations: 3.125 kB / 2.478 GB, free: 112.1 MB / 0.8855 GB Notification: Performance of matching and sorting (n=129) (initialization): time 0.005589/7.268, allocations: 1.175 MB / 2.479 GB, free: 111.7 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 0.001079/7.269, allocations: 4.504 MB / 2.484 GB, free: 106.9 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.319e-05/7.269, allocations: 13.81 kB / 2.484 GB, free: 106.9 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.07e-05/7.269, allocations: 18.12 kB / 2.484 GB, free: 106.9 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002416/7.271, allocations: 257.4 kB / 2.484 GB, free: 106.9 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.219e-05/7.271, allocations: 26.11 kB / 2.484 GB, free: 106.9 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002898/7.274, allocations: 160.9 kB / 2.484 GB, free: 106.8 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004563/7.275, allocations: 57.34 kB / 2.484 GB, free: 106.8 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.9e-05/7.275, allocations: 7.344 kB / 2.484 GB, free: 106.8 MB / 0.8855 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005051/7.28, allocations: 0.9507 MB / 2.485 GB, free: 106.5 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.747e-05/7.28, allocations: 13.44 kB / 2.485 GB, free: 106.5 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.375e-05/7.28, allocations: 17.72 kB / 2.485 GB, free: 106.5 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002149/7.282, allocations: 259.3 kB / 2.485 GB, free: 106.5 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.841e-05/7.282, allocations: 27.02 kB / 2.485 GB, free: 106.5 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00262/7.285, allocations: 133.5 kB / 2.486 GB, free: 106.5 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002329/7.285, allocations: 55.41 kB / 2.486 GB, free: 106.5 MB / 0.8855 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 50 * 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.0004884/7.286, allocations: 143.2 kB / 2.486 GB, free: 106.3 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006112/7.286, allocations: 167.4 kB / 2.486 GB, free: 106.2 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005089/7.291, allocations: 1.114 MB / 2.487 GB, free: 105.9 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.961e-05/7.291, allocations: 9.203 kB / 2.487 GB, free: 105.9 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.321e-05/7.292, allocations: 4.312 kB / 2.487 GB, free: 105.9 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003156/7.295, allocations: 0.8868 MB / 2.488 GB, free: 105.4 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008214/7.303, allocations: 2.102 MB / 2.49 GB, free: 104.5 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.036e-05/7.303, allocations: 1.672 kB / 2.49 GB, free: 104.5 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001533/7.305, allocations: 146.9 kB / 2.49 GB, free: 104.5 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002576/7.305, allocations: 26.02 kB / 2.49 GB, free: 104.5 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001346/7.305, allocations: 19.86 kB / 2.49 GB, free: 104.5 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00131/7.306, allocations: 1.258 MB / 2.491 GB, free: 103.2 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.01e-06/7.306, allocations: 2.844 kB / 2.491 GB, free: 103.2 MB / 0.8855 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005103/7.311, allocations: 1.423 MB / 2.493 GB, free: 102.6 MB / 0.8855 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.006331/7.318, allocations: 2.244 MB / 2.495 GB, free: 101.3 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001439/7.319, allocations: 340.6 kB / 2.495 GB, free: 101.1 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005932/7.32, allocations: 8.375 kB / 2.495 GB, free: 101.1 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001938/7.322, allocations: 78.23 kB / 2.495 GB, free: 101.1 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002249/7.322, allocations: 47.19 kB / 2.495 GB, free: 101.1 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000137/7.322, allocations: 32.95 kB / 2.495 GB, free: 101.1 MB / 0.8855 GB Notification: Performance of sort global known variables: time 0.002482/7.325, allocations: 0.927 MB / 2.496 GB, free: 100.7 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.009372/7.334, allocations: 1.308 MB / 2.498 GB, free: 100.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.outCon.T) * 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 (74): * Single equations (assignments): 65 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * 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.003413/7.338, allocations: 1.206 MB / 2.499 GB, free: 99.8 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.004058/7.342, allocations: 1.372 MB / 2.5 GB, free: 99.24 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 7.304e-06/7.342, allocations: 0.875 kB / 2.5 GB, free: 99.24 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.001279/7.343, allocations: 455.2 kB / 2.501 GB, free: 99.01 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00584/7.349, allocations: 0.6085 MB / 2.501 GB, free: 98.79 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009547/7.359, allocations: 2.369 MB / 2.503 GB, free: 97.68 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002445/7.361, allocations: 1.576 MB / 2.505 GB, free: 96.61 MB / 0.8855 GB Notification: Performance of SimCode: time 2.454e-06/7.361, allocations: 0 / 2.505 GB, free: 96.61 MB / 0.8855 GB