Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementSensible.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.HexElementSensible,fileNamePrefix="Buildings_9_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_HexElementSensible",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementSensible,fileNamePrefix="Buildings_9_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_HexElementSensible",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.272/2.272, allocations: 387.2 MB / 394.5 MB, free: 13.53 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.001015/0.001016, allocations: 184.4 kB / 487 MB, free: 5.184 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.392/1.392, allocations: 221.3 MB / 0.7819 GB, free: 1.266 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.001142/0.001142, allocations: 104 kB / 0.9213 GB, free: 2.512 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.597/0.5981, allocations: 148.5 MB / 1.066 GB, free: 168 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2533/0.8515, allocations: 142.3 MB / 1.205 GB, free: 26 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.507/5.359, allocations: 2.174 GB / 3.38 GB, free: 95 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002693/5.359, allocations: 96.75 kB / 3.38 GB, free: 94.95 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: 276 * Number of variables: 276 Notification: Performance of Generate backend data structure: time 3.875/9.234, allocations: 1.021 GB / 4.401 GB, free: 206.4 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.629e-05/9.234, allocations: 10.75 kB / 4.401 GB, free: 206.4 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001823/9.236, allocations: 360.2 kB / 4.401 GB, free: 206.3 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003193/9.239, allocations: 1.621 MB / 4.403 GB, free: 206 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.441e-05/9.239, allocations: 35.31 kB / 4.403 GB, free: 206 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001595/9.239, allocations: 67.59 kB / 4.403 GB, free: 206 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001371/9.241, allocations: 0.7987 MB / 4.404 GB, free: 206 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001514/9.242, allocations: 0.9834 MB / 4.405 GB, free: 205.9 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.136e-05/9.242, allocations: 7.406 kB / 4.405 GB, free: 205.9 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.506e-05/9.243, allocations: 3.75 kB / 4.405 GB, free: 205.9 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.566e-05/9.243, allocations: 51.27 kB / 4.405 GB, free: 205.9 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006444/9.249, allocations: 5.681 MB / 4.41 GB, free: 203.1 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001083/9.25, allocations: 0.6475 MB / 4.411 GB, free: 203.1 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004825/9.251, allocations: 385.8 kB / 4.411 GB, free: 203.1 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005109/9.251, allocations: 0.6075 MB / 4.412 GB, free: 202.4 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.072e-05/9.251, allocations: 37.88 kB / 4.412 GB, free: 202.4 MB / 1.151 GB Notification: Performance of pre-optimization done (n=70): time 4.177e-06/9.251, allocations: 3.125 kB / 4.412 GB, free: 202.4 MB / 1.151 GB Notification: Performance of matching and sorting (n=70): time 0.002279/9.253, allocations: 0.8508 MB / 4.413 GB, free: 202.2 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.31e-05/9.254, allocations: 59.78 kB / 4.413 GB, free: 202.2 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001197/9.255, allocations: 0.8802 MB / 4.414 GB, free: 202 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 9.254e-05/9.255, allocations: 25.7 kB / 4.414 GB, free: 202 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002608/9.255, allocations: 484.7 kB / 4.414 GB, free: 201.8 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002336/9.255, allocations: 236.6 kB / 4.415 GB, free: 201.7 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.216e-05/9.255, allocations: 0 / 4.415 GB, free: 201.7 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 7.229e-05/9.255, allocations: 337.3 kB / 4.415 GB, free: 201.4 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003323/9.256, allocations: 238.6 kB / 4.415 GB, free: 201.4 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004298/9.256, allocations: 471.8 kB / 4.416 GB, free: 201.1 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005332/9.257, allocations: 332 kB / 4.416 GB, free: 201.1 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.717e-06/9.257, allocations: 0 / 4.416 GB, free: 201.1 MB / 1.151 GB Notification: Performance of matching and sorting (n=87) (initialization): time 0.001635/9.258, allocations: 0.891 MB / 4.417 GB, free: 201 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002273/9.259, allocations: 1.07 MB / 4.418 GB, free: 199.9 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.07e-05/9.259, allocations: 3.875 kB / 4.418 GB, free: 199.9 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002703/9.259, allocations: 93.34 kB / 4.418 GB, free: 199.9 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000841/9.26, allocations: 165.1 kB / 4.418 GB, free: 199.9 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001063/9.261, allocations: 1.811 MB / 4.42 GB, free: 198.2 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001553/9.262, allocations: 149.1 kB / 4.42 GB, free: 198.2 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.259e-05/9.263, allocations: 36.09 kB / 4.42 GB, free: 198.2 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.123e-05/9.263, allocations: 6.438 kB / 4.42 GB, free: 198.2 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001306/9.264, allocations: 0.6838 MB / 4.421 GB, free: 198.2 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.599e-06/9.264, allocations: 3.594 kB / 4.421 GB, free: 198.2 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002661/9.264, allocations: 90.59 kB / 4.421 GB, free: 198.2 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006126/9.265, allocations: 159.4 kB / 4.421 GB, free: 198.2 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00245/9.267, allocations: 2.996 MB / 4.424 GB, free: 195.6 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001353/9.269, allocations: 137.2 kB / 4.424 GB, free: 195.6 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.208e-05/9.269, allocations: 32.97 kB / 4.424 GB, free: 195.6 MB / 1.151 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (76): * Single equations (assignments): 73 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 4,1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0002449/9.269, allocations: 127.3 kB / 4.424 GB, free: 195.5 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002278/9.269, allocations: 134.4 kB / 4.424 GB, free: 195.4 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001707/9.271, allocations: 0.8592 MB / 4.425 GB, free: 195.3 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.013e-05/9.271, allocations: 6.125 kB / 4.425 GB, free: 195.3 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.256e-06/9.271, allocations: 6.953 kB / 4.425 GB, free: 195.3 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001234/9.272, allocations: 0.9911 MB / 4.426 GB, free: 194.9 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003786/9.276, allocations: 2.223 MB / 4.428 GB, free: 194.5 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.59e-06/9.276, allocations: 3.906 kB / 4.428 GB, free: 194.5 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007431/9.277, allocations: 161.6 kB / 4.428 GB, free: 194.5 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001445/9.277, allocations: 66.33 kB / 4.428 GB, free: 194.4 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.574e-05/9.277, allocations: 10.19 kB / 4.428 GB, free: 194.4 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007461/9.278, allocations: 1.754 MB / 4.43 GB, free: 192.8 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.252e-06/9.278, allocations: 7.406 kB / 4.43 GB, free: 192.8 MB / 1.151 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001717/9.279, allocations: 1.443 MB / 4.432 GB, free: 192.3 MB / 1.151 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.00246/9.282, allocations: 2.344 MB / 4.434 GB, free: 191.5 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000684/9.283, allocations: 315.3 kB / 4.434 GB, free: 191.3 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001847/9.283, allocations: 11 kB / 4.434 GB, free: 191.3 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00107/9.284, allocations: 104.7 kB / 4.434 GB, free: 191.3 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.276e-05/9.284, allocations: 49.27 kB / 4.434 GB, free: 191.3 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.987e-05/9.284, allocations: 31.66 kB / 4.434 GB, free: 191.3 MB / 1.151 GB Notification: Performance of sort global known variables: time 0.0008735/9.285, allocations: 0.6783 MB / 4.435 GB, free: 191.2 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.004619/9.29, allocations: 1.465 MB / 4.436 GB, free: 191.1 MB / 1.151 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 5 (hex.vol1.dynBal.U,hex.vol2.dynBal.medium.Xi[1],hex.vol2.dynBal.U,hex.vol2.dynBal.m,hex.mas.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (64): * Single equations (assignments): 59 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 3,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.003036/9.293, allocations: 2.246 MB / 4.439 GB, free: 190.5 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.002526/9.295, allocations: 1.285 MB / 4.44 GB, free: 190.3 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 6.422e-06/9.295, allocations: 3.344 kB / 4.44 GB, free: 190.3 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0006318/9.296, allocations: 376.1 kB / 4.44 GB, free: 190.3 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003865/9.3, allocations: 0.7121 MB / 4.441 GB, free: 190.3 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004359/9.304, allocations: 2.105 MB / 4.443 GB, free: 189.7 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001038/9.305, allocations: 1.437 MB / 4.444 GB, free: 189 MB / 1.151 GB Notification: Performance of SimCode: time 8.92e-07/9.305, allocations: 3.562 kB / 4.444 GB, free: 189 MB / 1.151 GB (rm -f Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementSensible.pipe ; mkfifo Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementSensible.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementSensible.pipe >> ../files/Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementSensible.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementSensible_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_HexElementSensible_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_HexElementSensible.fmu > Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementSensible.pipe 2>&1)