Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.ActiveBeams.Examples.CoolingAndHeating.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.ActiveBeams.Examples.CoolingAndHeating,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|vol.T|beaCooHea.heaToRoo.Q_flow",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.ActiveBeams.Examples.CoolingAndHeating") translateModel(Buildings.Fluid.HeatExchangers.ActiveBeams.Examples.CoolingAndHeating,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|vol.T|beaCooHea.heaToRoo.Q_flow",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.ActiveBeams.Examples.CoolingAndHeating") [: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.198/1.198, allocations: 249.4 MB / 256.7 MB, free: 7.004 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.0009455/0.0009454, allocations: 180.3 kB / 316 MB, free: 3.586 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.082/1.082, allocations: 205.1 MB / 0.5667 GB, free: 15.73 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.0008269/0.0008269, allocations: 87.33 kB / 0.671 GB, free: 4.859 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 6.762e-06/6.793e-06, allocations: 0 / 0.7807 GB, free: 103.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1579/0.1579, allocations: 106.3 MB / 0.8846 GB, free: 12.69 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.147/4.305, allocations: 2.461 GB / 3.346 GB, free: 306.8 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000202/4.305, allocations: 103.1 kB / 3.346 GB, free: 306.8 MB / 0.8698 GB Notification: Performance of FrontEnd: time 2.921/7.226, allocations: 1.206 GB / 4.552 GB, free: 66.53 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 0.0002906/7.227, allocations: 90.5 kB / 4.552 GB, free: 66.45 MB / 0.8855 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 518 * Number of variables: 518 Notification: Performance of Generate backend data structure: time 0.006284/7.233, allocations: 3.639 MB / 4.556 GB, free: 62.7 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 3.548e-05/7.233, allocations: 8.031 kB / 4.556 GB, free: 62.7 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002204/7.235, allocations: 0.5475 MB / 4.556 GB, free: 62.14 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006168/7.242, allocations: 3.453 MB / 4.56 GB, free: 58.71 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.804e-05/7.242, allocations: 68 kB / 4.56 GB, free: 58.65 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003034/7.242, allocations: 136 kB / 4.56 GB, free: 58.52 MB / 0.8855 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002873/7.245, allocations: 1.836 MB / 4.562 GB, free: 56.67 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003115/7.248, allocations: 2.246 MB / 4.564 GB, free: 54.32 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.66e-05/7.248, allocations: 7.844 kB / 4.564 GB, free: 54.32 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001583/7.248, allocations: 8 kB / 4.564 GB, free: 54.31 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.95e-05/7.248, allocations: 77.48 kB / 4.564 GB, free: 54.23 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01297/7.261, allocations: 10.94 MB / 4.575 GB, free: 43.14 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001738/7.263, allocations: 1.442 MB / 4.576 GB, free: 41.7 MB / 0.8855 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009583/7.264, allocations: 0.9648 MB / 4.577 GB, free: 40.73 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006587/7.265, allocations: 1.183 MB / 4.578 GB, free: 39.3 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.329e-05/7.265, allocations: 47.56 kB / 4.578 GB, free: 39.24 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=126): time 4.008e-06/7.265, allocations: 0 / 4.578 GB, free: 39.24 MB / 0.8855 GB Notification: Performance of matching and sorting (n=132): time 0.008337/7.273, allocations: 4.643 MB / 4.583 GB, free: 34.55 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.419e-05/7.273, allocations: 341.4 kB / 4.583 GB, free: 34.14 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003435/7.277, allocations: 2.669 MB / 4.586 GB, free: 31.47 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 0.000217/7.277, allocations: 33.7 kB / 4.586 GB, free: 31.43 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004691/7.277, allocations: 0.8836 MB / 4.586 GB, free: 30.53 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003671/7.278, allocations: 437.5 kB / 4.587 GB, free: 30.1 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.529e-05/7.278, allocations: 3.938 kB / 4.587 GB, free: 30.09 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 7.949e-05/7.278, allocations: 376.3 kB / 4.587 GB, free: 29.72 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001079/7.279, allocations: 1.023 MB / 4.588 GB, free: 28.7 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001249/7.28, allocations: 1.462 MB / 4.59 GB, free: 27.09 MB / 0.8855 GB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: vol.dynBal.medium.p = vol.dynBal.p_start (bou.p = vol.dynBal.p_start) Notification: Performance of analyzeInitialSystem (initialization): time 0.005748/7.286, allocations: 3.77 MB / 4.593 GB, free: 23.27 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.531e-06/7.286, allocations: 0 / 4.593 GB, free: 23.27 MB / 0.8855 GB Notification: Performance of matching and sorting (n=195) (initialization): time 0.004097/7.29, allocations: 2.789 MB / 4.596 GB, free: 20.47 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003465/7.29, allocations: 2.524 MB / 4.599 GB, free: 17.72 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.27e-05/7.29, allocations: 14.19 kB / 4.599 GB, free: 17.71 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003524/7.291, allocations: 133.7 kB / 4.599 GB, free: 17.58 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009823/7.292, allocations: 266.3 kB / 4.599 GB, free: 17.32 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007344/7.293, allocations: 1.32 MB / 4.6 GB, free: 15.95 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002337/7.295, allocations: 170.6 kB / 4.6 GB, free: 15.8 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001537/7.295, allocations: 76.03 kB / 4.6 GB, free: 15.73 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 7.554e-06/7.295, allocations: 7.938 kB / 4.6 GB, free: 15.72 MB / 0.8855 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003129/7.298, allocations: 2.457 MB / 4.603 GB, free: 13.27 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.486e-06/7.298, allocations: 8 kB / 4.603 GB, free: 13.26 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003111/7.299, allocations: 141.6 kB / 4.603 GB, free: 13.11 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009317/7.299, allocations: 260.3 kB / 4.603 GB, free: 12.86 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006937/7.3, allocations: 1.322 MB / 4.605 GB, free: 11.5 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002419/7.303, allocations: 169.5 kB / 4.605 GB, free: 11.34 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001444/7.303, allocations: 84.03 kB / 4.605 GB, free: 11.26 MB / 0.8855 GB Warning: Assuming redundant initial conditions for the following 1 initial equations: vol.dynBal.medium.p = vol.dynBal.p_start Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 26 * Number of states: 0 () * Number of discrete variables: 8 (beaCooHea.conCoo.mod.temDif_mod.i,beaCooHea.conCoo.mod.watFlo_mod.i,beaCooHea.conCoo.mod.airFlo_mod.i,beaCooHea.conHea.mod.temDif_mod.i,beaCooHea.conHea.mod.watFlo_mod.i,beaCooHea.conHea.mod.airFlo_mod.i,conCoo.I.trigger_internal,conHea.I.trigger_internal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (157): * Single equations (assignments): 143 * Array equations: 0 * Algorithm blocks: 12 * 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 5,1 5} Notification: Performance of prepare postOptimizeDAE: time 0.00042/7.303, allocations: 333.4 kB / 4.605 GB, free: 10.9 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004454/7.304, allocations: 300.2 kB / 4.605 GB, free: 10.6 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00343/7.307, allocations: 2.186 MB / 4.608 GB, free: 8.41 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.505e-05/7.307, allocations: 15.98 kB / 4.608 GB, free: 8.395 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.602e-06/7.307, allocations: 3.906 kB / 4.608 GB, free: 8.391 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002342/7.309, allocations: 1.974 MB / 4.609 GB, free: 6.367 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007805/7.317, allocations: 5.337 MB / 4.615 GB, free: 0.9531 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.424e-06/7.317, allocations: 7.984 kB / 4.615 GB, free: 0.9453 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001043/7.318, allocations: 247.5 kB / 4.615 GB, free: 0.707 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.241e-05/7.318, allocations: 15.94 kB / 4.615 GB, free: 0.6914 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.885e-05/7.318, allocations: 27.98 kB / 4.615 GB, free: 0.6641 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.664e-06/7.318, allocations: 11.94 kB / 4.615 GB, free: 0.6523 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.099e-06/7.318, allocations: 11.59 kB / 4.615 GB, free: 0.6445 MB / 0.8855 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005148/7.324, allocations: 4.212 MB / 4.619 GB, free: 12.21 MB / 0.9011 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001586/7.325, allocations: 0.6846 MB / 4.62 GB, free: 11.5 MB / 0.9011 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006473/7.326, allocations: 24 kB / 4.62 GB, free: 11.48 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001753/7.328, allocations: 151.5 kB / 4.62 GB, free: 11.34 MB / 0.9011 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002781/7.328, allocations: 144.2 kB / 4.62 GB, free: 11.21 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001233/7.328, allocations: 63.88 kB / 4.62 GB, free: 11.14 MB / 0.9011 GB Notification: Performance of sort global known variables: time 0.003202/7.331, allocations: 2.018 MB / 4.622 GB, free: 9.137 MB / 0.9011 GB Notification: Performance of remove unused functions: time 0.003904/7.335, allocations: 1.347 MB / 4.623 GB, free: 7.789 MB / 0.9011 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 6 (conHea.I.y,vol.dynBal.U,vol.dynBal.mXi[1],conCoo.I.y,beaCooHea.watCoo_a.h_outflow,beaCooHea.watHea_a.h_outflow) * Number of discrete variables: 6 (beaCooHea.conCoo.mod.temDif_mod.i,beaCooHea.conCoo.mod.watFlo_mod.i,beaCooHea.conCoo.mod.airFlo_mod.i,beaCooHea.conHea.mod.temDif_mod.i,beaCooHea.conHea.mod.watFlo_mod.i,beaCooHea.conHea.mod.airFlo_mod.i) * Number of discrete states: 6 (beaCooHea.conHea.mod.airFlo_mod.i,beaCooHea.conCoo.mod.airFlo_mod.i,beaCooHea.conCoo.mod.watFlo_mod.i,beaCooHea.conCoo.mod.temDif_mod.i,beaCooHea.conHea.mod.watFlo_mod.i,beaCooHea.conHea.mod.temDif_mod.i) * Top-level inputs: 0 Notification: Strong component statistics for simulation (130): * Single equations (assignments): 120 * Array equations: 0 * Algorithm blocks: 6 * Record equations: 4 * 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 Backend phase and start with SimCode phase: time 0.003887/7.339, allocations: 2.969 MB / 4.626 GB, free: 5.09 MB / 0.9011 GB Notification: Performance of simCode: created initialization part: time 0.005436/7.345, allocations: 4.249 MB / 4.63 GB, free: 0.6992 MB / 0.9011 GB Notification: Performance of simCode: created event and clocks part: time 9.067e-06/7.345, allocations: 0 / 4.63 GB, free: 0.6992 MB / 0.9011 GB Notification: Performance of simCode: created simulation system equations: time 0.002149/7.347, allocations: 1.721 MB / 4.632 GB, free: 14.94 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007101/7.354, allocations: 1.346 MB / 4.633 GB, free: 13.64 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01162/7.365, allocations: 5.257 MB / 4.639 GB, free: 8.285 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002556/7.368, allocations: 2.371 MB / 4.641 GB, free: 5.887 MB / 0.9167 GB Notification: Performance of SimCode: time 1.362e-06/7.368, allocations: 0 / 4.641 GB, free: 5.887 MB / 0.9167 GB Notification: Performance of Templates: time 0.4003/7.768, allocations: 77.21 MB / 4.716 GB, free: 180.7 MB / 0.9167 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.ActiveBeams.Examples.CoolingAndHeating.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.ActiveBeams.Examples.CoolingAndHeating.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.ActiveBeams.Examples.CoolingAndHeating.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.ActiveBeams.Examples.CoolingAndHeating.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.ActiveBeams.Examples.CoolingAndHeating.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.ActiveBeams.Examples.CoolingAndHeating -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.ActiveBeams.Examples.CoolingAndHeating.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.ActiveBeams.Examples.CoolingAndHeating_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Fluid_HeatExchangers_ActiveBeams_Examples_CoolingAndHeating.csv","../files/Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.ActiveBeams.Examples.CoolingAndHeating.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches