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.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.001268/0.001268, allocations: 110.1 kB / 16.41 MB, free: 6.449 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.001185/0.001185, allocations: 189.2 kB / 17.34 MB, free: 5.738 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.41/1.41, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.735/2.735, allocations: 474.5 MB / 0.7477 GB, free: 14.02 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.002008/0.002008, allocations: 63.91 kB / 1.073 GB, free: 7.086 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7655/0.7676, allocations: 160.3 MB / 1.229 GB, free: 10.93 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water): time 0.04751/0.8151, allocations: 29.34 MB / 1.258 GB, free: 13.48 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.01158/0.8267, allocations: 6.878 MB / 1.265 GB, free: 6.586 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001378/0.8281, allocations: 47.69 kB / 1.265 GB, free: 6.539 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.001988/0.8302, allocations: 0.7108 MB / 1.265 GB, free: 5.824 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.003994/0.8342, allocations: 1.512 MB / 1.267 GB, free: 4.305 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.003051/0.8373, allocations: 1.155 MB / 1.268 GB, free: 3.156 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.003761/0.8411, allocations: 2.489 MB / 1.27 GB, free: 0.6641 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001507/0.8426, allocations: 0.7904 MB / 1.271 GB, free: 15.86 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002163/0.8448, allocations: 1.047 MB / 1.272 GB, free: 14.8 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001564/0.8463, allocations: 0.8091 MB / 1.273 GB, free: 13.99 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.0002529/0.8466, allocations: 68 kB / 1.273 GB, free: 13.93 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002201/0.8488, allocations: 0.8226 MB / 1.274 GB, free: 13.1 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.000379/0.8492, allocations: 278.9 kB / 1.274 GB, free: 12.83 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.0007347/0.8499, allocations: 0.5553 MB / 1.275 GB, free: 12.27 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.002458/0.8524, allocations: 1.623 MB / 1.276 GB, free: 10.64 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 6.061e-06/0.8524, allocations: 0 / 1.276 GB, free: 10.64 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.693e-06/0.8524, allocations: 0 / 1.276 GB, free: 10.64 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 1.491e-05/0.8525, allocations: 0 / 1.276 GB, free: 10.64 MB / 0.9981 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.002827/0.8553, allocations: 1.619 MB / 1.278 GB, free: 8.969 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.761e-05/0.8553, allocations: 11.97 kB / 1.278 GB, free: 8.957 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003444/0.8588, allocations: 0.5892 MB / 1.278 GB, free: 8.367 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001578/0.8604, allocations: 0.8808 MB / 1.279 GB, free: 7.43 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.693e-05/0.8604, allocations: 54.38 kB / 1.279 GB, free: 7.379 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001365/0.8606, allocations: 75.94 kB / 1.279 GB, free: 7.305 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00255/0.8632, allocations: 1.099 MB / 1.28 GB, free: 6.121 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.674e-05/0.8632, allocations: 7.984 kB / 1.28 GB, free: 6.113 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.343e-05/0.8633, allocations: 31.94 kB / 1.28 GB, free: 6.082 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.915e-05/0.8633, allocations: 16 kB / 1.28 GB, free: 6.066 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003282/0.8666, allocations: 1.004 MB / 1.281 GB, free: 5.062 MB / 0.9981 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.006295/0.8729, allocations: 4.948 MB / 1.286 GB, free: 15.83 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00321/0.8761, allocations: 0.9067 MB / 1.287 GB, free: 14.91 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0016/0.8777, allocations: 490.1 kB / 1.288 GB, free: 14.43 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001683/0.8794, allocations: 1.592 MB / 1.289 GB, free: 12.49 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001738/0.8812, allocations: 0.5729 MB / 1.29 GB, free: 11.9 MB / 1.014 GB Notification: Performance of pre-optimization done (n=61): time 3.326e-06/0.8812, allocations: 0 / 1.29 GB, free: 11.9 MB / 1.014 GB Notification: Performance of matching and sorting (n=61): time 0.005114/0.8863, allocations: 1.489 MB / 1.291 GB, free: 10.41 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.834e-05/0.8864, allocations: 63.97 kB / 1.291 GB, free: 10.33 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001437/0.8878, allocations: 1.112 MB / 1.292 GB, free: 9.207 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 7.905e-05/0.8879, allocations: 45.69 kB / 1.292 GB, free: 9.156 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005085/0.8884, allocations: 0.5481 MB / 1.293 GB, free: 8.605 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 0.000215/0.8887, allocations: 218.2 kB / 1.293 GB, free: 8.391 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003575/0.889, allocations: 166.5 kB / 1.293 GB, free: 8.223 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0002379/0.8893, allocations: 341.9 kB / 1.294 GB, free: 7.883 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001567/0.8908, allocations: 441.6 kB / 1.294 GB, free: 7.449 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00187/0.8927, allocations: 0.7257 MB / 1.295 GB, free: 6.613 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003275/0.896, allocations: 1.117 MB / 1.296 GB, free: 5.391 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.751e-06/0.896, allocations: 0 / 1.296 GB, free: 5.391 MB / 1.014 GB Notification: Performance of matching and sorting (n=100) (initialization): time 0.003776/0.8998, allocations: 1.279 MB / 1.297 GB, free: 4.102 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 2.166e-05/0.8998, allocations: 8 kB / 1.297 GB, free: 4.094 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.388e-05/0.8999, allocations: 12.06 kB / 1.297 GB, free: 4.082 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.565e-05/0.8999, allocations: 12 kB / 1.297 GB, free: 4.07 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001258/0.9012, allocations: 271.6 kB / 1.297 GB, free: 3.805 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.168e-05/0.9012, allocations: 15.92 kB / 1.297 GB, free: 3.789 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001145/0.9023, allocations: 183.2 kB / 1.298 GB, free: 3.609 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001008/0.9024, allocations: 47.97 kB / 1.298 GB, free: 3.562 MB / 1.014 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.000451/0.9029, allocations: 287.8 kB / 1.298 GB, free: 3.273 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002017/0.9031, allocations: 131.1 kB / 1.298 GB, free: 3.145 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004082/0.9072, allocations: 1.363 MB / 1.299 GB, free: 1.77 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.862e-05/0.9072, allocations: 8 kB / 1.299 GB, free: 1.762 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.531e-06/0.9073, allocations: 4 kB / 1.299 GB, free: 1.758 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.065e-05/0.9073, allocations: 4.078 kB / 1.299 GB, free: 1.754 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005349/0.9126, allocations: 2.37 MB / 1.302 GB, free: 15.31 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.746e-06/0.9126, allocations: 4 kB / 1.302 GB, free: 15.31 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001051/0.9137, allocations: 187.9 kB / 1.302 GB, free: 15.12 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.816e-06/0.9137, allocations: 4 kB / 1.302 GB, free: 15.12 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.168e-05/0.9138, allocations: 31.97 kB / 1.302 GB, free: 15.09 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.316e-06/0.9138, allocations: 7.938 kB / 1.302 GB, free: 15.08 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.857e-06/0.9138, allocations: 3.984 kB / 1.302 GB, free: 15.08 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005512/0.9194, allocations: 1.978 MB / 1.304 GB, free: 13.07 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004272/0.9198, allocations: 284 kB / 1.304 GB, free: 12.77 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001537/0.92, allocations: 15.98 kB / 1.304 GB, free: 12.76 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009301/0.9209, allocations: 107.8 kB / 1.304 GB, free: 12.65 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001146/0.921, allocations: 52.44 kB / 1.304 GB, free: 12.6 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.377e-05/0.9211, allocations: 35.97 kB / 1.304 GB, free: 12.57 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.001039/0.9221, allocations: 0.7677 MB / 1.305 GB, free: 11.79 MB / 1.029 GB Notification: Performance of sort global known variables: time 2.71e-07/0.9222, allocations: 0 / 1.305 GB, free: 11.79 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.001047/0.9232, allocations: 347.3 kB / 1.305 GB, free: 11.45 MB / 1.029 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.002113/0.9253, allocations: 0.6692 MB / 1.306 GB, free: 10.94 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.00353/0.9289, allocations: 1.11 MB / 1.307 GB, free: 9.824 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.9289, allocations: 0 / 1.307 GB, free: 9.824 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.001754/0.9306, allocations: 0.5775 MB / 1.308 GB, free: 9.25 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001965/0.9326, allocations: 458 kB / 1.308 GB, free: 8.816 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004993/0.9376, allocations: 2.374 MB / 1.31 GB, free: 6.395 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007694/0.9384, allocations: 1.108 MB / 1.312 GB, free: 5.258 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 0.0007959/0.9392, allocations: 240.7 kB / 1.312 GB, free: 5.02 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003025/0.9395, allocations: 115.4 kB / 1.312 GB, free: 4.906 MB / 1.029 GB Notification: Performance of SimCode: time 6.11e-07/0.9395, allocations: 0 / 1.312 GB, free: 4.906 MB / 1.029 GB Notification: Performance of Templates: time 0.03736/0.9769, allocations: 20.08 MB / 1.332 GB, free: 1.094 MB / 1.045 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 -s gbode -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