Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/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 BuildSysPro with version 3.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/package.mo) Running command: "" <> buildModelFMU(BuildSysPro.IBPSA.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Fluid_Storage_BaseClasses_Examples_IndirectTankHeatExchanger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildSysPro.IBPSA.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_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/BuildSysPro 3.5.0/package.mo): time 0.7584/0.7584, allocations: 127.4 MB / 134.6 MB, free: 4.09 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00122/0.00122, allocations: 185.2 kB / 164.4 MB, free: 6.883 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.709/1.709, allocations: 205.1 MB / 399.1 MB, free: 6.141 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000973/0.000973, allocations: 94.45 kB / 476.3 MB, free: 8.898 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 0.312/0.313, allocations: 82.89 MB / 0.5461 GB, free: 42.66 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1791/0.4921, allocations: 76.75 MB / 0.621 GB, free: 13.84 MB / 426.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.112/1.604, allocations: 369.2 MB / 0.9816 GB, free: 112.9 MB / 0.6198 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002895/1.605, allocations: 97.41 kB / 0.9817 GB, free: 112.9 MB / 0.6198 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.632/3.237, allocations: 399.5 MB / 1.372 GB, free: 131.9 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 5.682e-05/3.237, allocations: 10.88 kB / 1.372 GB, free: 131.9 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001944/3.239, allocations: 223.2 kB / 1.372 GB, free: 131.8 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006726/3.246, allocations: 2.306 MB / 1.374 GB, free: 131.5 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.901e-05/3.246, allocations: 46.22 kB / 1.374 GB, free: 131.5 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000597/3.247, allocations: 86.69 kB / 1.374 GB, free: 131.5 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003534/3.25, allocations: 1.616 MB / 1.376 GB, free: 131.5 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003545/3.254, allocations: 1.652 MB / 1.378 GB, free: 131.3 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.076e-05/3.254, allocations: 5.781 kB / 1.378 GB, free: 131.3 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001586/3.254, allocations: 10.91 kB / 1.378 GB, free: 131.3 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.547e-05/3.254, allocations: 39.23 kB / 1.378 GB, free: 131.3 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01189/3.266, allocations: 7.379 MB / 1.385 GB, free: 128.5 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001679/3.268, allocations: 1.209 MB / 1.386 GB, free: 128.4 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000766/3.268, allocations: 0.5938 MB / 1.387 GB, free: 128.4 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005164/3.274, allocations: 3.367 MB / 1.39 GB, free: 126.7 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.431e-05/3.274, allocations: 46.61 kB / 1.39 GB, free: 126.7 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=81): time 6.131e-06/3.274, allocations: 3.828 kB / 1.39 GB, free: 126.7 MB / 0.6355 GB Notification: Performance of matching and sorting (n=81): time 0.002988/3.277, allocations: 1.142 MB / 1.391 GB, free: 126.5 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.614e-05/3.277, allocations: 63.5 kB / 1.391 GB, free: 126.5 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002343/3.279, allocations: 1.257 MB / 1.392 GB, free: 126.3 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 0.0001038/3.279, allocations: 25.7 kB / 1.392 GB, free: 126.3 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004553/3.28, allocations: 0.6129 MB / 1.393 GB, free: 125.9 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003377/3.28, allocations: 287.9 kB / 1.393 GB, free: 125.7 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.355e-05/3.28, allocations: 0 / 1.393 GB, free: 125.7 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001205/3.28, allocations: 357.4 kB / 1.394 GB, free: 125.4 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008239/3.281, allocations: 0.6595 MB / 1.394 GB, free: 125.4 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001154/3.282, allocations: 1.006 MB / 1.395 GB, free: 125 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003064/3.285, allocations: 1.256 MB / 1.396 GB, free: 125 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.251e-05/3.285, allocations: 3.75 kB / 1.396 GB, free: 125 MB / 0.6355 GB Notification: Performance of matching and sorting (n=175) (initialization): time 0.004622/3.29, allocations: 2.213 MB / 1.399 GB, free: 124.9 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 0.001031/3.291, allocations: 3.745 MB / 1.402 GB, free: 121 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.179e-05/3.291, allocations: 9.812 kB / 1.402 GB, free: 121 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.82e-05/3.291, allocations: 22.88 kB / 1.402 GB, free: 121 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001433/3.293, allocations: 340.8 kB / 1.403 GB, free: 121 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.133e-05/3.293, allocations: 19.38 kB / 1.403 GB, free: 121 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001838/3.294, allocations: 169.2 kB / 1.403 GB, free: 120.9 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001432/3.295, allocations: 59.75 kB / 1.403 GB, free: 120.9 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.104e-05/3.295, allocations: 3.312 kB / 1.403 GB, free: 120.9 MB / 0.6355 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00406/3.299, allocations: 2.048 MB / 1.405 GB, free: 120.9 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.244e-05/3.299, allocations: 7.875 kB / 1.405 GB, free: 120.9 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.132e-05/3.299, allocations: 17.41 kB / 1.405 GB, free: 120.9 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001274/3.3, allocations: 339.3 kB / 1.405 GB, free: 120.9 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.634e-05/3.3, allocations: 25.72 kB / 1.405 GB, free: 120.9 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001609/3.302, allocations: 121.9 kB / 1.405 GB, free: 120.8 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001314/3.302, allocations: 66.66 kB / 1.405 GB, free: 120.8 MB / 0.6355 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (175): * Single equations (assignments): 175 * 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.0003551/3.302, allocations: 137.9 kB / 1.406 GB, free: 120.7 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003355/3.303, allocations: 132.1 kB / 1.406 GB, free: 120.6 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002564/3.305, allocations: 1.213 MB / 1.407 GB, free: 120.6 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.264e-05/3.305, allocations: 9.25 kB / 1.407 GB, free: 120.6 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.892e-06/3.305, allocations: 0 / 1.407 GB, free: 120.6 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001713/3.307, allocations: 1.296 MB / 1.408 GB, free: 120.1 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002385/3.309, allocations: 1.235 MB / 1.409 GB, free: 119.9 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.75e-06/3.309, allocations: 0 / 1.409 GB, free: 119.9 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007949/3.31, allocations: 167 kB / 1.41 GB, free: 119.9 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.006e-05/3.31, allocations: 3.875 kB / 1.41 GB, free: 119.9 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.45e-05/3.31, allocations: 10.39 kB / 1.41 GB, free: 119.9 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.18e-06/3.31, allocations: 3.969 kB / 1.41 GB, free: 119.9 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.379e-06/3.31, allocations: 0 / 1.41 GB, free: 119.9 MB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002627/3.313, allocations: 1.82 MB / 1.411 GB, free: 119.7 MB / 0.6355 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.00352/3.316, allocations: 2.848 MB / 1.414 GB, free: 119.1 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000856/3.317, allocations: 377.4 kB / 1.414 GB, free: 118.9 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002169/3.317, allocations: 3.156 kB / 1.414 GB, free: 118.9 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007494/3.318, allocations: 38.23 kB / 1.415 GB, free: 118.9 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.987e-05/3.318, allocations: 42.41 kB / 1.415 GB, free: 118.9 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.922e-05/3.318, allocations: 24.88 kB / 1.415 GB, free: 118.9 MB / 0.6355 GB Notification: Performance of sort global known variables: time 0.001425/3.32, allocations: 0.9696 MB / 1.416 GB, free: 118.8 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.004526/3.324, allocations: 1.038 MB / 1.417 GB, free: 118.7 MB / 0.6355 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (81): * Single equations (assignments): 81 * 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 Backend phase and start with SimCode phase: time 0.001133/3.325, allocations: 486.4 kB / 1.417 GB, free: 118.5 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.003583/3.329, allocations: 2.244 MB / 1.419 GB, free: 118.5 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 6.322e-06/3.329, allocations: 0 / 1.419 GB, free: 118.5 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.0006663/3.33, allocations: 468.4 kB / 1.42 GB, free: 118.5 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00362/3.333, allocations: 0.5872 MB / 1.42 GB, free: 118.5 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007148/3.341, allocations: 2.993 MB / 1.423 GB, free: 118 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001783/3.342, allocations: 1.84 MB / 1.425 GB, free: 117.2 MB / 0.6355 GB Notification: Performance of SimCode: time 1.462e-06/3.342, allocations: 0 / 1.425 GB, free: 117.2 MB / 0.6355 GB (rm -f BuildSysPro_BuildSysPro.IBPSA.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildSysPro_BuildSysPro_IBPSA_Fluid_Storage_BaseClasses_Examples_IndirectTankHeatExchanger_fmu --startTime=0 --stopTime=15 --timeout=50 --tolerance=1e-06 BuildSysPro_BuildSysPro_IBPSA_Fluid_Storage_BaseClasses_Examples_IndirectTankHeatExchanger.fmu > BuildSysPro_BuildSysPro.IBPSA.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.pipe 2>&1)