Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Validation.PrescribedOutlet_dynamic.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.PrescribedOutlet_dynamic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|m_flow.y|heaHigPowIn.T|heaHigPowOut.T|heaHigPow.TSet|cooLimPowIn.T|cooLimPowOut.T|cooLimPow.TSet|heaCooUnlIn.T|heaCooUnlOut.T|heaCooUnl.TSet|heaHigPow.QMax_flow|heaHigPow.Q_flow|cooLimPow.QMin_flow|cooLimPow.Q_flow|heaCooUnl.Q_flow",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Validation.PrescribedOutlet_dynamic") translateModel(Buildings.Fluid.HeatExchangers.Validation.PrescribedOutlet_dynamic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|m_flow.y|heaHigPowIn.T|heaHigPowOut.T|heaHigPow.TSet|cooLimPowIn.T|cooLimPowOut.T|cooLimPow.TSet|heaCooUnlIn.T|heaCooUnlOut.T|heaCooUnl.TSet|heaHigPow.QMax_flow|heaHigPow.Q_flow|cooLimPow.QMin_flow|cooLimPow.Q_flow|heaCooUnl.Q_flow",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Validation.PrescribedOutlet_dynamic") [: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.207/1.207, allocations: 249.4 MB / 256.7 MB, free: 6.996 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.001013/0.001013, allocations: 184.6 kB / 316 MB, free: 3.543 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.07/1.07, allocations: 205.1 MB / 0.5667 GB, free: 15.68 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.0007658/0.0007658, allocations: 86.39 kB / 0.671 GB, free: 4.82 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 7.825e-06/7.845e-06, allocations: 4 kB / 0.7807 GB, free: 103.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1541/0.1541, allocations: 106.3 MB / 0.8846 GB, free: 12.66 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6329/0.787, allocations: 382.9 MB / 1.258 GB, free: 3.98 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002382/0.7873, allocations: 85.2 kB / 1.259 GB, free: 3.938 MB / 0.8698 GB Notification: Performance of FrontEnd: time 4.087/4.874, allocations: 1.463 GB / 2.721 GB, free: 143.2 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 0.000124/4.875, allocations: 48.08 kB / 2.721 GB, free: 143.2 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: 260 * Number of variables: 260 Notification: Performance of Generate backend data structure: time 0.002617/4.877, allocations: 1.893 MB / 2.723 GB, free: 142.3 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 3.363e-05/4.877, allocations: 7.562 kB / 2.723 GB, free: 142.3 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002876/4.88, allocations: 0.6646 MB / 2.724 GB, free: 142.2 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003195/4.883, allocations: 1.507 MB / 2.725 GB, free: 141.8 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.033e-05/4.883, allocations: 34.75 kB / 2.725 GB, free: 141.8 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000165/4.884, allocations: 71.28 kB / 2.725 GB, free: 141.8 MB / 0.8855 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001474/4.885, allocations: 0.8235 MB / 2.726 GB, free: 141.8 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001559/4.887, allocations: 1.066 MB / 2.727 GB, free: 141.6 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.985e-05/4.887, allocations: 0 / 2.727 GB, free: 141.6 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.269e-05/4.887, allocations: 3.969 kB / 2.727 GB, free: 141.6 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.79e-05/4.887, allocations: 23.09 kB / 2.727 GB, free: 141.6 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006444/4.893, allocations: 6.722 MB / 2.734 GB, free: 137.7 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001199/4.894, allocations: 0.8456 MB / 2.735 GB, free: 137.6 MB / 0.8855 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005841/4.895, allocations: 0.4937 MB / 2.735 GB, free: 137.6 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001301/4.896, allocations: 2.26 MB / 2.737 GB, free: 135.1 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006779/4.897, allocations: 0.6344 MB / 2.738 GB, free: 134.9 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=97): time 2.675e-06/4.897, allocations: 3.219 kB / 2.738 GB, free: 134.9 MB / 0.8855 GB Notification: Performance of matching and sorting (n=97): time 0.002718/4.9, allocations: 1.308 MB / 2.739 GB, free: 134.8 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.677e-05/4.9, allocations: 148.7 kB / 2.739 GB, free: 134.7 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000945/4.901, allocations: 0.9125 MB / 2.74 GB, free: 134.5 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 7.395e-05/4.901, allocations: 29.42 kB / 2.74 GB, free: 134.5 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002154/4.901, allocations: 461.9 kB / 2.741 GB, free: 134.2 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002008/4.901, allocations: 305.9 kB / 2.741 GB, free: 134 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.476e-05/4.901, allocations: 3.531 kB / 2.741 GB, free: 134 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 7.18e-05/4.901, allocations: 349.8 kB / 2.741 GB, free: 133.7 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005197/4.902, allocations: 408.4 kB / 2.742 GB, free: 133.7 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006336/4.903, allocations: 0.7072 MB / 2.742 GB, free: 133.4 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001675/4.904, allocations: 0.6976 MB / 2.743 GB, free: 133.4 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.669e-06/4.904, allocations: 3.094 kB / 2.743 GB, free: 133.4 MB / 0.8855 GB Notification: Performance of matching and sorting (n=132) (initialization): time 0.002611/4.907, allocations: 1.458 MB / 2.744 GB, free: 133.2 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 0.00031/4.907, allocations: 2.145 MB / 2.747 GB, free: 131 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.067e-06/4.907, allocations: 3.844 kB / 2.747 GB, free: 131 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.014e-05/4.907, allocations: 10.22 kB / 2.747 GB, free: 131 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001201/4.908, allocations: 308.9 kB / 2.747 GB, free: 131 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.565e-05/4.908, allocations: 12.31 kB / 2.747 GB, free: 131 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001411/4.91, allocations: 229.9 kB / 2.747 GB, free: 130.9 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001191/4.91, allocations: 67.83 kB / 2.747 GB, free: 130.9 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 6.082e-06/4.91, allocations: 4.438 kB / 2.747 GB, free: 130.9 MB / 0.8855 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00241/4.912, allocations: 1.267 MB / 2.748 GB, free: 130.9 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.36e-06/4.912, allocations: 6.312 kB / 2.748 GB, free: 130.9 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.636e-06/4.912, allocations: 10.22 kB / 2.748 GB, free: 130.9 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001167/4.914, allocations: 305.5 kB / 2.749 GB, free: 130.9 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.855e-06/4.914, allocations: 17.69 kB / 2.749 GB, free: 130.9 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001262/4.915, allocations: 220.4 kB / 2.749 GB, free: 130.9 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001032/4.915, allocations: 57.28 kB / 2.749 GB, free: 130.9 MB / 0.8855 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * Number of states: 0 () * Number of discrete variables: 21 ($whenCondition1,$whenCondition2,$whenCondition3,TSetHeat.a,TSetHeat.b,TSetHeat.last,$PRE.TSetHeat.nextEvent,TSetHeat.nextEvent,TSetHeat.nextEventScaled,TSetCool.a,TSetCool.b,TSetCool.last,$PRE.TSetCool.nextEvent,TSetCool.nextEvent,TSetCool.nextEventScaled,TSetCoolHeat.a,TSetCoolHeat.b,TSetCoolHeat.last,$PRE.TSetCoolHeat.nextEvent,TSetCoolHeat.nextEvent,TSetCoolHeat.nextEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (117): * Single equations (assignments): 114 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * 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 prepare postOptimizeDAE: time 0.0002125/4.915, allocations: 246.2 kB / 2.749 GB, free: 130.7 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001589/4.915, allocations: 155.3 kB / 2.749 GB, free: 130.6 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003548/4.919, allocations: 2.043 MB / 2.751 GB, free: 130.5 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.665e-05/4.919, allocations: 14.83 kB / 2.751 GB, free: 130.5 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.939e-06/4.919, allocations: 0 / 2.751 GB, free: 130.5 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.14e-05/4.919, allocations: 6.188 kB / 2.751 GB, free: 130.5 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004658/4.924, allocations: 3.124 MB / 2.754 GB, free: 130.1 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.611e-06/4.924, allocations: 3.812 kB / 2.754 GB, free: 130.1 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001099/4.925, allocations: 249.1 kB / 2.755 GB, free: 130.1 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.342e-06/4.925, allocations: 3.938 kB / 2.755 GB, free: 130.1 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.854e-05/4.925, allocations: 33.02 kB / 2.755 GB, free: 130.1 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.869e-06/4.925, allocations: 10.42 kB / 2.755 GB, free: 130.1 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.415e-06/4.925, allocations: 0 / 2.755 GB, free: 130.1 MB / 0.8855 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00351/4.928, allocations: 2.602 MB / 2.757 GB, free: 129.7 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005069/4.929, allocations: 400.9 kB / 2.758 GB, free: 129.5 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000227/4.929, allocations: 10.69 kB / 2.758 GB, free: 129.5 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001156/4.93, allocations: 170.7 kB / 2.758 GB, free: 129.5 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001039/4.93, allocations: 73.02 kB / 2.758 GB, free: 129.5 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001045/4.931, allocations: 55 kB / 2.758 GB, free: 129.5 MB / 0.8855 GB Notification: Performance of sort global known variables: time 0.0006456/4.931, allocations: 0.6884 MB / 2.759 GB, free: 129.4 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.001856/4.933, allocations: 0.8742 MB / 2.759 GB, free: 129.3 MB / 0.8855 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 9 (heaHigPow.outCon.T,heaHigPowOut.T,cooLimPowOut.T,cooLimPow.outCon.T,heaCooUnl.outCon.T,heaCooUnlOut.T,heaHigPowIn.T,cooLimPowIn.T,heaCooUnlIn.T) * Number of discrete variables: 18 ($whenCondition1,$whenCondition2,$whenCondition3,TSetHeat.a,TSetHeat.b,TSetHeat.last,TSetHeat.nextEvent,TSetHeat.nextEventScaled,TSetCool.a,TSetCool.b,TSetCool.last,TSetCool.nextEvent,TSetCool.nextEventScaled,TSetCoolHeat.a,TSetCoolHeat.b,TSetCoolHeat.last,TSetCoolHeat.nextEvent,TSetCoolHeat.nextEventScaled) * Number of discrete states: 18 (TSetCoolHeat.nextEvent,TSetCoolHeat.last,TSetCoolHeat.nextEventScaled,TSetCoolHeat.b,TSetCoolHeat.a,$whenCondition3,TSetCool.nextEvent,TSetCool.last,TSetCool.nextEventScaled,TSetCool.b,TSetCool.a,$whenCondition2,TSetHeat.nextEvent,TSetHeat.last,TSetHeat.nextEventScaled,TSetHeat.b,TSetHeat.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (101): * Single equations (assignments): 79 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 19 * 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.001205/4.934, allocations: 0.9852 MB / 2.76 GB, free: 129 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.001978/4.936, allocations: 1.937 MB / 2.762 GB, free: 128.8 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/4.936, allocations: 2.344 kB / 2.762 GB, free: 128.8 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0007395/4.937, allocations: 0.8067 MB / 2.763 GB, free: 128.7 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002041/4.939, allocations: 0.5113 MB / 2.764 GB, free: 128.7 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003865/4.943, allocations: 2.701 MB / 2.766 GB, free: 128.1 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009495/4.944, allocations: 1.497 MB / 2.768 GB, free: 127.3 MB / 0.8855 GB Notification: Performance of SimCode: time 3.3e-07/4.944, allocations: 3.375 kB / 2.768 GB, free: 127.3 MB / 0.8855 GB Notification: Performance of Templates: time 0.05653/5, allocations: 37.45 MB / 2.804 GB, free: 123.2 MB / 0.8855 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Validation.PrescribedOutlet_dynamic.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Validation.PrescribedOutlet_dynamic.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Validation.PrescribedOutlet_dynamic.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Validation.PrescribedOutlet_dynamic.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Validation.PrescribedOutlet_dynamic.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Validation.PrescribedOutlet_dynamic -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Validation.PrescribedOutlet_dynamic.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Validation.PrescribedOutlet_dynamic_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Fluid_HeatExchangers_Validation_PrescribedOutlet_dynamic.csv","../files/Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Validation.PrescribedOutlet_dynamic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches