Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.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.HeatExchangers.Examples.WaterHeater_u,fileNamePrefix="Buildings_9_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_u",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u,fileNamePrefix="Buildings_9_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 9.1.1-maint.9.1.x/package.mo): time 2.104/2.104, 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.001239/0.001239, allocations: 173.3 kB / 487 MB, free: 5.312 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.524/1.524, allocations: 221.3 MB / 0.7819 GB, free: 1.355 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.001056/0.001056, allocations: 88.7 kB / 0.9213 GB, free: 2.605 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.6889/0.69, allocations: 148.5 MB / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3334/1.023, allocations: 142.3 MB / 1.205 GB, free: 26.13 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.129/2.153, allocations: 445.5 MB / 1.64 GB, free: 10.04 MB / 1.073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002883/2.153, allocations: 93.88 kB / 1.64 GB, free: 9.992 MB / 1.073 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 310 * Number of variables: 310 Notification: Performance of Generate backend data structure: time 4.189/6.342, allocations: 1.151 GB / 2.792 GB, free: 219 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 6.871e-05/6.342, allocations: 10.56 kB / 2.792 GB, free: 219 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00345/6.345, allocations: 491 kB / 2.792 GB, free: 218.8 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007944/6.353, allocations: 2.504 MB / 2.795 GB, free: 217.2 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.418e-05/6.354, allocations: 41.34 kB / 2.795 GB, free: 217.2 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002653/6.354, allocations: 78.62 kB / 2.795 GB, free: 217.2 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002328/6.356, allocations: 0.8764 MB / 2.796 GB, free: 216.8 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002189/6.358, allocations: 1.164 MB / 2.797 GB, free: 216 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.648e-05/6.358, allocations: 4.938 kB / 2.797 GB, free: 216 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001082/6.358, allocations: 2.906 kB / 2.797 GB, free: 216 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.407e-05/6.359, allocations: 59.88 kB / 2.797 GB, free: 216 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01133/6.37, allocations: 7.769 MB / 2.805 GB, free: 209.3 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007816/6.371, allocations: 477.3 kB / 2.805 GB, free: 209.1 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000638/6.371, allocations: 394.5 kB / 2.805 GB, free: 208.9 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.006104/6.377, allocations: 2.546 MB / 2.808 GB, free: 206.7 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007209/6.378, allocations: 420.4 kB / 2.808 GB, free: 206.5 MB / 1.151 GB Notification: Performance of pre-optimization done (n=70): time 2.605e-06/6.378, allocations: 0 / 2.808 GB, free: 206.5 MB / 1.151 GB Notification: Performance of matching and sorting (n=70): time 0.002721/6.381, allocations: 0.8409 MB / 2.809 GB, free: 206 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.815e-05/6.381, allocations: 170.2 kB / 2.809 GB, free: 205.8 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002003/6.383, allocations: 1.182 MB / 2.81 GB, free: 205.2 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 8.287e-05/6.383, allocations: 25.7 kB / 2.81 GB, free: 205.2 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005318/6.384, allocations: 0.5898 MB / 2.811 GB, free: 204.7 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002729/6.384, allocations: 233.3 kB / 2.811 GB, free: 204.5 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.363e-05/6.384, allocations: 7.469 kB / 2.811 GB, free: 204.5 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 8.307e-05/6.384, allocations: 341.5 kB / 2.812 GB, free: 204.2 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004404/6.385, allocations: 274.9 kB / 2.812 GB, free: 204 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005861/6.385, allocations: 0.6514 MB / 2.812 GB, free: 203.4 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001246/6.386, allocations: 478.4 kB / 2.813 GB, free: 203.2 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.653e-06/6.386, allocations: 3.906 kB / 2.813 GB, free: 203.2 MB / 1.151 GB Notification: Performance of matching and sorting (n=124) (initialization): time 0.002822/6.389, allocations: 1.093 MB / 2.814 GB, free: 202.7 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.001106/6.39, allocations: 3.97 MB / 2.818 GB, free: 198.4 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.611e-05/6.39, allocations: 10.53 kB / 2.818 GB, free: 198.4 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.97e-05/6.391, allocations: 15.94 kB / 2.818 GB, free: 198.4 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001134/6.392, allocations: 259.7 kB / 2.818 GB, free: 198.4 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.348e-05/6.392, allocations: 20.69 kB / 2.818 GB, free: 198.3 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002007/6.394, allocations: 165.6 kB / 2.818 GB, free: 198.3 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001127/6.394, allocations: 54.83 kB / 2.818 GB, free: 198.3 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 9.808e-06/6.394, allocations: 3.969 kB / 2.818 GB, free: 198.3 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002426/6.396, allocations: 0.8772 MB / 2.819 GB, free: 197.9 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.486e-05/6.396, allocations: 10.16 kB / 2.819 GB, free: 197.9 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.177e-05/6.396, allocations: 15.22 kB / 2.819 GB, free: 197.9 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001081/6.397, allocations: 255 kB / 2.82 GB, free: 197.8 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.023e-05/6.397, allocations: 26.03 kB / 2.82 GB, free: 197.8 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001826/6.399, allocations: 139.9 kB / 2.82 GB, free: 197.7 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001081/6.399, allocations: 54.73 kB / 2.82 GB, free: 197.7 MB / 1.151 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * 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 (122): * Single equations (assignments): 120 * Array equations: 1 * Algorithm blocks: 1 * 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.0003422/6.4, allocations: 139.8 kB / 2.82 GB, free: 197.6 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003858/6.4, allocations: 168.9 kB / 2.82 GB, free: 197.5 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002884/6.403, allocations: 1.054 MB / 2.821 GB, free: 196.9 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.277e-05/6.403, allocations: 11.72 kB / 2.821 GB, free: 196.9 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.31e-05/6.403, allocations: 4.656 kB / 2.821 GB, free: 196.9 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001487/6.405, allocations: 0.7185 MB / 2.822 GB, free: 196.6 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005897/6.411, allocations: 2.428 MB / 2.824 GB, free: 194.9 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.009e-05/6.411, allocations: 2.281 kB / 2.824 GB, free: 194.9 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001134/6.412, allocations: 178.4 kB / 2.824 GB, free: 194.9 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002212/6.412, allocations: 31 kB / 2.824 GB, free: 194.9 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.753e-05/6.412, allocations: 16.83 kB / 2.824 GB, free: 194.8 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009359/6.413, allocations: 1.256 MB / 2.826 GB, free: 193.6 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.106e-06/6.413, allocations: 3.969 kB / 2.826 GB, free: 193.6 MB / 1.151 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002723/6.416, allocations: 1.554 MB / 2.827 GB, free: 192.6 MB / 1.151 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003399/6.419, allocations: 2.435 MB / 2.829 GB, free: 191 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001013/6.42, allocations: 365.4 kB / 2.83 GB, free: 190.7 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002688/6.42, allocations: 7.812 kB / 2.83 GB, free: 190.7 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001087/6.422, allocations: 91.72 kB / 2.83 GB, free: 190.6 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001257/6.422, allocations: 48.95 kB / 2.83 GB, free: 190.6 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.811e-05/6.422, allocations: 41.34 kB / 2.83 GB, free: 190.6 MB / 1.151 GB Notification: Performance of sort global known variables: time 0.001478/6.423, allocations: 0.8971 MB / 2.831 GB, free: 190.1 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.006881/6.43, allocations: 1.363 MB / 2.832 GB, free: 189.5 MB / 1.151 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 6 (vol.dynBal.U,mov.filter.s[1],mov.filter.s[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 (82): * Single equations (assignments): 74 * 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.002625/6.433, allocations: 1.105 MB / 2.833 GB, free: 189.1 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.002971/6.436, allocations: 1.316 MB / 2.835 GB, free: 188.5 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 6.632e-06/6.436, allocations: 0.9688 kB / 2.835 GB, free: 188.5 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0009837/6.437, allocations: 0.4896 MB / 2.835 GB, free: 188.3 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004212/6.441, allocations: 0.6997 MB / 2.836 GB, free: 188 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006092/6.447, allocations: 2.432 MB / 2.838 GB, free: 186.1 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001368/6.449, allocations: 1.613 MB / 2.84 GB, free: 184.5 MB / 1.151 GB Notification: Performance of SimCode: time 1.092e-06/6.449, allocations: 2.938 kB / 2.84 GB, free: 184.5 MB / 1.151 GB (rm -f Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; mkfifo Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe >> ../files/Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_u_fmu --startTime=0 --stopTime=172800 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_u.fmu > Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe 2>&1)