Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) 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 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger,fileNamePrefix="Buildings_8_Buildings_Fluid_Storage_BaseClasses_Examples_IndirectTankHeatExchanger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger,fileNamePrefix="Buildings_8_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 8.1.4-maint.8.1.x/package.mo): time 1.716/1.716, allocations: 289.8 MB / 297.1 MB, free: 9.84 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001328/0.001328, allocations: 187.3 kB / 366.3 MB, free: 15.72 MB / 302.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.574/1.574, allocations: 205.1 MB / 0.6256 GB, free: 2.215 MB / 446.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001054/0.001054, allocations: 88.84 kB / 0.7396 GB, free: 14.71 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.5891/0.5902, allocations: 122.4 MB / 0.8591 GB, free: 156.7 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2355/0.8257, allocations: 116.3 MB / 0.9727 GB, free: 54.3 MB / 0.6387 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9406/1.766, allocations: 409.4 MB / 1.372 GB, free: 7.844 MB / 0.8731 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002554/1.767, allocations: 93.95 kB / 1.373 GB, free: 7.797 MB / 0.8731 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.371/3.138, allocations: 413.6 MB / 1.776 GB, free: 52.04 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 4.352e-05/3.138, allocations: 8 kB / 1.776 GB, free: 52.03 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001608/3.139, allocations: 221.5 kB / 1.777 GB, free: 51.81 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005744/3.145, allocations: 2.095 MB / 1.779 GB, free: 49.66 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.687e-05/3.145, allocations: 44 kB / 1.779 GB, free: 49.61 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006005/3.146, allocations: 88 kB / 1.779 GB, free: 49.53 MB / 0.9512 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003584/3.149, allocations: 1.633 MB / 1.78 GB, free: 47.89 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003681/3.153, allocations: 1.684 MB / 1.782 GB, free: 46.14 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.571e-05/3.153, allocations: 7.906 kB / 1.782 GB, free: 46.14 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002155/3.153, allocations: 0 / 1.782 GB, free: 46.14 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.882e-05/3.154, allocations: 43.98 kB / 1.782 GB, free: 46.09 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01131/3.165, allocations: 7.197 MB / 1.789 GB, free: 38.63 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001622/3.167, allocations: 1.248 MB / 1.79 GB, free: 37.37 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007412/3.167, allocations: 0.6219 MB / 1.791 GB, free: 36.75 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004733/3.172, allocations: 3.441 MB / 1.794 GB, free: 33 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.789e-05/3.172, allocations: 47.25 kB / 1.794 GB, free: 32.94 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=86): time 2.835e-06/3.172, allocations: 0 / 1.794 GB, free: 32.94 MB / 0.9512 GB Notification: Performance of matching and sorting (n=86): time 0.002692/3.175, allocations: 1.165 MB / 1.795 GB, free: 31.77 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.098e-05/3.175, allocations: 64.19 kB / 1.796 GB, free: 31.7 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002128/3.177, allocations: 1.25 MB / 1.797 GB, free: 30.44 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 0.0001267/3.177, allocations: 25.7 kB / 1.797 GB, free: 30.41 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004791/3.178, allocations: 0.5958 MB / 1.797 GB, free: 29.8 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002857/3.178, allocations: 307.5 kB / 1.798 GB, free: 29.49 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.784e-05/3.178, allocations: 0 / 1.798 GB, free: 29.49 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.000107/3.178, allocations: 357.9 kB / 1.798 GB, free: 29.14 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008926/3.179, allocations: 0.6754 MB / 1.799 GB, free: 28.46 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001045/3.18, allocations: 1.002 MB / 1.8 GB, free: 27.32 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002808/3.183, allocations: 1.259 MB / 1.801 GB, free: 26.06 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.808e-06/3.183, allocations: 4 kB / 1.801 GB, free: 26.06 MB / 0.9512 GB Notification: Performance of matching and sorting (n=176) (initialization): time 0.004257/3.187, allocations: 2.222 MB / 1.803 GB, free: 23.82 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007633/3.188, allocations: 3.484 MB / 1.806 GB, free: 20.07 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.22e-05/3.188, allocations: 8 kB / 1.806 GB, free: 20.06 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.916e-05/3.188, allocations: 19.91 kB / 1.806 GB, free: 20.04 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001325/3.189, allocations: 347.4 kB / 1.807 GB, free: 19.7 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.622e-05/3.189, allocations: 23.92 kB / 1.807 GB, free: 19.68 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001583/3.191, allocations: 158.3 kB / 1.807 GB, free: 19.52 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001724/3.191, allocations: 67.92 kB / 1.807 GB, free: 19.46 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 9.006e-06/3.191, allocations: 4 kB / 1.807 GB, free: 19.45 MB / 0.9512 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003851/3.195, allocations: 2.054 MB / 1.809 GB, free: 17.39 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.022e-05/3.195, allocations: 8 kB / 1.809 GB, free: 17.39 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.946e-05/3.195, allocations: 20 kB / 1.809 GB, free: 17.37 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001236/3.196, allocations: 335.5 kB / 1.809 GB, free: 17.04 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.333e-05/3.196, allocations: 23.92 kB / 1.809 GB, free: 17.02 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001449/3.198, allocations: 119.2 kB / 1.81 GB, free: 16.9 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001771/3.198, allocations: 67.92 kB / 1.81 GB, free: 16.83 MB / 0.9512 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.0003403/3.198, allocations: 148.2 kB / 1.81 GB, free: 16.68 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004491/3.199, allocations: 134.3 kB / 1.81 GB, free: 16.55 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002599/3.201, allocations: 1.316 MB / 1.811 GB, free: 15.21 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.493e-05/3.201, allocations: 8 kB / 1.811 GB, free: 15.21 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.723e-06/3.201, allocations: 0 / 1.811 GB, free: 15.21 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001819/3.203, allocations: 1.367 MB / 1.812 GB, free: 13.75 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005744/3.209, allocations: 2.805 MB / 1.815 GB, free: 10.89 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.065e-06/3.209, allocations: 0 / 1.815 GB, free: 10.89 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008283/3.21, allocations: 175.8 kB / 1.815 GB, free: 10.72 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.827e-05/3.21, allocations: 8 kB / 1.815 GB, free: 10.71 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.996e-05/3.21, allocations: 15.98 kB / 1.815 GB, free: 10.7 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.303e-06/3.21, allocations: 7.938 kB / 1.815 GB, free: 10.69 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.988e-06/3.21, allocations: 0 / 1.815 GB, free: 10.69 MB / 0.9512 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003015/3.213, allocations: 2.012 MB / 1.817 GB, free: 8.641 MB / 0.9512 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003799/3.217, allocations: 3.095 MB / 1.82 GB, free: 5.504 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001117/3.218, allocations: 395 kB / 1.821 GB, free: 5.098 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005803/3.219, allocations: 4 kB / 1.821 GB, free: 5.094 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001154/3.22, allocations: 35.86 kB / 1.821 GB, free: 5.059 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.007e-05/3.22, allocations: 52.7 kB / 1.821 GB, free: 5.008 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.872e-05/3.22, allocations: 35.98 kB / 1.821 GB, free: 4.973 MB / 0.9512 GB Notification: Performance of sort global known variables: time 0.001622/3.222, allocations: 0.9568 MB / 1.822 GB, free: 4.012 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.005762/3.227, allocations: 1.06 MB / 1.823 GB, free: 2.949 MB / 0.9512 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.001279/3.229, allocations: 489.1 kB / 1.823 GB, free: 2.465 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.003656/3.232, allocations: 2.309 MB / 1.826 GB, free: 156 kB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 6.232e-06/3.232, allocations: 0 / 1.826 GB, free: 156 kB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.4788/3.711, allocations: 0.5009 MB / 1.826 GB, free: 343.7 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003289/3.715, allocations: 0.5926 MB / 1.827 GB, free: 343.6 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005766/3.72, allocations: 3.047 MB / 1.83 GB, free: 343.1 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001645/3.722, allocations: 1.858 MB / 1.831 GB, free: 342.4 MB / 0.9512 GB Notification: Performance of SimCode: time 1.373e-06/3.722, allocations: 0 / 1.831 GB, free: 342.4 MB / 0.9512 GB (rm -f Buildings_8_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.pipe ; mkfifo Buildings_8_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.pipe >> ../files/Buildings_8_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Fluid_Storage_BaseClasses_Examples_IndirectTankHeatExchanger_fmu --startTime=0 --stopTime=15 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Fluid_Storage_BaseClasses_Examples_IndirectTankHeatExchanger.fmu > Buildings_8_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.pipe 2>&1)