Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementLatentLoop.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.BaseClasses.Examples.HexElementLatentLoop,fileNamePrefix="Buildings_9_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_HexElementLatentLoop",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementLatentLoop,fileNamePrefix="Buildings_9_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_HexElementLatentLoop",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.088/2.088, allocations: 387.2 MB / 394.5 MB, free: 13.59 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.001113/0.001113, allocations: 181.4 kB / 487 MB, free: 5.34 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.393/1.393, allocations: 221.3 MB / 0.7819 GB, free: 1.363 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.0008795/0.0008795, allocations: 100.9 kB / 0.9213 GB, free: 2.621 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.5778/0.5787, allocations: 148.5 MB / 1.066 GB, free: 168.1 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2505/0.8292, allocations: 142.3 MB / 1.205 GB, free: 26.12 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.479/5.308, allocations: 2.21 GB / 3.415 GB, free: 90.41 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002619/5.308, allocations: 99.94 kB / 3.415 GB, free: 90.31 MB / 1.151 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 466 * Number of variables: 466 Notification: Performance of Generate backend data structure: time 6.023/11.33, allocations: 1.702 GB / 5.117 GB, free: 144.5 MB / 1.182 GB Notification: Performance of prepare preOptimizeDAE: time 4.632e-05/11.33, allocations: 9.156 kB / 5.117 GB, free: 144.5 MB / 1.182 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007019/11.34, allocations: 0.8812 MB / 5.118 GB, free: 144.1 MB / 1.182 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008668/11.35, allocations: 2.882 MB / 5.121 GB, free: 142.2 MB / 1.182 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.222e-05/11.35, allocations: 63.06 kB / 5.121 GB, free: 142.2 MB / 1.182 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004627/11.35, allocations: 116.8 kB / 5.121 GB, free: 142.2 MB / 1.182 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003543/11.35, allocations: 1.757 MB / 5.123 GB, free: 141.3 MB / 1.182 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003737/11.36, allocations: 1.99 MB / 5.125 GB, free: 140.2 MB / 1.182 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.352e-05/11.36, allocations: 2.031 kB / 5.125 GB, free: 140.2 MB / 1.182 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001809/11.36, allocations: 1.438 kB / 5.125 GB, free: 140.2 MB / 1.182 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00011/11.36, allocations: 81.56 kB / 5.125 GB, free: 140.2 MB / 1.182 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01633/11.37, allocations: 10.08 MB / 5.135 GB, free: 131.8 MB / 1.182 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001268/11.37, allocations: 0.8436 MB / 5.136 GB, free: 131 MB / 1.182 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007679/11.37, allocations: 0.6352 MB / 5.136 GB, free: 130.3 MB / 1.182 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003948/11.38, allocations: 2.475 MB / 5.139 GB, free: 127.7 MB / 1.182 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.045e-05/11.38, allocations: 51.5 kB / 5.139 GB, free: 127.6 MB / 1.182 GB Notification: Performance of pre-optimization done (n=104): time 2.565e-06/11.38, allocations: 4 kB / 5.139 GB, free: 127.6 MB / 1.182 GB Notification: Performance of matching and sorting (n=106): time 0.008527/11.39, allocations: 3.221 MB / 5.142 GB, free: 124.4 MB / 1.182 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.724e-05/11.39, allocations: 60.41 kB / 5.142 GB, free: 124.3 MB / 1.182 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002212/11.39, allocations: 1.449 MB / 5.143 GB, free: 122.8 MB / 1.182 GB Notification: Performance of collectPreVariables (initialization): time 0.0001602/11.39, allocations: 25.7 kB / 5.143 GB, free: 122.8 MB / 1.182 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005208/11.39, allocations: 0.8033 MB / 5.144 GB, free: 122 MB / 1.182 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004002/11.39, allocations: 364.5 kB / 5.145 GB, free: 121.6 MB / 1.182 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.669e-05/11.39, allocations: 0 / 5.145 GB, free: 121.6 MB / 1.182 GB Notification: Performance of setup shared object (initialization): time 0.0001013/11.39, allocations: 361.9 kB / 5.145 GB, free: 121.2 MB / 1.182 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006898/11.39, allocations: 475.9 kB / 5.145 GB, free: 120.8 MB / 1.182 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009442/11.39, allocations: 1.021 MB / 5.146 GB, free: 119.5 MB / 1.182 GB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: fan.vol.dynBal.medium.p = fan.vol.dynBal.p_start (sin_2.p = fan.vol.dynBal.p_start) Notification: Performance of analyzeInitialSystem (initialization): time 0.02064/11.41, allocations: 3.377 MB / 5.15 GB, free: 116.3 MB / 1.182 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.038e-05/11.41, allocations: 7.125 kB / 5.15 GB, free: 116.3 MB / 1.182 GB Notification: Performance of matching and sorting (n=177) (initialization): time 0.004417/11.42, allocations: 1.85 MB / 5.151 GB, free: 114.4 MB / 1.182 GB Notification: Performance of prepare postOptimizeDAE: time 0.001158/11.42, allocations: 5.862 MB / 5.157 GB, free: 108.2 MB / 1.182 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.281e-05/11.42, allocations: 22.28 kB / 5.157 GB, free: 108.2 MB / 1.182 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001573/11.42, allocations: 370.6 kB / 5.158 GB, free: 107.8 MB / 1.182 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001395/11.42, allocations: 307.1 kB / 5.158 GB, free: 107.6 MB / 1.182 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001106/11.42, allocations: 1.041 MB / 5.159 GB, free: 106.5 MB / 1.182 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002585/11.42, allocations: 149.5 kB / 5.159 GB, free: 106.3 MB / 1.182 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001955/11.43, allocations: 79.97 kB / 5.159 GB, free: 106.3 MB / 1.182 GB Notification: Performance of prepare postOptimizeDAE: time 1.099e-05/11.43, allocations: 7.281 kB / 5.159 GB, free: 106.3 MB / 1.182 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003503/11.43, allocations: 1.591 MB / 5.161 GB, free: 104.7 MB / 1.182 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.155e-05/11.43, allocations: 12 kB / 5.161 GB, free: 104.7 MB / 1.182 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001488/11.43, allocations: 370 kB / 5.161 GB, free: 104.3 MB / 1.182 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001331/11.43, allocations: 307.2 kB / 5.161 GB, free: 104 MB / 1.182 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001068/11.43, allocations: 1.05 MB / 5.162 GB, free: 103 MB / 1.182 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002946/11.44, allocations: 124.3 kB / 5.162 GB, free: 102.9 MB / 1.182 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001996/11.44, allocations: 79.95 kB / 5.163 GB, free: 102.8 MB / 1.182 GB Warning: Assuming redundant initial conditions for the following 1 initial equations: fan.vol.dynBal.medium.p = fan.vol.dynBal.p_start Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 64 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (153): * Single equations (assignments): 151 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * 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: 0 * Non-linear torn systems: 1 {3 21} Notification: Performance of prepare postOptimizeDAE: time 0.0004429/11.44, allocations: 144.5 kB / 5.163 GB, free: 102.6 MB / 1.182 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004114/11.44, allocations: 216.9 kB / 5.163 GB, free: 102.4 MB / 1.182 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003759/11.44, allocations: 1.512 MB / 5.164 GB, free: 100.9 MB / 1.182 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.587e-05/11.44, allocations: 14.91 kB / 5.164 GB, free: 100.9 MB / 1.182 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.646e-06/11.44, allocations: 0 / 5.164 GB, free: 100.9 MB / 1.182 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002353/11.44, allocations: 1.175 MB / 5.166 GB, free: 99.72 MB / 1.182 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00697/11.45, allocations: 3.543 MB / 5.169 GB, free: 96.07 MB / 1.182 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.07e-05/11.45, allocations: 11.98 kB / 5.169 GB, free: 96.06 MB / 1.182 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00098/11.45, allocations: 186.7 kB / 5.169 GB, free: 95.88 MB / 1.182 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001344/11.45, allocations: 326.9 kB / 5.169 GB, free: 95.57 MB / 1.182 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.861e-05/11.45, allocations: 19.98 kB / 5.17 GB, free: 95.55 MB / 1.182 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008854/11.45, allocations: 0.9865 MB / 5.17 GB, free: 94.55 MB / 1.182 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.183e-06/11.45, allocations: 11.94 kB / 5.17 GB, free: 94.54 MB / 1.182 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003126/11.46, allocations: 2.631 MB / 5.173 GB, free: 91.61 MB / 1.182 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.004642/11.46, allocations: 3.871 MB / 5.177 GB, free: 87.45 MB / 1.182 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001344/11.46, allocations: 418.3 kB / 5.177 GB, free: 87.02 MB / 1.182 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003523/11.46, allocations: 15.89 kB / 5.177 GB, free: 87.01 MB / 1.182 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001459/11.46, allocations: 75 kB / 5.177 GB, free: 86.94 MB / 1.182 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001112/11.46, allocations: 75.59 kB / 5.177 GB, free: 86.87 MB / 1.182 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.988e-05/11.46, allocations: 47.98 kB / 5.177 GB, free: 86.82 MB / 1.182 GB Notification: Performance of sort global known variables: time 0.001525/11.47, allocations: 1.081 MB / 5.178 GB, free: 85.73 MB / 1.182 GB Notification: Performance of remove unused functions: time 0.006925/11.47, allocations: 2.187 MB / 5.181 GB, free: 83.54 MB / 1.182 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * Number of states: 2 (fan.vol.dynBal.medium.Xi[1],fan.vol.dynBal.U) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (87): * Single equations (assignments): 84 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 21} Notification: Performance of Backend phase and start with SimCode phase: time 0.004652/11.48, allocations: 3.906 MB / 5.184 GB, free: 79.82 MB / 1.182 GB Notification: Performance of simCode: created initialization part: time 0.003428/11.48, allocations: 2.05 MB / 5.186 GB, free: 77.77 MB / 1.182 GB Notification: Performance of simCode: created event and clocks part: time 8.356e-06/11.48, allocations: 0 / 5.186 GB, free: 77.77 MB / 1.182 GB Notification: Performance of simCode: created simulation system equations: time 0.0008543/11.48, allocations: 0.5508 MB / 5.187 GB, free: 77.23 MB / 1.182 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005627/11.49, allocations: 1.049 MB / 5.188 GB, free: 76.21 MB / 1.182 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009613/11.5, allocations: 4.02 MB / 5.192 GB, free: 72.11 MB / 1.182 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001724/11.5, allocations: 1.925 MB / 5.194 GB, free: 70.15 MB / 1.182 GB Notification: Performance of SimCode: time 1.784e-06/11.5, allocations: 0 / 5.194 GB, free: 70.15 MB / 1.182 GB (rm -f Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementLatentLoop.pipe ; mkfifo Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementLatentLoop.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementLatentLoop.pipe >> ../files/Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementLatentLoop.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementLatentLoop_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_HexElementLatentLoop_fmu --startTime=0 --stopTime=50 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_HexElementLatentLoop.fmu > Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementLatentLoop.pipe 2>&1)