Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Validation.HeaterCooler_u.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Fluid.HeatExchangers.Validation.HeaterCooler_u,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|con1.u_s|con1.u_m|con2.u_m|con1.y|con2.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Validation.HeaterCooler_u") translateModel(Buildings.Fluid.HeatExchangers.Validation.HeaterCooler_u,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|con1.u_s|con1.u_m|con2.u_m|con1.y|con2.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Validation.HeaterCooler_u") [: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 7.0.3-maint.7.0.x/package.mo): time 1.206/1.206, allocations: 249.4 MB / 256.7 MB, free: 7.078 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009567/0.0009568, allocations: 181.3 kB / 316 MB, free: 3.602 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.11/1.11, allocations: 205.1 MB / 0.5667 GB, free: 15.65 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008348/0.0008348, allocations: 96.58 kB / 0.671 GB, free: 4.785 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 9.578e-06/9.598e-06, allocations: 4 kB / 0.7807 GB, free: 103.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1575/0.1576, allocations: 106.3 MB / 0.8846 GB, free: 12.68 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 3.486/3.644, allocations: 2.205 GB / 3.089 GB, free: 177.6 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002102/3.644, allocations: 87.95 kB / 3.089 GB, free: 177.5 MB / 0.8698 GB Notification: Performance of FrontEnd: time 2.615/6.259, allocations: 1.007 GB / 4.096 GB, free: 133.8 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 0.000149/6.26, allocations: 47.25 kB / 4.096 GB, free: 133.8 MB / 0.8698 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 296 * Number of variables: 296 Notification: Performance of Generate backend data structure: time 0.003724/6.263, allocations: 2.082 MB / 4.098 GB, free: 132.3 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 3.701e-05/6.263, allocations: 9.219 kB / 4.098 GB, free: 132.3 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003676/6.267, allocations: 0.6432 MB / 4.099 GB, free: 132 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002996/6.27, allocations: 1.471 MB / 4.1 GB, free: 130.9 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003601/6.27, allocations: 125.2 kB / 4.1 GB, free: 130.9 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001821/6.271, allocations: 76.58 kB / 4.1 GB, free: 130.9 MB / 0.8698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001916/6.272, allocations: 1.03 MB / 4.101 GB, free: 130.4 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00192/6.274, allocations: 1.235 MB / 4.103 GB, free: 129.7 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.952e-05/6.274, allocations: 1.062 kB / 4.103 GB, free: 129.7 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001038/6.275, allocations: 2.25 kB / 4.103 GB, free: 129.7 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.989e-05/6.275, allocations: 40.7 kB / 4.103 GB, free: 129.7 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007872/6.282, allocations: 5.97 MB / 4.109 GB, free: 125 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009484/6.283, allocations: 0.6057 MB / 4.109 GB, free: 124.7 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006862/6.284, allocations: 484.6 kB / 4.11 GB, free: 124.5 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006133/6.285, allocations: 487.4 kB / 4.11 GB, free: 124 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007614/6.286, allocations: 0.5386 MB / 4.111 GB, free: 123.6 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=87): time 3.496e-06/6.286, allocations: 0 / 4.111 GB, free: 123.6 MB / 0.8698 GB Notification: Performance of matching and sorting (n=95): time 0.007741/6.293, allocations: 3.147 MB / 4.114 GB, free: 120.9 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.942e-05/6.293, allocations: 196.7 kB / 4.114 GB, free: 120.6 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001034/6.294, allocations: 0.9174 MB / 4.115 GB, free: 119.7 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 7.687e-05/6.294, allocations: 25.7 kB / 4.115 GB, free: 119.7 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002783/6.295, allocations: 496.5 kB / 4.115 GB, free: 119.2 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002076/6.295, allocations: 307.4 kB / 4.116 GB, free: 118.9 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.844e-05/6.295, allocations: 0 / 4.116 GB, free: 118.9 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 6.134e-05/6.295, allocations: 341.9 kB / 4.116 GB, free: 118.6 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004876/6.296, allocations: 385.9 kB / 4.116 GB, free: 118.2 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006024/6.296, allocations: 0.6012 MB / 4.117 GB, free: 117.5 MB / 0.8698 GB Notification: The following equation is consistent and got removed from the initialization problem: $DER.heaDyn.vol.dynBal.medium.p = 0.0 Notification: Performance of analyzeInitialSystem (initialization): time 0.003802/6.3, allocations: 1.42 MB / 4.118 GB, free: 116.1 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.826e-06/6.3, allocations: 2.438 kB / 4.118 GB, free: 116.1 MB / 0.8698 GB Notification: Performance of matching and sorting (n=114) (initialization): time 0.003501/6.304, allocations: 1.61 MB / 4.12 GB, free: 114.5 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001943/6.304, allocations: 1.253 MB / 4.121 GB, free: 113.2 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.868e-06/6.304, allocations: 7.75 kB / 4.121 GB, free: 113.2 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009481/6.305, allocations: 408.8 kB / 4.121 GB, free: 112.8 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007192/6.305, allocations: 175.6 kB / 4.122 GB, free: 112.6 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005633/6.311, allocations: 6.327 MB / 4.128 GB, free: 106 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001522/6.313, allocations: 130.1 kB / 4.128 GB, free: 105.9 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.28e-05/6.313, allocations: 43.14 kB / 4.128 GB, free: 105.8 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 6.442e-06/6.313, allocations: 4 kB / 4.128 GB, free: 105.8 MB / 0.8698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003237/6.316, allocations: 1.407 MB / 4.129 GB, free: 104.4 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.442e-06/6.316, allocations: 13.98 kB / 4.129 GB, free: 104.4 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009169/6.317, allocations: 404.6 kB / 4.13 GB, free: 104 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006995/6.318, allocations: 181.9 kB / 4.13 GB, free: 103.8 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005893/6.324, allocations: 7.191 MB / 4.137 GB, free: 96.23 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001512/6.325, allocations: 129.1 kB / 4.137 GB, free: 96.12 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.532e-05/6.325, allocations: 40.05 kB / 4.137 GB, free: 96.08 MB / 0.8698 GB Warning: Assuming redundant initial conditions for the following 1 initial equations: $DER.heaDyn.vol.dynBal.medium.p = 0.0 Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: heaSte.vol.heatPort.Q_flow:VARIABLE(flow=true unit = "W" final = true ) "Heat flow rate (positive if flowing from outside into the component)" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,TSet.a,TSet.b,TSet.last,$PRE.TSet.nextEvent,TSet.nextEvent,TSet.nextEventScaled,con2.I.trigger_internal,con1.I.trigger_internal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (87): * Single equations (assignments): 82 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 4,1 10,1 4,1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0003167/6.325, allocations: 170.1 kB / 4.137 GB, free: 95.91 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001872/6.326, allocations: 158.2 kB / 4.137 GB, free: 95.75 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003188/6.329, allocations: 1.418 MB / 4.139 GB, free: 94.33 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.883e-06/6.329, allocations: 8 kB / 4.139 GB, free: 94.32 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.385e-06/6.329, allocations: 0 / 4.139 GB, free: 94.32 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002561/6.331, allocations: 1.284 MB / 4.14 GB, free: 93.02 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005435/6.337, allocations: 3.122 MB / 4.143 GB, free: 89.84 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.232e-06/6.337, allocations: 4 kB / 4.143 GB, free: 89.84 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009328/6.338, allocations: 193.7 kB / 4.143 GB, free: 89.65 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003891/6.338, allocations: 198 kB / 4.143 GB, free: 89.47 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.036e-05/6.338, allocations: 19.98 kB / 4.143 GB, free: 89.45 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002295/6.341, allocations: 2.392 MB / 4.146 GB, free: 86.93 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.13e-06/6.341, allocations: 11.06 kB / 4.146 GB, free: 86.92 MB / 0.8698 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003729/6.344, allocations: 2.36 MB / 4.148 GB, free: 84.4 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008581/6.345, allocations: 359.2 kB / 4.148 GB, free: 84.03 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002299/6.346, allocations: 16.02 kB / 4.148 GB, free: 84.01 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00127/6.347, allocations: 134.6 kB / 4.149 GB, free: 83.89 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001134/6.347, allocations: 60.42 kB / 4.149 GB, free: 83.84 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.025e-05/6.347, allocations: 47.81 kB / 4.149 GB, free: 83.79 MB / 0.8698 GB Notification: Performance of sort global known variables: time 0.0008515/6.348, allocations: 0.7031 MB / 4.149 GB, free: 83.09 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.003297/6.351, allocations: 0.9214 MB / 4.15 GB, free: 82.17 MB / 0.8698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 6 (senTem1.T,con1.I.y,heaDyn.vol.dynBal.medium.X[2],heaDyn.vol.dynBal.medium.dT,senTem2.T,con2.I.y) * Number of discrete variables: 6 ($whenCondition1,TSet.a,TSet.b,TSet.last,TSet.nextEvent,TSet.nextEventScaled) * Number of discrete states: 6 (TSet.nextEvent,TSet.last,TSet.nextEventScaled,TSet.b,TSet.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (82): * Single equations (assignments): 79 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 4,1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.002801/6.354, allocations: 2.641 MB / 4.153 GB, free: 79.72 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.002786/6.357, allocations: 2.384 MB / 4.155 GB, free: 77.25 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 4.959e-06/6.357, allocations: 8.062 kB / 4.155 GB, free: 77.25 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.0007349/6.358, allocations: 0.6577 MB / 4.156 GB, free: 76.57 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003222/6.361, allocations: 0.6968 MB / 4.157 GB, free: 75.89 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005528/6.366, allocations: 2.634 MB / 4.159 GB, free: 73.2 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009981/6.367, allocations: 1.501 MB / 4.161 GB, free: 71.67 MB / 0.8698 GB Notification: Performance of SimCode: time 9.52e-07/6.367, allocations: 0 / 4.161 GB, free: 71.67 MB / 0.8698 GB Notification: Performance of Templates: time 0.06333/6.431, allocations: 50.23 MB / 4.21 GB, free: 22.05 MB / 0.8698 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Validation.HeaterCooler_u.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Validation.HeaterCooler_u.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Validation.HeaterCooler_u.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Validation.HeaterCooler_u.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Validation.HeaterCooler_u.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Validation.HeaterCooler_u -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Validation.HeaterCooler_u.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Validation.HeaterCooler_u_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Fluid_HeatExchangers_Validation_HeaterCooler_u.csv","../files/Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Validation.HeaterCooler_u.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches