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/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/Buildings 10.0.0-master/package.mo): time 2.429/2.429, allocations: 390.5 MB / 398 MB, free: 10.9 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001165/0.001165, allocations: 172.8 kB / 491.2 MB, free: 1.562 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.879/1.879, allocations: 221.5 MB / 0.7868 GB, free: 13.28 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001016/0.001016, allocations: 105.4 kB / 0.9269 GB, free: 13.79 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 1.929e-05/1.932e-05, allocations: 4 kB / 1.073 GB, free: 182.1 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3067/0.3068, allocations: 143 MB / 1.212 GB, free: 39.55 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 6.189/6.496, allocations: 2.158 GB / 3.371 GB, free: 129.8 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002537/6.496, allocations: 84.27 kB / 3.371 GB, free: 129.8 MB / 1.151 GB Notification: Performance of FrontEnd - DAE generated: time 2.719/9.215, allocations: 0.5968 GB / 3.967 GB, free: 290.8 MB / 1.151 GB Notification: Performance of FrontEnd: time 1.743e-06/9.215, allocations: 0 / 3.967 GB, free: 290.8 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.00025/9.215, allocations: 40.5 kB / 3.968 GB, free: 290.8 MB / 1.151 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.004959/9.22, allocations: 1.34 MB / 3.969 GB, free: 290.3 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 5.803e-05/9.22, allocations: 8.25 kB / 3.969 GB, free: 290.3 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003688/9.224, allocations: 0.5736 MB / 3.969 GB, free: 290.3 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003507/9.227, allocations: 0.9243 MB / 3.97 GB, free: 290 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.061e-05/9.227, allocations: 21.88 kB / 3.97 GB, free: 290 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003191/9.228, allocations: 44.22 kB / 3.97 GB, free: 290 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001528/9.229, allocations: 0.5562 MB / 3.971 GB, free: 290 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001658/9.231, allocations: 0.8242 MB / 3.972 GB, free: 289.7 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.762e-05/9.231, allocations: 6.75 kB / 3.972 GB, free: 289.7 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.438e-05/9.231, allocations: 2.812 kB / 3.972 GB, free: 289.7 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.923e-05/9.231, allocations: 32.8 kB / 3.972 GB, free: 289.7 MB / 1.151 GB Warning: The model contains alias variables with conflicting start and/or 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.006943/9.238, allocations: 4.818 MB / 3.976 GB, free: 286.7 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001145/9.239, allocations: 0.5543 MB / 3.977 GB, free: 286.7 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004622/9.24, allocations: 285.9 kB / 3.977 GB, free: 286.7 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001151/9.241, allocations: 1.593 MB / 3.979 GB, free: 284.9 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006489/9.241, allocations: 389 kB / 3.979 GB, free: 284.9 MB / 1.151 GB Notification: Performance of pre-optimization done (n=61): time 3.106e-06/9.242, allocations: 3.5 kB / 3.979 GB, free: 284.9 MB / 1.151 GB Notification: Performance of matching and sorting (n=61): time 0.002134/9.244, allocations: 0.7263 MB / 3.98 GB, free: 284.7 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.902e-05/9.244, allocations: 62.27 kB / 3.98 GB, free: 284.7 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001657/9.245, allocations: 0.834 MB / 3.981 GB, free: 284.5 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 0.0001042/9.245, allocations: 27.73 kB / 3.981 GB, free: 284.5 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.000455/9.246, allocations: 0.5567 MB / 3.981 GB, free: 284.3 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.00021/9.246, allocations: 196.1 kB / 3.982 GB, free: 284.2 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.962e-05/9.246, allocations: 1.594 kB / 3.982 GB, free: 284.2 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 8.239e-05/9.246, allocations: 339 kB / 3.982 GB, free: 283.9 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004232/9.247, allocations: 251.9 kB / 3.982 GB, free: 283.9 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006223/9.247, allocations: 0.5359 MB / 3.983 GB, free: 283.6 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001012/9.248, allocations: 349 kB / 3.983 GB, free: 283.6 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.468e-06/9.248, allocations: 1.5 kB / 3.983 GB, free: 283.6 MB / 1.151 GB Notification: Performance of matching and sorting (n=100) (initialization): time 0.002369/9.251, allocations: 0.8748 MB / 3.984 GB, free: 283.5 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 3.293e-05/9.251, allocations: 10.06 kB / 3.984 GB, free: 283.5 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.018e-05/9.251, allocations: 7.344 kB / 3.984 GB, free: 283.5 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.101e-05/9.251, allocations: 12.78 kB / 3.984 GB, free: 283.5 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001288/9.252, allocations: 277.5 kB / 3.984 GB, free: 283.5 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.658e-05/9.252, allocations: 15.84 kB / 3.984 GB, free: 283.5 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001519/9.254, allocations: 181.2 kB / 3.984 GB, free: 283.4 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001432/9.254, allocations: 50.97 kB / 3.984 GB, free: 283.4 MB / 1.151 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 ($whenCondition3,$PRE.setHeaHigPow.nextTimeEvent,$whenCondition2,$PRE.setCooLimPow.nextTimeEvent,$whenCondition1,$PRE.setHeaCooUnl.nextTimeEvent,setHeaHigPow.nextTimeEvent,$PRE.setHeaHigPow.nextTimeEventScaled,setHeaHigPow.nextTimeEventScaled,setCooLimPow.nextTimeEvent,$PRE.setCooLimPow.nextTimeEventScaled,setCooLimPow.nextTimeEventScaled,setHeaCooUnl.nextTimeEvent,$PRE.setHeaCooUnl.nextTimeEventScaled,setHeaCooUnl.nextTimeEventScaled) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002412/9.254, allocations: 139 kB / 3.984 GB, free: 283.3 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003459/9.255, allocations: 106.9 kB / 3.985 GB, free: 283.3 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002535/9.257, allocations: 1.017 MB / 3.986 GB, free: 283.2 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.979e-05/9.257, allocations: 10.91 kB / 3.986 GB, free: 283.2 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.933e-06/9.257, allocations: 4.375 kB / 3.986 GB, free: 283.2 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.738e-06/9.257, allocations: 3.938 kB / 3.986 GB, free: 283.2 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004266/9.261, allocations: 2.004 MB / 3.988 GB, free: 282.8 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.987e-06/9.261, allocations: 0.9688 kB / 3.988 GB, free: 282.8 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001119/9.263, allocations: 201.9 kB / 3.988 GB, free: 282.8 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.189e-05/9.263, allocations: 8.312 kB / 3.988 GB, free: 282.8 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.929e-05/9.263, allocations: 20.69 kB / 3.988 GB, free: 282.8 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.058e-05/9.263, allocations: 6.125 kB / 3.988 GB, free: 282.8 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.001e-06/9.263, allocations: 1.969 kB / 3.988 GB, free: 282.8 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002942/9.266, allocations: 1.52 MB / 3.989 GB, free: 282.5 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006812/9.266, allocations: 299.6 kB / 3.99 GB, free: 282.3 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002957/9.267, allocations: 9.25 kB / 3.99 GB, free: 282.3 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001196/9.268, allocations: 124.2 kB / 3.99 GB, free: 282.3 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001574/9.268, allocations: 54.8 kB / 3.99 GB, free: 282.3 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.518e-05/9.268, allocations: 31.38 kB / 3.99 GB, free: 282.3 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.00123/9.269, allocations: 0.6296 MB / 3.99 GB, free: 282.2 MB / 1.151 GB Notification: Performance of sort global known variables: time 3.5e-07/9.269, allocations: 0 / 3.99 GB, free: 282.2 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.002175/9.272, allocations: 378.1 kB / 3.991 GB, free: 282.2 MB / 1.151 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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (76): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 9 * When equations: 6 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002061/9.274, allocations: 0.7603 MB / 3.991 GB, free: 282 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.001566/9.275, allocations: 0.7227 MB / 3.992 GB, free: 282 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 4.438e-06/9.275, allocations: 3.188 kB / 3.992 GB, free: 282 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0007125/9.276, allocations: 403.8 kB / 3.993 GB, free: 282 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002107/9.278, allocations: 318.3 kB / 3.993 GB, free: 282 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005071/9.283, allocations: 1.762 MB / 3.995 GB, free: 281.6 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000938/9.284, allocations: 1.136 MB / 3.996 GB, free: 280.9 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.00152/9.286, allocations: 236.3 kB / 3.996 GB, free: 280.8 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004642/9.286, allocations: 111.4 kB / 3.996 GB, free: 280.8 MB / 1.151 GB Notification: Performance of SimCode: time 1.002e-06/9.286, allocations: 0 / 3.996 GB, free: 280.8 MB / 1.151 GB Notification: Performance of Templates: time 0.03067/9.317, allocations: 17.11 MB / 4.013 GB, free: 280.5 MB / 1.151 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","../files/Buildings_latest_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches