Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/Buildings 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water,fileNamePrefix="Buildings_9_Buildings_Fluid_Interfaces_Examples_PrescribedOutlet_Water",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water,fileNamePrefix="Buildings_9_Buildings_Fluid_Interfaces_Examples_PrescribedOutlet_Water",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0016/0.0016, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001898/0.001899, allocations: 194 kB / 16.53 MB, free: 6.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.453/1.453, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.365/2.365, allocations: 390.3 MB / 0.6647 GB, free: 276 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001547/0.001547, allocations: 63.91 kB / 0.8126 GB, free: 14.16 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6677/0.6693, allocations: 140.4 MB / 0.9497 GB, free: 9.188 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water): time 0.02914/0.6985, allocations: 29.33 MB / 0.9784 GB, free: 1.598 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.0113/0.7098, allocations: 6.876 MB / 0.9851 GB, free: 12 MB / 0.7481 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001804/0.7117, allocations: 51.28 kB / 0.9851 GB, free: 11.97 MB / 0.7481 GB Notification: Performance of NFTyping.typeComponents: time 0.002123/0.7139, allocations: 0.689 MB / 0.9858 GB, free: 11.46 MB / 0.7481 GB Notification: Performance of NFTyping.typeBindings: time 0.004411/0.7183, allocations: 1.454 MB / 0.9872 GB, free: 10.34 MB / 0.7481 GB Notification: Performance of NFTyping.typeClassSections: time 0.003404/0.7218, allocations: 1.149 MB / 0.9883 GB, free: 9.473 MB / 0.7481 GB Notification: Performance of NFFlatten.flatten: time 0.003736/0.7255, allocations: 2.473 MB / 0.9908 GB, free: 7.684 MB / 0.7481 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001678/0.7272, allocations: 0.7926 MB / 0.9915 GB, free: 6.879 MB / 0.7481 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002348/0.7296, allocations: 1.008 MB / 0.9925 GB, free: 5.867 MB / 0.7481 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001464/0.731, allocations: 0.813 MB / 0.9933 GB, free: 5.051 MB / 0.7481 GB Notification: Performance of NFPackage.collectConstants: time 0.00033/0.7314, allocations: 64 kB / 0.9934 GB, free: 4.988 MB / 0.7481 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002479/0.7339, allocations: 0.8188 MB / 0.9942 GB, free: 4.168 MB / 0.7481 GB Notification: Performance of NFScalarize.scalarize: time 0.0004302/0.7343, allocations: 275 kB / 0.9944 GB, free: 3.898 MB / 0.7481 GB Notification: Performance of NFVerifyModel.verify: time 0.0009661/0.7353, allocations: 0.5553 MB / 0.995 GB, free: 3.34 MB / 0.7481 GB Notification: Performance of NFConvertDAE.convert: time 0.002718/0.738, allocations: 1.585 MB / 0.9965 GB, free: 1.75 MB / 0.7481 GB Notification: Performance of FrontEnd - DAE generated: time 5.611e-06/0.738, allocations: 0 / 0.9965 GB, free: 1.75 MB / 0.7481 GB Notification: Performance of FrontEnd: time 1.864e-06/0.7381, allocations: 0 / 0.9965 GB, free: 1.75 MB / 0.7481 GB Notification: Performance of Transformations before backend: time 4.934e-05/0.7381, allocations: 4 kB / 0.9965 GB, free: 1.746 MB / 0.7481 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 176 * Number of variables: 176 Notification: Performance of Generate backend data structure: time 0.002833/0.7409, allocations: 1.568 MB / 0.9981 GB, free: 128 kB / 0.7481 GB Notification: Performance of prepare preOptimizeDAE: time 3.619e-05/0.741, allocations: 12.03 kB / 0.9981 GB, free: 116 kB / 0.7481 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001447/0.7411, allocations: 110.8 kB / 0.9982 GB, free: 15.99 MB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003474/0.7446, allocations: 0.5923 MB / 0.9987 GB, free: 15.4 MB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00122/0.7459, allocations: 0.8133 MB / 0.9995 GB, free: 14.54 MB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.55e-05/0.7459, allocations: 58.12 kB / 0.9996 GB, free: 14.48 MB / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001317/0.7461, allocations: 72 kB / 0.9997 GB, free: 14.41 MB / 0.7637 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002383/0.7484, allocations: 1.103 MB / 1.001 GB, free: 13.22 MB / 0.7637 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.867e-05/0.7485, allocations: 0 / 1.001 GB, free: 13.22 MB / 0.7637 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.327e-05/0.7486, allocations: 31.94 kB / 1.001 GB, free: 13.19 MB / 0.7637 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.692e-05/0.7486, allocations: 20 kB / 1.001 GB, free: 13.17 MB / 0.7637 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003008/0.7516, allocations: 1 MB / 1.002 GB, free: 12.17 MB / 0.7637 GB Warning: The model contains alias variables with redundant start and/or conflicting 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.005394/0.757, allocations: 4.947 MB / 1.007 GB, free: 6.93 MB / 0.7637 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002949/0.76, allocations: 0.9067 MB / 1.007 GB, free: 6.016 MB / 0.7637 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001465/0.7614, allocations: 490.2 kB / 1.008 GB, free: 5.531 MB / 0.7637 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001406/0.7628, allocations: 1.596 MB / 1.01 GB, free: 3.586 MB / 0.7637 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0017/0.7646, allocations: 0.5767 MB / 1.01 GB, free: 2.996 MB / 0.7637 GB Notification: Performance of pre-optimization done (n=61): time 2.485e-06/0.7646, allocations: 0 / 1.01 GB, free: 2.996 MB / 0.7637 GB Notification: Performance of matching and sorting (n=61): time 0.004681/0.7693, allocations: 1.481 MB / 1.012 GB, free: 1.508 MB / 0.7637 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.542e-05/0.7693, allocations: 55.97 kB / 1.012 GB, free: 1.441 MB / 0.7637 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001348/0.7707, allocations: 1.12 MB / 1.013 GB, free: 316 kB / 0.7637 GB Notification: Performance of collectPreVariables (initialization): time 6.542e-05/0.7708, allocations: 41.7 kB / 1.013 GB, free: 268 kB / 0.7637 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004905/0.7713, allocations: 0.5435 MB / 1.013 GB, free: 15.71 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002203/0.7715, allocations: 209 kB / 1.013 GB, free: 15.5 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002939/0.7718, allocations: 166.5 kB / 1.014 GB, free: 15.34 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001513/0.7719, allocations: 341.9 kB / 1.014 GB, free: 15 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001552/0.7735, allocations: 449.6 kB / 1.014 GB, free: 14.56 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00183/0.7753, allocations: 0.7125 MB / 1.015 GB, free: 13.73 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00318/0.7785, allocations: 1.12 MB / 1.016 GB, free: 12.5 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.342e-05/0.7786, allocations: 8 kB / 1.016 GB, free: 12.5 MB / 0.7794 GB Notification: Performance of matching and sorting (n=100) (initialization): time 0.003804/0.7824, allocations: 1.274 MB / 1.017 GB, free: 11.21 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.37e-05/0.7824, allocations: 8 kB / 1.017 GB, free: 11.21 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.622e-05/0.7824, allocations: 8 kB / 1.017 GB, free: 11.2 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.954e-05/0.7825, allocations: 8 kB / 1.017 GB, free: 11.19 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001215/0.7837, allocations: 275.9 kB / 1.018 GB, free: 10.92 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.109e-05/0.7837, allocations: 19.94 kB / 1.018 GB, free: 10.9 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001224/0.785, allocations: 178.9 kB / 1.018 GB, free: 10.73 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001046/0.7851, allocations: 47.97 kB / 1.018 GB, free: 10.68 MB / 0.7794 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 34 * Number of states: 0 () * Number of discrete variables: 15 ($PRE.setHeaHigPow.nextTimeEvent,$whenCondition3,$PRE.setCooLimPow.nextTimeEvent,$whenCondition2,$PRE.setHeaCooUnl.nextTimeEvent,$whenCondition1,setHeaCooUnl.nextTimeEventScaled,$PRE.setHeaCooUnl.nextTimeEventScaled,setHeaCooUnl.nextTimeEvent,setCooLimPow.nextTimeEventScaled,$PRE.setCooLimPow.nextTimeEventScaled,setCooLimPow.nextTimeEvent,setHeaHigPow.nextTimeEventScaled,$PRE.setHeaHigPow.nextTimeEventScaled,setHeaHigPow.nextTimeEvent) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (100): * Single equations (assignments): 100 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004924/0.7856, allocations: 299.7 kB / 1.018 GB, free: 10.38 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002413/0.7858, allocations: 122.5 kB / 1.018 GB, free: 10.25 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003959/0.7898, allocations: 1.359 MB / 1.02 GB, free: 8.887 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.286e-05/0.7898, allocations: 11.98 kB / 1.02 GB, free: 8.875 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.604e-06/0.7898, allocations: 0 / 1.02 GB, free: 8.875 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.021e-05/0.7899, allocations: 3.984 kB / 1.02 GB, free: 8.871 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005119/0.795, allocations: 2.382 MB / 1.022 GB, free: 6.414 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.126e-06/0.795, allocations: 0 / 1.022 GB, free: 6.414 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001017/0.796, allocations: 183.9 kB / 1.022 GB, free: 6.234 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.159e-05/0.7961, allocations: 8 kB / 1.022 GB, free: 6.227 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.255e-05/0.7962, allocations: 23.97 kB / 1.022 GB, free: 6.203 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.606e-06/0.7962, allocations: 7.938 kB / 1.022 GB, free: 6.195 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.602e-06/0.7962, allocations: 7.938 kB / 1.022 GB, free: 6.188 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005219/0.8014, allocations: 1.965 MB / 1.024 GB, free: 4.184 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004466/0.8019, allocations: 287.2 kB / 1.024 GB, free: 3.883 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001831/0.8021, allocations: 19.98 kB / 1.024 GB, free: 3.863 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009676/0.803, allocations: 103.9 kB / 1.025 GB, free: 3.762 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000115/0.8032, allocations: 52.44 kB / 1.025 GB, free: 3.711 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.095e-05/0.8032, allocations: 35.97 kB / 1.025 GB, free: 3.676 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0008939/0.8041, allocations: 0.7638 MB / 1.025 GB, free: 2.906 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8041, allocations: 0 / 1.025 GB, free: 2.906 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.001085/0.8052, allocations: 343.6 kB / 1.026 GB, free: 2.57 MB / 0.7794 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (heaHigPow.T,cooLimPow.T,heaCooUnl.T) * 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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (70): * Single equations (assignments): 55 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 9 * When equations: 6 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.007166/0.8124, allocations: 3.077 MB / 1.029 GB, free: 15.62 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.003672/0.8161, allocations: 1.188 MB / 1.03 GB, free: 14.44 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.8161, allocations: 0 / 1.03 GB, free: 14.44 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.001622/0.8177, allocations: 0.5736 MB / 1.03 GB, free: 13.86 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001983/0.8197, allocations: 459.8 kB / 1.031 GB, free: 13.42 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0186/0.8383, allocations: 10.2 MB / 1.041 GB, free: 2.652 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000895/0.8393, allocations: 1.104 MB / 1.042 GB, free: 1.516 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.001162/0.8405, allocations: 244.6 kB / 1.042 GB, free: 1.273 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006842/0.8412, allocations: 463.2 kB / 1.043 GB, free: 0.8203 MB / 0.795 GB Notification: Performance of SimCode: time 7.32e-07/0.8412, allocations: 4 kB / 1.043 GB, free: 0.8164 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0653/0.9065, allocations: 30.33 MB / 1.072 GB, free: 2.891 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.354/9.26, allocations: 0 / 1.072 GB, free: 2.891 MB / 0.8262 GB (rm -f Buildings_9_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe ; mkfifo Buildings_9_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe >> ../files/Buildings_9_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water_res.csv --start-time 0 --stop-time 1200 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.48 Buildings_9_Buildings_Fluid_Interfaces_Examples_PrescribedOutlet_Water.fmu > Buildings_9_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Interfaces_Examples_PrescribedOutlet_Water.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches