Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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: translateModel(Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|heaHigPow.mWat_flow|cooLimPow.mWat_flow|heaCooUnl.mWat_flow|steSta.mWat_flow|THeaHigPowIn.T|THeaHigPowOut.T|TCooLimPowIn.T|TCooLimPowOut.T|THeaCooUnlIn.T|THeaCooUnlOut.T|TSteStaIn.T|TSteStaOut.T|heaHigPow.Q_flow|cooLimPow.Q_flow|heaCooUnl.Q_flow|steSta.Q_flow",fileNamePrefix="Buildings_latest_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water") translateModel(Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|heaHigPow.mWat_flow|cooLimPow.mWat_flow|heaCooUnl.mWat_flow|steSta.mWat_flow|THeaHigPowIn.T|THeaHigPowOut.T|TCooLimPowIn.T|TCooLimPowOut.T|THeaCooUnlIn.T|THeaCooUnlOut.T|TSteStaIn.T|TSteStaOut.T|heaHigPow.Q_flow|cooLimPow.Q_flow|heaCooUnl.Q_flow|steSta.Q_flow",fileNamePrefix="Buildings_latest_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00223/0.00223, allocations: 104.4 kB / 15.99 MB, free: 6.355 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002206/0.002207, allocations: 195.9 kB / 16.91 MB, free: 6.188 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.401/1.401, allocations: 222.9 MB / 240.6 MB, free: 15.42 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.749/2.749, allocations: 482.4 MB / 0.755 GB, free: 7.156 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001941/0.001941, allocations: 63.72 kB / 0.924 GB, free: 388 kB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8235/0.8255, allocations: 162.2 MB / 1.082 GB, free: 1.641 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water): time 0.06143/0.887, allocations: 54.09 MB / 1.135 GB, free: 10.9 MB / 0.8731 GB Notification: Performance of NFInst.instExpressions: time 0.01758/0.9046, allocations: 10.3 MB / 1.145 GB, free: 3.461 MB / 0.8731 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002836/0.9074, allocations: 64.22 kB / 1.145 GB, free: 3.434 MB / 0.8731 GB Notification: Performance of NFTyping.typeComponents: time 0.002639/0.9101, allocations: 0.7851 MB / 1.146 GB, free: 2.844 MB / 0.8731 GB Notification: Performance of NFTyping.typeBindings: time 0.006545/0.9167, allocations: 1.774 MB / 1.148 GB, free: 1.461 MB / 0.8731 GB Notification: Performance of NFTyping.typeClassSections: time 0.006243/0.923, allocations: 1.906 MB / 1.15 GB, free: 64 kB / 0.8731 GB Notification: Performance of NFFlatten.flatten: time 0.006449/0.9294, allocations: 3.767 MB / 1.153 GB, free: 13.89 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002239/0.9317, allocations: 1.163 MB / 1.155 GB, free: 13.13 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005163/0.9369, allocations: 1.874 MB / 1.156 GB, free: 12.01 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00275/0.9397, allocations: 1.248 MB / 1.158 GB, free: 11.28 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 0.0003595/0.94, allocations: 104.4 kB / 1.158 GB, free: 11.28 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004089/0.9441, allocations: 1.313 MB / 1.159 GB, free: 10.55 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 0.0006841/0.9448, allocations: 391.9 kB / 1.159 GB, free: 10.26 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 0.001661/0.9465, allocations: 0.8566 MB / 1.16 GB, free: 9.711 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.003682/0.9502, allocations: 1.735 MB / 1.162 GB, free: 8.641 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 6.983e-06/0.9502, allocations: 3.938 kB / 1.162 GB, free: 8.637 MB / 0.8887 GB Notification: Performance of FrontEnd: time 2.104e-06/0.9502, allocations: 1.188 kB / 1.162 GB, free: 8.637 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 2.777e-05/0.9503, allocations: 0 / 1.162 GB, free: 8.637 MB / 0.8887 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 272 * Number of variables: 272 Notification: Performance of Generate backend data structure: time 0.004204/0.9545, allocations: 2.123 MB / 1.164 GB, free: 7.031 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.683e-05/0.9545, allocations: 10.34 kB / 1.164 GB, free: 7.031 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003703/0.9582, allocations: 0.6524 MB / 1.165 GB, free: 6.727 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002174/0.9604, allocations: 1.093 MB / 1.166 GB, free: 5.863 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.312e-05/0.9605, allocations: 80.48 kB / 1.166 GB, free: 5.828 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001896/0.9607, allocations: 112.2 kB / 1.166 GB, free: 5.789 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003389/0.9641, allocations: 1.494 MB / 1.167 GB, free: 4.711 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.09e-05/0.9642, allocations: 7.281 kB / 1.167 GB, free: 4.707 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001126/0.9643, allocations: 44 kB / 1.167 GB, free: 4.676 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.614e-05/0.9643, allocations: 32.91 kB / 1.167 GB, free: 4.672 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003575/0.9679, allocations: 1.226 MB / 1.169 GB, free: 4.086 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01063/0.9785, allocations: 8.359 MB / 1.177 GB, free: 12.28 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003321/0.9819, allocations: 1.093 MB / 1.178 GB, free: 11.77 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001702/0.9836, allocations: 0.557 MB / 1.178 GB, free: 11.5 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002826/0.9865, allocations: 2.903 MB / 1.181 GB, free: 8.09 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001888/0.9884, allocations: 0.6662 MB / 1.182 GB, free: 7.633 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=85): time 3.367e-06/0.9884, allocations: 0 / 1.182 GB, free: 7.633 MB / 0.9044 GB Notification: Performance of matching and sorting (n=85): time 0.005822/0.9942, allocations: 1.794 MB / 1.184 GB, free: 5.832 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.742e-05/0.9943, allocations: 60.41 kB / 1.184 GB, free: 5.758 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002229/0.9965, allocations: 1.489 MB / 1.185 GB, free: 4.262 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 0.0001096/0.9966, allocations: 53.7 kB / 1.185 GB, free: 4.203 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008059/0.9975, allocations: 0.779 MB / 1.186 GB, free: 3.414 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 0.000391/0.9979, allocations: 295.9 kB / 1.186 GB, free: 3.121 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003689/0.9982, allocations: 222.7 kB / 1.186 GB, free: 2.898 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0002057/0.9984, allocations: 353.9 kB / 1.187 GB, free: 2.547 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00159/1, allocations: 0.5139 MB / 1.187 GB, free: 2.031 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002107/1.002, allocations: 0.8993 MB / 1.188 GB, free: 0.9648 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003523/1.006, allocations: 1.418 MB / 1.19 GB, free: 15.39 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.688e-05/1.006, allocations: 8 kB / 1.19 GB, free: 15.39 MB / 0.92 GB Notification: Performance of matching and sorting (n=140) (initialization): time 0.004593/1.01, allocations: 1.604 MB / 1.191 GB, free: 13.77 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 2.876e-05/1.01, allocations: 16.25 kB / 1.191 GB, free: 13.75 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.596e-05/1.01, allocations: 8 kB / 1.191 GB, free: 13.75 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.634e-05/1.01, allocations: 24.08 kB / 1.191 GB, free: 13.72 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001463/1.012, allocations: 339.4 kB / 1.191 GB, free: 13.39 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.958e-05/1.012, allocations: 31.86 kB / 1.191 GB, free: 13.36 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001996/1.014, allocations: 262.5 kB / 1.192 GB, free: 13.1 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001437/1.014, allocations: 67.91 kB / 1.192 GB, free: 13.04 MB / 0.92 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 50 * 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 (140): * Single equations (assignments): 140 * 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.0007466/1.015, allocations: 343.6 kB / 1.192 GB, free: 12.69 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003336/1.015, allocations: 169.9 kB / 1.192 GB, free: 12.52 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005273/1.02, allocations: 2.096 MB / 1.194 GB, free: 10.42 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.088e-05/1.021, allocations: 19.98 kB / 1.194 GB, free: 10.4 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.011e-06/1.021, allocations: 0 / 1.194 GB, free: 10.4 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.143e-05/1.021, allocations: 7.969 kB / 1.194 GB, free: 10.39 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007449/1.028, allocations: 3.283 MB / 1.198 GB, free: 7.035 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.37e-05/1.028, allocations: 3.984 kB / 1.198 GB, free: 7.031 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001186/1.029, allocations: 239.8 kB / 1.198 GB, free: 6.797 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.391e-05/1.029, allocations: 8 kB / 1.198 GB, free: 6.789 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001014/1.029, allocations: 35.97 kB / 1.198 GB, free: 6.754 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.148e-05/1.029, allocations: 7.938 kB / 1.198 GB, free: 6.746 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.749e-06/1.029, allocations: 4 kB / 1.198 GB, free: 6.742 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006714/1.036, allocations: 2.693 MB / 1.2 GB, free: 4.012 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009663/1.037, allocations: 386.4 kB / 1.201 GB, free: 3.613 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002735/1.037, allocations: 27.94 kB / 1.201 GB, free: 3.586 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001298/1.039, allocations: 151.7 kB / 1.201 GB, free: 3.438 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000173/1.039, allocations: 76.89 kB / 1.201 GB, free: 3.363 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001365/1.039, allocations: 51.89 kB / 1.201 GB, free: 3.312 MB / 0.92 GB Notification: Performance of sorting global known variables: time 0.001505/1.041, allocations: 1.003 MB / 1.202 GB, free: 2.316 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.7e-07/1.041, allocations: 0 / 1.202 GB, free: 2.316 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.001934/1.043, allocations: 0.5422 MB / 1.203 GB, free: 1.773 MB / 0.92 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 (110): * Single equations (assignments): 79 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 25 * 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.002552/1.045, allocations: 0.8356 MB / 1.203 GB, free: 1.105 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.004933/1.05, allocations: 1.559 MB / 1.205 GB, free: 15.55 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 6.903e-06/1.05, allocations: 4 kB / 1.205 GB, free: 15.54 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.002091/1.052, allocations: 0.8027 MB / 1.206 GB, free: 14.74 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003502/1.056, allocations: 0.7402 MB / 1.207 GB, free: 14.02 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00651/1.062, allocations: 3.783 MB / 1.21 GB, free: 10.18 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001013/1.063, allocations: 1.297 MB / 1.211 GB, free: 8.848 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006644/1.064, allocations: 183.2 kB / 1.212 GB, free: 8.668 MB / 0.9356 GB Notification: Performance of SimCode: time 6.81e-07/1.064, allocations: 0 / 1.212 GB, free: 8.668 MB / 0.9356 GB Notification: Performance of Templates: time 0.04536/1.109, allocations: 28.73 MB / 1.24 GB, free: 12.21 MB / 0.9669 GB make -j1 -f Buildings_latest_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water.makefile (rm -f Buildings_latest_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe >> ../files/Buildings_latest_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water.sim & ./Buildings_latest_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Interfaces_Examples_PrescribedOutlet_Water.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches