Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger,fileNamePrefix="Buildings_9_Buildings_Fluid_Storage_BaseClasses_Examples_IndirectTankHeatExchanger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger,fileNamePrefix="Buildings_9_Buildings_Fluid_Storage_BaseClasses_Examples_IndirectTankHeatExchanger",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 9.1.1-maint.9.1.x/package.mo): time 2.045/2.045, allocations: 387.2 MB / 394.5 MB, free: 13.62 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001145/0.001146, allocations: 184.8 kB / 487 MB, free: 5.383 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.318/1.318, allocations: 221.3 MB / 0.7819 GB, free: 1.379 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009196/0.0009197, allocations: 100.6 kB / 0.9213 GB, free: 2.617 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.5608/0.5617, allocations: 148.5 MB / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2642/0.8259, allocations: 142.3 MB / 1.205 GB, free: 26.15 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9723/1.798, allocations: 420.3 MB / 1.616 GB, free: 3.234 MB / 1.042 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002539/1.799, allocations: 98.19 kB / 1.616 GB, free: 3.184 MB / 1.042 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 348 * Number of variables: 348 Notification: Performance of Generate backend data structure: time 1.431/3.23, allocations: 424.6 MB / 2.031 GB, free: 131.6 MB / 1.135 GB Notification: Performance of prepare preOptimizeDAE: time 6.181e-05/3.23, allocations: 15.94 kB / 2.031 GB, free: 131.6 MB / 1.135 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0016/3.231, allocations: 221.5 kB / 2.031 GB, free: 131.4 MB / 1.135 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005581/3.237, allocations: 2.145 MB / 2.033 GB, free: 129.2 MB / 1.135 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.617e-05/3.237, allocations: 44 kB / 2.033 GB, free: 129.1 MB / 1.135 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006812/3.238, allocations: 92 kB / 2.033 GB, free: 129 MB / 1.135 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003474/3.241, allocations: 1.629 MB / 2.035 GB, free: 127.4 MB / 1.135 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003813/3.245, allocations: 1.692 MB / 2.036 GB, free: 125.6 MB / 1.135 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.986e-05/3.245, allocations: 7.906 kB / 2.036 GB, free: 125.6 MB / 1.135 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002328/3.246, allocations: 0 / 2.036 GB, free: 125.6 MB / 1.135 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.182e-05/3.246, allocations: 39.98 kB / 2.036 GB, free: 125.6 MB / 1.135 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01201/3.258, allocations: 7.205 MB / 2.043 GB, free: 118.1 MB / 1.135 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001576/3.259, allocations: 1.243 MB / 2.045 GB, free: 116.9 MB / 1.135 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007443/3.26, allocations: 0.6212 MB / 2.045 GB, free: 116.2 MB / 1.135 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004975/3.265, allocations: 3.452 MB / 2.049 GB, free: 112.5 MB / 1.135 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.064e-05/3.265, allocations: 43.34 kB / 2.049 GB, free: 112.4 MB / 1.135 GB Notification: Performance of pre-optimization done (n=86): time 3.948e-06/3.265, allocations: 0 / 2.049 GB, free: 112.4 MB / 1.135 GB Notification: Performance of matching and sorting (n=86): time 0.002681/3.268, allocations: 1.168 MB / 2.05 GB, free: 111.2 MB / 1.135 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.722e-05/3.268, allocations: 60.19 kB / 2.05 GB, free: 111.2 MB / 1.135 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002202/3.27, allocations: 1.274 MB / 2.051 GB, free: 109.9 MB / 1.135 GB Notification: Performance of collectPreVariables (initialization): time 0.0001546/3.27, allocations: 25.7 kB / 2.051 GB, free: 109.9 MB / 1.135 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004885/3.271, allocations: 0.6037 MB / 2.052 GB, free: 109.2 MB / 1.135 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003019/3.271, allocations: 295.6 kB / 2.052 GB, free: 108.9 MB / 1.135 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.829e-05/3.271, allocations: 0 / 2.052 GB, free: 108.9 MB / 1.135 GB Notification: Performance of setup shared object (initialization): time 0.0001098/3.271, allocations: 365.9 kB / 2.052 GB, free: 108.6 MB / 1.135 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008642/3.272, allocations: 0.6676 MB / 2.053 GB, free: 107.9 MB / 1.135 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001006/3.273, allocations: 1.002 MB / 2.054 GB, free: 106.8 MB / 1.135 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002909/3.276, allocations: 1.263 MB / 2.055 GB, free: 105.5 MB / 1.135 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.265e-05/3.276, allocations: 4 kB / 2.055 GB, free: 105.5 MB / 1.135 GB Notification: Performance of matching and sorting (n=176) (initialization): time 0.004497/3.281, allocations: 2.23 MB / 2.057 GB, free: 103.3 MB / 1.135 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007291/3.281, allocations: 3.487 MB / 2.061 GB, free: 99.52 MB / 1.135 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.431e-05/3.281, allocations: 8 kB / 2.061 GB, free: 99.51 MB / 1.135 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.934e-05/3.281, allocations: 20 kB / 2.061 GB, free: 99.49 MB / 1.135 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001321/3.283, allocations: 331.5 kB / 2.061 GB, free: 99.16 MB / 1.135 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.034e-05/3.283, allocations: 23.92 kB / 2.061 GB, free: 99.14 MB / 1.135 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001634/3.284, allocations: 158.3 kB / 2.061 GB, free: 98.98 MB / 1.135 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001791/3.285, allocations: 63.98 kB / 2.061 GB, free: 98.92 MB / 1.135 GB Notification: Performance of prepare postOptimizeDAE: time 1.074e-05/3.285, allocations: 4 kB / 2.061 GB, free: 98.92 MB / 1.135 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003987/3.289, allocations: 2.062 MB / 2.063 GB, free: 96.85 MB / 1.135 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.166e-05/3.289, allocations: 8 kB / 2.063 GB, free: 96.84 MB / 1.135 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.084e-05/3.289, allocations: 16 kB / 2.063 GB, free: 96.83 MB / 1.135 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001254/3.29, allocations: 351.5 kB / 2.064 GB, free: 96.48 MB / 1.135 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.819e-05/3.29, allocations: 19.92 kB / 2.064 GB, free: 96.46 MB / 1.135 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001486/3.292, allocations: 126.8 kB / 2.064 GB, free: 96.34 MB / 1.135 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001698/3.292, allocations: 59.98 kB / 2.064 GB, free: 96.28 MB / 1.135 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (176): * Single equations (assignments): 176 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003153/3.292, allocations: 136.5 kB / 2.064 GB, free: 96.14 MB / 1.135 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005324/3.293, allocations: 134.3 kB / 2.064 GB, free: 96.01 MB / 1.135 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002788/3.295, allocations: 1.309 MB / 2.065 GB, free: 94.69 MB / 1.135 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.61e-05/3.295, allocations: 15.89 kB / 2.065 GB, free: 94.67 MB / 1.135 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.835e-06/3.295, allocations: 7.938 kB / 2.065 GB, free: 94.66 MB / 1.135 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001808/3.297, allocations: 1.371 MB / 2.067 GB, free: 93.21 MB / 1.135 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005579/3.303, allocations: 2.798 MB / 2.069 GB, free: 90.36 MB / 1.135 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.334e-06/3.303, allocations: 0 / 2.069 GB, free: 90.36 MB / 1.135 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009736/3.304, allocations: 187.8 kB / 2.07 GB, free: 90.17 MB / 1.135 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.43e-05/3.304, allocations: 7.906 kB / 2.07 GB, free: 90.16 MB / 1.135 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.371e-05/3.304, allocations: 11.98 kB / 2.07 GB, free: 90.15 MB / 1.135 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.004e-05/3.304, allocations: 4 kB / 2.07 GB, free: 90.15 MB / 1.135 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.759e-06/3.304, allocations: 4 kB / 2.07 GB, free: 90.14 MB / 1.135 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003079/3.307, allocations: 2.009 MB / 2.072 GB, free: 88.1 MB / 1.135 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003675/3.311, allocations: 3.096 MB / 2.075 GB, free: 84.96 MB / 1.135 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001008/3.312, allocations: 391.1 kB / 2.075 GB, free: 84.56 MB / 1.135 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004709/3.312, allocations: 15.89 kB / 2.075 GB, free: 84.54 MB / 1.135 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001126/3.313, allocations: 35.91 kB / 2.075 GB, free: 84.51 MB / 1.135 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.908e-05/3.314, allocations: 48.61 kB / 2.075 GB, free: 84.46 MB / 1.135 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.601e-05/3.314, allocations: 35.98 kB / 2.075 GB, free: 84.43 MB / 1.135 GB Notification: Performance of sort global known variables: time 0.001601/3.315, allocations: 0.9732 MB / 2.076 GB, free: 83.45 MB / 1.135 GB Notification: Performance of remove unused functions: time 0.005228/3.321, allocations: 1.056 MB / 2.077 GB, free: 82.39 MB / 1.135 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 6 (indTanHex.vol[1].dynBal.U,indTanHex.vol[2].dynBal.U,indTanHex.vol[3].dynBal.U,indTanHex.cap[1].T,indTanHex.cap[2].T,indTanHex.cap[3].T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (88): * Single equations (assignments): 86 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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 Backend phase and start with SimCode phase: time 0.001296/3.322, allocations: 492.7 kB / 2.078 GB, free: 81.91 MB / 1.135 GB Notification: Performance of simCode: created initialization part: time 0.003522/3.325, allocations: 2.314 MB / 2.08 GB, free: 79.59 MB / 1.135 GB Notification: Performance of simCode: created event and clocks part: time 6.612e-06/3.325, allocations: 0 / 2.08 GB, free: 79.59 MB / 1.135 GB Notification: Performance of simCode: created simulation system equations: time 0.000653/3.326, allocations: 0.5026 MB / 2.08 GB, free: 79.09 MB / 1.135 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003319/3.329, allocations: 0.6012 MB / 2.081 GB, free: 78.5 MB / 1.135 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006824/3.336, allocations: 3.075 MB / 2.084 GB, free: 75.38 MB / 1.135 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002941/3.339, allocations: 1.866 MB / 2.086 GB, free: 73.48 MB / 1.135 GB Notification: Performance of SimCode: time 1.964e-06/3.339, allocations: 4 kB / 2.086 GB, free: 73.48 MB / 1.135 GB (rm -f Buildings_9_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.pipe ; mkfifo Buildings_9_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.pipe >> ../files/Buildings_9_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_Storage_BaseClasses_Examples_IndirectTankHeatExchanger_fmu --startTime=0 --stopTime=15 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_Storage_BaseClasses_Examples_IndirectTankHeatExchanger.fmu > Buildings_9_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.pipe 2>&1)