Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.MassExchangers.Examples.ConstantEffectiveness.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: translateModel(Buildings.Fluid.MassExchangers.Examples.ConstantEffectiveness,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hex.m1_flow|hex.m2_flow|hex.sta_a1.X.1.|hex.sta_b1.X.1.|hex.sta_a2.X.1.|hex.sta_b2.X.1.|hex.dp1|hex.dp2|hex.mWat1_flow|hex.mWat2_flow",fileNamePrefix="Buildings_latest_Buildings.Fluid.MassExchangers.Examples.ConstantEffectiveness") translateModel(Buildings.Fluid.MassExchangers.Examples.ConstantEffectiveness,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hex.m1_flow|hex.m2_flow|hex.sta_a1.X.1.|hex.sta_b1.X.1.|hex.sta_a2.X.1.|hex.sta_b2.X.1.|hex.dp1|hex.dp2|hex.mWat1_flow|hex.mWat2_flow",fileNamePrefix="Buildings_latest_Buildings.Fluid.MassExchangers.Examples.ConstantEffectiveness") [: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 10.0.0-master/package.mo): time 2.218/2.218, allocations: 390.4 MB / 397.7 MB, free: 11.2 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.00147/0.001469, allocations: 191 kB / 490.8 MB, free: 1.879 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.539/1.539, allocations: 221.4 MB / 0.7863 GB, free: 13.73 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009522/0.0009522, allocations: 92.52 kB / 0.9264 GB, free: 14.27 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 7.084e-06/7.104e-06, allocations: 0 / 1.072 GB, free: 164.7 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2441/0.2441, allocations: 143 MB / 1.212 GB, free: 21.87 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 3.78/4.024, allocations: 1.896 GB / 3.108 GB, free: 410.1 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002378/4.024, allocations: 83.95 kB / 3.108 GB, free: 410 MB / 1.151 GB Notification: Performance of FrontEnd: time 3.306/7.329, allocations: 1.009 GB / 4.117 GB, free: 213.5 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.0001013/7.33, allocations: 28.33 kB / 4.117 GB, free: 213.5 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: 209 * Number of variables: 209 Notification: Performance of Generate backend data structure: time 0.006587/7.336, allocations: 1.837 MB / 4.119 GB, free: 212.8 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.941e-05/7.336, allocations: 9.062 kB / 4.119 GB, free: 212.8 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00378/7.34, allocations: 0.5905 MB / 4.119 GB, free: 212.7 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003555/7.344, allocations: 1.077 MB / 4.121 GB, free: 212.4 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007241/7.344, allocations: 188.6 kB / 4.121 GB, free: 212.4 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001907/7.345, allocations: 50.53 kB / 4.121 GB, free: 212.4 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002195/7.347, allocations: 1.012 MB / 4.122 GB, free: 212.1 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002043/7.349, allocations: 1.048 MB / 4.123 GB, free: 211.7 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.259e-05/7.349, allocations: 0 / 4.123 GB, free: 211.7 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.991e-05/7.349, allocations: 5.094 kB / 4.123 GB, free: 211.7 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.224e-05/7.349, allocations: 44.7 kB / 4.123 GB, free: 211.7 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008519/7.358, allocations: 4.106 MB / 4.127 GB, free: 209.3 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001281/7.359, allocations: 0.7253 MB / 4.128 GB, free: 209 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007985/7.36, allocations: 0.5055 MB / 4.128 GB, free: 208.8 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001094/7.361, allocations: 0.6214 MB / 4.129 GB, free: 208.2 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.779e-05/7.361, allocations: 40 kB / 4.129 GB, free: 208.2 MB / 1.151 GB Notification: Performance of pre-optimization done (n=76): time 3.436e-06/7.361, allocations: 0 / 4.129 GB, free: 208.2 MB / 1.151 GB Notification: Performance of matching and sorting (n=76): time 0.003066/7.364, allocations: 1.188 MB / 4.13 GB, free: 207.8 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.242e-05/7.364, allocations: 62.88 kB / 4.13 GB, free: 207.7 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009714/7.365, allocations: 0.5705 MB / 4.13 GB, free: 207.4 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 0.0001145/7.365, allocations: 28.52 kB / 4.13 GB, free: 207.4 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002173/7.365, allocations: 336.3 kB / 4.131 GB, free: 207.2 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002225/7.366, allocations: 250 kB / 4.131 GB, free: 207 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.08e-05/7.366, allocations: 1.938 kB / 4.131 GB, free: 207 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 8.604e-05/7.366, allocations: 334 kB / 4.131 GB, free: 206.7 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007002/7.366, allocations: 410.3 kB / 4.132 GB, free: 206.5 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008351/7.367, allocations: 0.5351 MB / 4.132 GB, free: 206.2 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001415/7.369, allocations: 0.6161 MB / 4.133 GB, free: 206 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.918e-06/7.369, allocations: 0 / 4.133 GB, free: 206 MB / 1.151 GB Notification: Performance of matching and sorting (n=87) (initialization): time 0.002494/7.371, allocations: 1.216 MB / 4.134 GB, free: 205.6 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001311/7.371, allocations: 457.7 kB / 4.134 GB, free: 205.2 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.737e-06/7.371, allocations: 0 / 4.134 GB, free: 205.2 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.239e-05/7.371, allocations: 7.125 kB / 4.134 GB, free: 205.2 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001857/7.373, allocations: 290.7 kB / 4.135 GB, free: 205.1 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007136/7.374, allocations: 1.211 MB / 4.136 GB, free: 203.9 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001737/7.376, allocations: 180.8 kB / 4.136 GB, free: 203.9 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001643/7.376, allocations: 44.44 kB / 4.136 GB, free: 203.9 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.037e-05/7.376, allocations: 6.094 kB / 4.136 GB, free: 203.9 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002297/7.378, allocations: 1.089 MB / 4.137 GB, free: 203.6 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.167e-06/7.378, allocations: 4.766 kB / 4.137 GB, free: 203.6 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.032e-05/7.378, allocations: 3.844 kB / 4.137 GB, free: 203.6 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001437/7.38, allocations: 273 kB / 4.137 GB, free: 203.6 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.842e-05/7.38, allocations: 7.938 kB / 4.138 GB, free: 203.6 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001609/7.381, allocations: 182.8 kB / 4.138 GB, free: 203.5 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001456/7.382, allocations: 39.8 kB / 4.138 GB, free: 203.5 MB / 1.151 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 2 (hex.i1_w,hex.i2_w) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (86): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003315/7.382, allocations: 120.3 kB / 4.138 GB, free: 203.4 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003271/7.382, allocations: 95 kB / 4.138 GB, free: 203.4 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002933/7.385, allocations: 1.269 MB / 4.139 GB, free: 202.9 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.101e-05/7.385, allocations: 8.5 kB / 4.139 GB, free: 202.9 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.904e-06/7.385, allocations: 4 kB / 4.139 GB, free: 202.9 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.023e-05/7.385, allocations: 3.938 kB / 4.139 GB, free: 202.9 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005911/7.391, allocations: 2.652 MB / 4.142 GB, free: 201.8 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.14e-05/7.391, allocations: 4.594 kB / 4.142 GB, free: 201.8 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001595/7.393, allocations: 268.3 kB / 4.142 GB, free: 201.8 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.689e-05/7.393, allocations: 5.594 kB / 4.142 GB, free: 201.8 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001139/7.393, allocations: 21.34 kB / 4.142 GB, free: 201.7 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005158/7.393, allocations: 1.203 MB / 4.143 GB, free: 200.6 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.356e-06/7.394, allocations: 11.59 kB / 4.143 GB, free: 200.5 MB / 1.151 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002812/7.396, allocations: 1.534 MB / 4.145 GB, free: 199.5 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009163/7.397, allocations: 310.2 kB / 4.145 GB, free: 199.3 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000372/7.398, allocations: 4.781 kB / 4.145 GB, free: 199.3 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001814/7.399, allocations: 168.8 kB / 4.145 GB, free: 199.2 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001585/7.4, allocations: 54.11 kB / 4.145 GB, free: 199.2 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001343/7.4, allocations: 36.62 kB / 4.145 GB, free: 199.2 MB / 1.151 GB Notification: Performance of sort global known variables: time 0.0009581/7.401, allocations: 444.8 kB / 4.146 GB, free: 198.9 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.003615/7.404, allocations: 0.6862 MB / 4.146 GB, free: 198.7 MB / 1.151 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (76): * Single equations (assignments): 74 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005033/7.409, allocations: 2.64 MB / 4.149 GB, free: 197.6 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.004035/7.413, allocations: 1.608 MB / 4.151 GB, free: 196.9 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 1.12e-05/7.413, allocations: 1 kB / 4.151 GB, free: 196.9 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.001209/7.415, allocations: 0.5374 MB / 4.151 GB, free: 196.6 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002782/7.418, allocations: 416.2 kB / 4.151 GB, free: 196.4 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01732/7.435, allocations: 2.419 MB / 4.154 GB, free: 195.2 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001798/7.437, allocations: 1.242 MB / 4.155 GB, free: 194.3 MB / 1.151 GB Notification: Performance of SimCode: time 1.182e-06/7.437, allocations: 0 / 4.155 GB, free: 194.3 MB / 1.151 GB Notification: Performance of Templates: time 0.06252/7.499, allocations: 38.39 MB / 4.193 GB, free: 162 MB / 1.151 GB make -j1 -f Buildings_latest_Buildings.Fluid.MassExchangers.Examples.ConstantEffectiveness.makefile (rm -f Buildings_latest_Buildings.Fluid.MassExchangers.Examples.ConstantEffectiveness.pipe ; mkfifo Buildings_latest_Buildings.Fluid.MassExchangers.Examples.ConstantEffectiveness.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.MassExchangers.Examples.ConstantEffectiveness.pipe >> ../files/Buildings_latest_Buildings.Fluid.MassExchangers.Examples.ConstantEffectiveness.sim & ./Buildings_latest_Buildings.Fluid.MassExchangers.Examples.ConstantEffectiveness -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.MassExchangers.Examples.ConstantEffectiveness.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.MassExchangers.Examples.ConstantEffectiveness_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_MassExchangers_Examples_ConstantEffectiveness.csv","../files/Buildings_latest_Buildings.Fluid.MassExchangers.Examples.ConstantEffectiveness.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches