Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet.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.Interfaces.Examples.PrescribedOutlet,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|heaHigPow.sta_a.T|heaHigPow.sta_b.T|cooLimPow.sta_a.T|cooLimPow.sta_b.T|heaCooUnl.sta_a.T|heaCooUnl.sta_b.T|heaCooUnl.TSet|steSta.sta_b.T|heaHigPow.Q_flow|cooLimPow.Q_flow|heaCooUnl.Q_flow|steSta.Q_flow|setHeaHigPow.y.2.|heaHigPow.port_b.Xi_outflow.1.|setCooLimPow.y.2.|cooLimPow.port_b.Xi_outflow.1.|setHeaCooUnl.y.2.|heaCooUnl.port_b.Xi_outflow.1.|steSta.port_b.Xi_outflow.1.|heaCooUnl.X_wSet|heaCooUnl.sta_b.X.1.|heaHigPow.mWat_flow|cooLimPow.mWat_flow|heaCooUnl.mWat_flow|steSta.mWat_flow",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet") translateModel(Buildings.Fluid.Interfaces.Examples.PrescribedOutlet,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|heaHigPow.sta_a.T|heaHigPow.sta_b.T|cooLimPow.sta_a.T|cooLimPow.sta_b.T|heaCooUnl.sta_a.T|heaCooUnl.sta_b.T|heaCooUnl.TSet|steSta.sta_b.T|heaHigPow.Q_flow|cooLimPow.Q_flow|heaCooUnl.Q_flow|steSta.Q_flow|setHeaHigPow.y.2.|heaHigPow.port_b.Xi_outflow.1.|setCooLimPow.y.2.|cooLimPow.port_b.Xi_outflow.1.|setHeaCooUnl.y.2.|heaCooUnl.port_b.Xi_outflow.1.|steSta.port_b.Xi_outflow.1.|heaCooUnl.X_wSet|heaCooUnl.sta_b.X.1.|heaHigPow.mWat_flow|cooLimPow.mWat_flow|heaCooUnl.mWat_flow|steSta.mWat_flow",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.529/1.529, allocations: 249.5 MB / 257 MB, free: 6.965 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.001111/0.001111, allocations: 183.6 kB / 316.3 MB, free: 3.215 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.801/1.801, allocations: 205.3 MB / 0.5671 GB, free: 15.79 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.0008383/0.0008381, allocations: 88.41 kB / 0.6714 GB, free: 4.91 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.213e-05/2.215e-05, allocations: 7.984 kB / 0.7814 GB, free: 102.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.222/0.2221, allocations: 106.3 MB / 0.8852 GB, free: 12.25 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 6.24/6.462, allocations: 2.186 GB / 3.072 GB, free: 179.4 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000239/6.463, allocations: 81.39 kB / 3.072 GB, free: 179.3 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 2.388/8.85, allocations: 0.65 GB / 3.722 GB, free: 175.7 MB / 0.8698 GB Notification: Performance of FrontEnd: time 1.222e-06/8.85, allocations: 0 / 3.722 GB, free: 175.7 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 0.0001098/8.85, allocations: 52.67 kB / 3.722 GB, free: 175.7 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: 226 * Number of variables: 226 Notification: Performance of Generate backend data structure: time 0.005448/8.856, allocations: 1.743 MB / 3.723 GB, free: 174.8 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.742e-05/8.856, allocations: 14.09 kB / 3.723 GB, free: 174.8 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004966/8.861, allocations: 0.8805 MB / 3.724 GB, free: 174.7 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002954/8.864, allocations: 1.105 MB / 3.725 GB, free: 174.2 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.279e-05/8.864, allocations: 32.7 kB / 3.725 GB, free: 174.2 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001652/8.864, allocations: 56.19 kB / 3.725 GB, free: 174.2 MB / 0.8698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001705/8.866, allocations: 1.09 MB / 3.726 GB, free: 173.7 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0016/8.867, allocations: 1.145 MB / 3.728 GB, free: 173.3 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.211e-05/8.868, allocations: 0 / 3.728 GB, free: 173.3 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.917e-05/8.868, allocations: 3.703 kB / 3.728 GB, free: 173.3 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.12e-05/8.868, allocations: 48.75 kB / 3.728 GB, free: 173.3 MB / 0.8698 GB Warning: The model contains alias variables with conflicting start and/or nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007103/8.875, allocations: 4.809 MB / 3.732 GB, free: 170 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001341/8.876, allocations: 1.065 MB / 3.733 GB, free: 169.4 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000675/8.877, allocations: 0.5686 MB / 3.734 GB, free: 169.2 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001146/8.878, allocations: 0.9467 MB / 3.735 GB, free: 168.2 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000905/8.879, allocations: 0.6905 MB / 3.736 GB, free: 167.8 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=95): time 3.096e-06/8.879, allocations: 0 / 3.736 GB, free: 167.8 MB / 0.8698 GB Notification: Performance of matching and sorting (n=95): time 0.002744/8.882, allocations: 1.289 MB / 3.737 GB, free: 167.1 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.17e-05/8.882, allocations: 62.91 kB / 3.737 GB, free: 167.1 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009049/8.883, allocations: 0.8251 MB / 3.738 GB, free: 166.6 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 9.952e-05/8.883, allocations: 28.98 kB / 3.738 GB, free: 166.6 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003487/8.883, allocations: 0.5625 MB / 3.738 GB, free: 166.1 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002394/8.883, allocations: 315.3 kB / 3.739 GB, free: 165.9 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.436e-05/8.883, allocations: 0 / 3.739 GB, free: 165.9 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 7.316e-05/8.883, allocations: 344.6 kB / 3.739 GB, free: 165.5 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005978/8.884, allocations: 471.1 kB / 3.739 GB, free: 165.3 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007658/8.885, allocations: 0.7293 MB / 3.74 GB, free: 164.8 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006858/8.886, allocations: 0.5042 MB / 3.741 GB, free: 164.5 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.669e-06/8.886, allocations: 3.875 kB / 3.741 GB, free: 164.5 MB / 0.8698 GB Notification: Performance of matching and sorting (n=121) (initialization): time 0.001768/8.887, allocations: 1.272 MB / 3.742 GB, free: 163.9 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 2.237e-05/8.887, allocations: 6.938 kB / 3.742 GB, free: 163.9 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.076e-05/8.887, allocations: 3.875 kB / 3.742 GB, free: 163.9 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.647e-05/8.887, allocations: 15.55 kB / 3.742 GB, free: 163.9 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001779/8.889, allocations: 351.5 kB / 3.742 GB, free: 163.8 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.446e-05/8.889, allocations: 12.34 kB / 3.742 GB, free: 163.8 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001601/8.891, allocations: 219.7 kB / 3.742 GB, free: 163.7 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001302/8.891, allocations: 58.11 kB / 3.742 GB, free: 163.7 MB / 0.8698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 15 ($whenCondition3,$PRE.setHeaHigPow.nextTimeEvent,$whenCondition2,$PRE.setCooLimPow.nextTimeEvent,$whenCondition1,$PRE.setHeaCooUnl.nextTimeEvent,setHeaHigPow.nextTimeEvent,$PRE.setHeaHigPow.nextTimeEventScaled,setHeaHigPow.nextTimeEventScaled,setCooLimPow.nextTimeEvent,$PRE.setCooLimPow.nextTimeEventScaled,setCooLimPow.nextTimeEventScaled,setHeaCooUnl.nextTimeEvent,$PRE.setHeaCooUnl.nextTimeEventScaled,setHeaCooUnl.nextTimeEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (121): * Single equations (assignments): 121 * Array equations: 0 * Algorithm blocks: 0 * 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.0002471/8.891, allocations: 132.8 kB / 3.743 GB, free: 163.5 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001858/8.891, allocations: 120.1 kB / 3.743 GB, free: 163.5 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002269/8.894, allocations: 1.36 MB / 3.744 GB, free: 162.7 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.286e-05/8.894, allocations: 13.55 kB / 3.744 GB, free: 162.7 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.404e-06/8.894, allocations: 2.25 kB / 3.744 GB, free: 162.7 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.072e-05/8.894, allocations: 7.922 kB / 3.744 GB, free: 162.7 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004979/8.899, allocations: 2.898 MB / 3.747 GB, free: 160.9 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.277e-06/8.899, allocations: 3.75 kB / 3.747 GB, free: 160.9 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001729/8.901, allocations: 311.7 kB / 3.747 GB, free: 160.8 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.333e-05/8.901, allocations: 9.969 kB / 3.747 GB, free: 160.8 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001029/8.901, allocations: 30.36 kB / 3.747 GB, free: 160.8 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.266e-05/8.901, allocations: 15.22 kB / 3.747 GB, free: 160.8 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.818e-06/8.901, allocations: 7.406 kB / 3.747 GB, free: 160.8 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003474/8.904, allocations: 2.388 MB / 3.75 GB, free: 159.3 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000787/8.905, allocations: 356.5 kB / 3.75 GB, free: 158.9 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001981/8.905, allocations: 16.11 kB / 3.75 GB, free: 158.9 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001461/8.907, allocations: 170.3 kB / 3.75 GB, free: 158.8 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001719/8.907, allocations: 72.59 kB / 3.75 GB, free: 158.7 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001019/8.907, allocations: 47.95 kB / 3.75 GB, free: 158.7 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 0.0009088/8.908, allocations: 0.6303 MB / 3.751 GB, free: 158 MB / 0.8698 GB Notification: Performance of sort global known variables: time 1.3e-07/8.908, allocations: 0 / 3.751 GB, free: 158 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.002008/8.91, allocations: 467.3 kB / 3.751 GB, free: 157.6 MB / 0.8698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 6 (heaHigPow.T,heaHigPow.Xi,cooLimPow.T,cooLimPow.Xi,heaCooUnl.T,heaCooUnl.Xi) * Number of discrete variables: 9 ($whenCondition3,$whenCondition2,$whenCondition1,setHeaHigPow.nextTimeEvent,setHeaHigPow.nextTimeEventScaled,setCooLimPow.nextTimeEvent,setCooLimPow.nextTimeEventScaled,setHeaCooUnl.nextTimeEvent,setHeaCooUnl.nextTimeEventScaled) * Number of discrete states: 6 (setHeaHigPow.nextTimeEvent,setCooLimPow.nextTimeEvent,setHeaCooUnl.nextTimeEvent,setHeaCooUnl.nextTimeEventScaled,setCooLimPow.nextTimeEventScaled,setHeaHigPow.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (101): * Single equations (assignments): 95 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * 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.003352/8.913, allocations: 2.159 MB / 3.753 GB, free: 155.8 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.001708/8.915, allocations: 1.155 MB / 3.754 GB, free: 154.6 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 3.577e-06/8.915, allocations: 0 / 3.754 GB, free: 154.6 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.000757/8.916, allocations: 0.6171 MB / 3.755 GB, free: 154 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002074/8.918, allocations: 442.3 kB / 3.755 GB, free: 153.6 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01365/8.932, allocations: 3.026 MB / 3.758 GB, free: 150.5 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008407/8.932, allocations: 1.23 MB / 3.76 GB, free: 149.3 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 0.002069/8.935, allocations: 367.7 kB / 3.76 GB, free: 148.9 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006434/8.935, allocations: 129.8 kB / 3.76 GB, free: 148.8 MB / 0.8698 GB Notification: Performance of SimCode: time 9.32e-07/8.935, allocations: 0 / 3.76 GB, free: 148.8 MB / 0.8698 GB Notification: Performance of Templates: time 0.0447/8.98, allocations: 28.72 MB / 3.788 GB, free: 120.6 MB / 0.8698 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Fluid_Interfaces_Examples_PrescribedOutlet.csv","../files/Buildings_maint.7.0.x_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches