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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.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_latest_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_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.006117/0.006117, allocations: 101.3 kB / 15.88 MB, free: 5.867 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.001396/0.001396, allocations: 191.8 kB / 16.79 MB, free: 5.809 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.413/1.413, allocations: 222.9 MB / 240.5 MB, free: 4.445 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.701/2.701, allocations: 461.8 MB / 0.7348 GB, free: 14.19 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001303/0.001303, allocations: 66.27 kB / 0.899 GB, free: 37 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3605/0.3619, allocations: 157.4 MB / 1.053 GB, free: 8.344 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water): time 0.02871/0.3906, allocations: 29.19 MB / 1.081 GB, free: 11.05 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.01101/0.4017, allocations: 6.902 MB / 1.088 GB, free: 4.133 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001734/0.4035, allocations: 47.56 kB / 1.088 GB, free: 4.086 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.001693/0.4052, allocations: 0.5988 MB / 1.089 GB, free: 3.484 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.004067/0.4093, allocations: 1.347 MB / 1.09 GB, free: 2.133 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.003022/0.4124, allocations: 1.045 MB / 1.091 GB, free: 1.094 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.003793/0.4162, allocations: 3.214 MB / 1.094 GB, free: 13.87 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00108/0.4173, allocations: 0.7272 MB / 1.095 GB, free: 13.12 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001775/0.419, allocations: 0.9334 MB / 1.096 GB, free: 12.19 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0009494/0.42, allocations: 0.8324 MB / 1.097 GB, free: 11.35 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.0001042/0.4201, allocations: 44 kB / 1.097 GB, free: 11.31 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00185/0.422, allocations: 0.7716 MB / 1.097 GB, free: 10.54 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0002709/0.4223, allocations: 254.9 kB / 1.098 GB, free: 10.29 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0005322/0.4228, allocations: 0.5242 MB / 1.098 GB, free: 9.758 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.001468/0.4243, allocations: 1.134 MB / 1.099 GB, free: 8.621 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.4243, allocations: 0 / 1.099 GB, free: 8.621 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.092e-06/0.4243, allocations: 0 / 1.099 GB, free: 8.621 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.091e-05/0.4243, allocations: 4 kB / 1.099 GB, free: 8.617 MB / 0.8575 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.002627/0.4269, allocations: 1.559 MB / 1.101 GB, free: 7.004 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.142e-05/0.427, allocations: 8.031 kB / 1.101 GB, free: 6.996 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003613/0.4306, allocations: 0.5962 MB / 1.101 GB, free: 6.398 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001403/0.432, allocations: 0.8017 MB / 1.102 GB, free: 5.543 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.674e-05/0.4321, allocations: 54.38 kB / 1.102 GB, free: 5.488 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001384/0.4323, allocations: 83.88 kB / 1.102 GB, free: 5.406 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002527/0.4348, allocations: 1.099 MB / 1.103 GB, free: 4.23 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.668e-05/0.4348, allocations: 3.938 kB / 1.103 GB, free: 4.227 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.257e-05/0.4349, allocations: 32 kB / 1.103 GB, free: 4.195 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.657e-05/0.435, allocations: 20 kB / 1.103 GB, free: 4.176 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002974/0.438, allocations: 1 MB / 1.104 GB, free: 3.176 MB / 0.8575 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.005502/0.4435, allocations: 4.935 MB / 1.109 GB, free: 13.95 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002798/0.4463, allocations: 0.9023 MB / 1.11 GB, free: 13.05 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001412/0.4477, allocations: 494.1 kB / 1.11 GB, free: 12.56 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001461/0.4492, allocations: 1.588 MB / 1.112 GB, free: 10.62 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001626/0.4508, allocations: 0.5768 MB / 1.113 GB, free: 10.04 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=61): time 3.687e-06/0.4508, allocations: 0 / 1.113 GB, free: 10.04 MB / 0.8731 GB Notification: Performance of matching and sorting (n=61): time 0.004812/0.4557, allocations: 1.481 MB / 1.114 GB, free: 8.547 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.093e-05/0.4557, allocations: 63.91 kB / 1.114 GB, free: 8.473 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0014/0.4571, allocations: 1.116 MB / 1.115 GB, free: 7.344 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 8.684e-05/0.4572, allocations: 41.69 kB / 1.115 GB, free: 7.297 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004556/0.4577, allocations: 0.5434 MB / 1.116 GB, free: 6.746 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002276/0.4579, allocations: 205.1 kB / 1.116 GB, free: 6.543 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002705/0.4582, allocations: 174.4 kB / 1.116 GB, free: 6.367 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001391/0.4584, allocations: 333.9 kB / 1.116 GB, free: 6.035 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001404/0.4598, allocations: 453.6 kB / 1.117 GB, free: 5.59 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001639/0.4614, allocations: 0.7125 MB / 1.118 GB, free: 4.758 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002914/0.4643, allocations: 1.12 MB / 1.119 GB, free: 3.531 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.232e-06/0.4644, allocations: 4 kB / 1.119 GB, free: 3.527 MB / 0.8731 GB Notification: Performance of matching and sorting (n=100) (initialization): time 0.00361/0.468, allocations: 1.274 MB / 1.12 GB, free: 2.246 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 2.899e-05/0.468, allocations: 8 kB / 1.12 GB, free: 2.238 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.635e-05/0.4681, allocations: 8 kB / 1.12 GB, free: 2.23 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.036e-05/0.4681, allocations: 12 kB / 1.12 GB, free: 2.219 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001217/0.4693, allocations: 275.9 kB / 1.12 GB, free: 1.949 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.499e-05/0.4693, allocations: 19.92 kB / 1.12 GB, free: 1.93 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001463/0.4708, allocations: 191 kB / 1.12 GB, free: 1.742 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001031/0.4709, allocations: 47.97 kB / 1.12 GB, free: 1.695 MB / 0.8731 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.0005733/0.4715, allocations: 291.7 kB / 1.121 GB, free: 1.398 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002162/0.4717, allocations: 122.4 kB / 1.121 GB, free: 1.277 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003724/0.4755, allocations: 1.367 MB / 1.122 GB, free: 15.9 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.404e-05/0.4755, allocations: 8 kB / 1.122 GB, free: 15.89 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.264e-06/0.4755, allocations: 0 / 1.122 GB, free: 15.89 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.657e-06/0.4755, allocations: 3.984 kB / 1.122 GB, free: 15.89 MB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005003/0.4805, allocations: 2.37 MB / 1.125 GB, free: 13.45 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.223e-05/0.4806, allocations: 4.188 kB / 1.125 GB, free: 13.44 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00103/0.4816, allocations: 191.7 kB / 1.125 GB, free: 13.25 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.106e-05/0.4816, allocations: 8.094 kB / 1.125 GB, free: 13.25 MB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.677e-05/0.4817, allocations: 23.92 kB / 1.125 GB, free: 13.22 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.819e-06/0.4817, allocations: 7.984 kB / 1.125 GB, free: 13.21 MB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.996e-06/0.4817, allocations: 0 / 1.125 GB, free: 13.21 MB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004999/0.4867, allocations: 1.977 MB / 1.127 GB, free: 11.2 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006058/0.4874, allocations: 283.3 kB / 1.127 GB, free: 10.91 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001575/0.4875, allocations: 12 kB / 1.127 GB, free: 10.89 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009913/0.4885, allocations: 127.9 kB / 1.127 GB, free: 10.77 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001262/0.4887, allocations: 56.36 kB / 1.127 GB, free: 10.71 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.334e-05/0.4888, allocations: 39.97 kB / 1.127 GB, free: 10.68 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 0.0009847/0.4898, allocations: 0.7677 MB / 1.128 GB, free: 9.902 MB / 0.8887 GB Notification: Performance of sort global known variables: time 1.51e-07/0.4898, allocations: 0 / 1.128 GB, free: 9.902 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.001216/0.491, allocations: 335.6 kB / 1.128 GB, free: 9.574 MB / 0.8887 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.001671/0.4927, allocations: 0.6619 MB / 1.129 GB, free: 9.074 MB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 0.003343/0.496, allocations: 1.103 MB / 1.13 GB, free: 7.969 MB / 0.8887 GB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.496, allocations: 0 / 1.13 GB, free: 7.969 MB / 0.8887 GB Notification: Performance of simCode: created simulation system equations: time 0.001558/0.4976, allocations: 0.5736 MB / 1.131 GB, free: 7.395 MB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002197/0.4998, allocations: 427.2 kB / 1.131 GB, free: 6.977 MB / 0.8887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005073/0.5049, allocations: 2.771 MB / 1.134 GB, free: 4.152 MB / 0.8887 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006524/0.5056, allocations: 1.1 MB / 1.135 GB, free: 3.023 MB / 0.8887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004545/0.506, allocations: 119.4 kB / 1.135 GB, free: 2.906 MB / 0.8887 GB Notification: Performance of SimCode: time 1.172e-06/0.5061, allocations: 0 / 1.135 GB, free: 2.906 MB / 0.8887 GB Notification: Performance of Templates: time 0.02917/0.5352, allocations: 19.01 MB / 1.153 GB, free: 76 kB / 0.9044 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=480 -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