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: translateModel(Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water,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|steSta.sta_b.T|heaHigPow.Q_flow|cooLimPow.Q_flow|heaCooUnl.Q_flow|steSta.Q_flow|heaHigPow.mWat_flow|cooLimPow.mWat_flow|heaCooUnl.mWat_flow|steSta.mWat_flow",fileNamePrefix="Buildings_9_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water") translateModel(Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water,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|steSta.sta_b.T|heaHigPow.Q_flow|cooLimPow.Q_flow|heaCooUnl.Q_flow|steSta.Q_flow|heaHigPow.mWat_flow|cooLimPow.mWat_flow|heaCooUnl.mWat_flow|steSta.mWat_flow",fileNamePrefix="Buildings_9_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.007157/0.007157, allocations: 101.2 kB / 15.73 MB, free: 6.055 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.001595/0.001595, allocations: 199.5 kB / 16.68 MB, free: 5.969 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.37/1.37, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.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.329/2.329, allocations: 390.2 MB / 0.6648 GB, free: 0.6406 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001243/0.001243, allocations: 59.91 kB / 0.9509 GB, free: 7.602 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9354/0.9366, allocations: 140.4 MB / 1.088 GB, free: 5.496 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water): time 0.03305/0.9697, allocations: 29.34 MB / 1.117 GB, free: 456 kB / 0.8731 GB Notification: Performance of NFInst.instExpressions: time 0.0133/0.9831, allocations: 6.885 MB / 1.123 GB, free: 11.56 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002391/0.9855, allocations: 50.53 kB / 1.123 GB, free: 11.54 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.002738/0.9882, allocations: 0.6939 MB / 1.124 GB, free: 11.2 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.005938/0.9943, allocations: 1.513 MB / 1.126 GB, free: 10.37 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.004571/0.9989, allocations: 1.158 MB / 1.127 GB, free: 9.793 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.005278/1.004, allocations: 2.474 MB / 1.129 GB, free: 8.695 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002166/1.006, allocations: 0.8009 MB / 1.13 GB, free: 8.355 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003039/1.009, allocations: 1.04 MB / 1.131 GB, free: 7.906 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002249/1.012, allocations: 0.8164 MB / 1.132 GB, free: 7.57 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 0.0004098/1.012, allocations: 66.66 kB / 1.132 GB, free: 7.57 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003139/1.015, allocations: 0.8162 MB / 1.133 GB, free: 7.258 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 0.000653/1.016, allocations: 279.5 kB / 1.133 GB, free: 7.113 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 0.001574/1.017, allocations: 0.5505 MB / 1.133 GB, free: 6.773 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.004805/1.022, allocations: 1.619 MB / 1.135 GB, free: 6.141 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 6.503e-06/1.022, allocations: 0 / 1.135 GB, free: 6.141 MB / 0.8887 GB Notification: Performance of FrontEnd: time 3.065e-06/1.022, allocations: 5.344 kB / 1.135 GB, free: 6.137 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 8.318e-05/1.022, allocations: 0 / 1.135 GB, free: 6.137 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: 176 * Number of variables: 176 Notification: Performance of Generate backend data structure: time 0.005096/1.028, allocations: 1.561 MB / 1.136 GB, free: 5.078 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 5.432e-05/1.028, allocations: 9.125 kB / 1.136 GB, free: 5.078 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003843/1.031, allocations: 0.5888 MB / 1.137 GB, free: 4.977 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002615/1.034, allocations: 0.8796 MB / 1.138 GB, free: 4.445 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.983e-05/1.034, allocations: 57.72 kB / 1.138 GB, free: 4.418 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002739/1.034, allocations: 73.69 kB / 1.138 GB, free: 4.395 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003145/1.038, allocations: 1.101 MB / 1.139 GB, free: 3.875 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.657e-05/1.038, allocations: 5.062 kB / 1.139 GB, free: 3.871 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001059/1.038, allocations: 29.22 kB / 1.139 GB, free: 3.852 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.565e-05/1.038, allocations: 18.16 kB / 1.139 GB, free: 3.852 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003413/1.041, allocations: 1.002 MB / 1.14 GB, free: 3.586 MB / 0.8887 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.008241/1.049, allocations: 4.944 MB / 1.145 GB, free: 15.72 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00329/1.053, allocations: 0.9035 MB / 1.146 GB, free: 15.47 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001543/1.054, allocations: 488 kB / 1.146 GB, free: 15.33 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001544/1.056, allocations: 1.585 MB / 1.148 GB, free: 13.53 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001849/1.058, allocations: 0.5791 MB / 1.148 GB, free: 13.34 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=61): time 4.318e-06/1.058, allocations: 1.062 kB / 1.148 GB, free: 13.34 MB / 0.9044 GB Notification: Performance of matching and sorting (n=61): time 0.005199/1.063, allocations: 1.477 MB / 1.15 GB, free: 12.92 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.211e-05/1.063, allocations: 58.09 kB / 1.15 GB, free: 12.86 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002453/1.066, allocations: 1.118 MB / 1.151 GB, free: 12.44 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 0.0001161/1.066, allocations: 43.67 kB / 1.151 GB, free: 12.4 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005742/1.066, allocations: 0.5506 MB / 1.152 GB, free: 11.95 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002478/1.067, allocations: 204.4 kB / 1.152 GB, free: 11.8 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003882/1.067, allocations: 168.4 kB / 1.152 GB, free: 11.72 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001502/1.067, allocations: 335.6 kB / 1.152 GB, free: 11.4 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0015/1.069, allocations: 449.9 kB / 1.153 GB, free: 11.29 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001773/1.07, allocations: 0.7157 MB / 1.153 GB, free: 10.85 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003138/1.074, allocations: 1.118 MB / 1.154 GB, free: 10.27 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.379e-05/1.074, allocations: 6.656 kB / 1.154 GB, free: 10.26 MB / 0.9044 GB Notification: Performance of matching and sorting (n=100) (initialization): time 0.004218/1.078, allocations: 1.272 MB / 1.156 GB, free: 9.84 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 2.794e-05/1.078, allocations: 8.031 kB / 1.156 GB, free: 9.84 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.977e-05/1.078, allocations: 10.08 kB / 1.156 GB, free: 9.84 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.103e-05/1.078, allocations: 12.03 kB / 1.156 GB, free: 9.84 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001234/1.079, allocations: 278 kB / 1.156 GB, free: 9.805 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.893e-05/1.079, allocations: 12.77 kB / 1.156 GB, free: 9.805 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001465/1.081, allocations: 181.9 kB / 1.156 GB, free: 9.738 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000155/1.081, allocations: 47.67 kB / 1.156 GB, free: 9.73 MB / 0.9044 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.0007608/1.082, allocations: 291.4 kB / 1.157 GB, free: 9.531 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004867/1.082, allocations: 123 kB / 1.157 GB, free: 9.465 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004211/1.086, allocations: 1.362 MB / 1.158 GB, free: 8.859 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.534e-05/1.086, allocations: 7.531 kB / 1.158 GB, free: 8.859 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.013e-05/1.086, allocations: 0 / 1.158 GB, free: 8.859 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.161e-05/1.086, allocations: 4.859 kB / 1.158 GB, free: 8.855 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005893/1.092, allocations: 2.371 MB / 1.16 GB, free: 7.332 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.127e-06/1.092, allocations: 2.281 kB / 1.16 GB, free: 7.332 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001012/1.093, allocations: 190.4 kB / 1.16 GB, free: 7.266 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.402e-05/1.093, allocations: 7.375 kB / 1.16 GB, free: 7.262 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.464e-05/1.093, allocations: 26.28 kB / 1.161 GB, free: 7.246 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.123e-05/1.093, allocations: 3.906 kB / 1.161 GB, free: 7.246 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.298e-06/1.093, allocations: 2.094 kB / 1.161 GB, free: 7.246 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005276/1.099, allocations: 1.976 MB / 1.162 GB, free: 6.156 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000674/1.099, allocations: 282.3 kB / 1.163 GB, free: 5.91 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003423/1.1, allocations: 18.36 kB / 1.163 GB, free: 5.898 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001119/1.101, allocations: 105.1 kB / 1.163 GB, free: 5.852 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001371/1.101, allocations: 46.81 kB / 1.163 GB, free: 5.828 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.95e-05/1.101, allocations: 41.56 kB / 1.163 GB, free: 5.809 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.00138/1.103, allocations: 0.7673 MB / 1.164 GB, free: 5.406 MB / 0.9044 GB Notification: Performance of sort global known variables: time 2.71e-07/1.103, allocations: 0 / 1.164 GB, free: 5.406 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.001657/1.104, allocations: 345 kB / 1.164 GB, free: 5.324 MB / 0.9044 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.001853/1.106, allocations: 0.6596 MB / 1.165 GB, free: 4.996 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.003511/1.11, allocations: 1.11 MB / 1.166 GB, free: 4.504 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 4.739e-06/1.11, allocations: 1.625 kB / 1.166 GB, free: 4.504 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.001685/1.111, allocations: 0.5746 MB / 1.166 GB, free: 4.238 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002318/1.114, allocations: 446.6 kB / 1.167 GB, free: 4 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005616/1.119, allocations: 2.345 MB / 1.169 GB, free: 2.625 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009612/1.12, allocations: 1.11 MB / 1.17 GB, free: 1.742 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 0.001156/1.121, allocations: 243.5 kB / 1.17 GB, free: 1.621 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004068/1.122, allocations: 107.7 kB / 1.17 GB, free: 1.59 MB / 0.9044 GB Notification: Performance of SimCode: time 6.52e-07/1.122, allocations: 4 kB / 1.17 GB, free: 1.586 MB / 0.9044 GB Notification: Performance of Templates: time 0.04246/1.164, allocations: 20.01 MB / 1.19 GB, free: 4.77 MB / 0.92 GB make -j1 -f Buildings_9_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water.makefile (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 & ./Buildings_9_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Interfaces_Examples_PrescribedOutlet_Water.csv","/var/lib/jenkins/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