Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.HeatPumps.Examples.ScrollWaterToWater_OneRoomRadiator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.HeatPumps.Examples.ScrollWaterToWater_OneRoomRadiator,fileNamePrefix="Buildings_9_Buildings_Fluid_HeatPumps_Examples_ScrollWaterToWater_OneRoomRadiator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatPumps.Examples.ScrollWaterToWater_OneRoomRadiator,fileNamePrefix="Buildings_9_Buildings_Fluid_HeatPumps_Examples_ScrollWaterToWater_OneRoomRadiator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.288/2.288, allocations: 387.1 MB / 399.7 MB, free: 9.504 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.001033/0.001033, allocations: 184.1 kB / 492.3 MB, free: 0.6133 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.427/1.427, allocations: 221.3 MB / 0.7871 GB, free: 12.9 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.0009218/0.000922, allocations: 95.88 kB / 0.9267 GB, free: 13.95 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.158e-05/3.167e-05, allocations: 4 kB / 1.073 GB, free: 180.3 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2458/0.2458, allocations: 142.3 MB / 1.212 GB, free: 38.42 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 6.099/6.345, allocations: 2.241 GB / 3.454 GB, free: 35.24 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002862/6.345, allocations: 95.33 kB / 3.454 GB, free: 35.2 MB / 1.151 GB Notification: Performance of FrontEnd - DAE generated: time 11.22/17.56, allocations: 2.352 GB / 5.806 GB, free: 132.3 MB / 1.229 GB Notification: Performance of FrontEnd: time 3.125e-06/17.56, allocations: 0 / 5.806 GB, free: 132.3 MB / 1.229 GB Notification: Performance of Transformations before backend: time 0.001836/17.56, allocations: 180.1 kB / 5.806 GB, free: 132.3 MB / 1.229 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1173 * Number of variables: 1173 Notification: Performance of Generate backend data structure: time 0.03183/17.59, allocations: 6.242 MB / 5.812 GB, free: 129.6 MB / 1.229 GB Notification: Performance of prepare preOptimizeDAE: time 8.474e-05/17.59, allocations: 9.781 kB / 5.812 GB, free: 129.6 MB / 1.229 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004965/17.6, allocations: 0.6081 MB / 5.813 GB, free: 129.6 MB / 1.229 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01886/17.62, allocations: 2.488 MB / 5.815 GB, free: 129.2 MB / 1.229 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03043/17.65, allocations: 7.849 MB / 5.823 GB, free: 128.2 MB / 1.229 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001073/17.65, allocations: 402.7 kB / 5.823 GB, free: 128.1 MB / 1.229 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003701/17.65, allocations: 480.4 kB / 5.824 GB, free: 128.1 MB / 1.229 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02432/17.68, allocations: 5.689 MB / 5.829 GB, free: 127.4 MB / 1.229 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004007/17.68, allocations: 17.03 kB / 5.829 GB, free: 127.4 MB / 1.229 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002468/17.68, allocations: 195.8 kB / 5.83 GB, free: 127.4 MB / 1.229 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003536/17.68, allocations: 190 kB / 5.83 GB, free: 127.4 MB / 1.229 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01615/17.7, allocations: 5.037 MB / 5.835 GB, free: 127.4 MB / 1.229 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.06362/17.76, allocations: 23.93 MB / 5.858 GB, free: 118.4 MB / 1.229 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00938/17.77, allocations: 4.202 MB / 5.862 GB, free: 117.8 MB / 1.229 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004137/17.78, allocations: 1.758 MB / 5.864 GB, free: 117.8 MB / 1.229 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 evalFunc (simulation): time 0.02915/17.8, allocations: 8.753 MB / 5.872 GB, free: 114.5 MB / 1.229 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005355/17.81, allocations: 2.121 MB / 5.874 GB, free: 114.4 MB / 1.229 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00474/17.81, allocations: 0.4965 MB / 5.875 GB, free: 114.2 MB / 1.229 GB Notification: Performance of pre-optimization done (n=322): time 2.671e-05/17.81, allocations: 0 / 5.875 GB, free: 114.2 MB / 1.229 GB Notification: Performance of matching and sorting (n=325): time 0.03458/17.85, allocations: 9.024 MB / 5.884 GB, free: 112.5 MB / 1.229 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001887/17.85, allocations: 376.4 kB / 5.884 GB, free: 112.1 MB / 1.229 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01539/17.86, allocations: 4.464 MB / 5.888 GB, free: 111.7 MB / 1.229 GB Notification: Performance of collectPreVariables (initialization): time 0.001719/17.87, allocations: 109.8 kB / 5.889 GB, free: 111.6 MB / 1.229 GB Notification: Performance of collectInitialEqns (initialization): time 0.005092/17.87, allocations: 2.769 MB / 5.891 GB, free: 110.8 MB / 1.229 GB Notification: Performance of collectInitialBindings (initialization): time 0.002523/17.87, allocations: 1.097 MB / 5.892 GB, free: 110.1 MB / 1.229 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001204/17.88, allocations: 77.09 kB / 5.892 GB, free: 110.1 MB / 1.229 GB Notification: Performance of setup shared object (initialization): time 0.0005239/17.88, allocations: 450.9 kB / 5.893 GB, free: 109.8 MB / 1.229 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004089/17.88, allocations: 1.517 MB / 5.894 GB, free: 109.8 MB / 1.229 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00509/17.89, allocations: 2.577 MB / 5.897 GB, free: 108.7 MB / 1.229 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004666/17.89, allocations: 1.864 MB / 5.899 GB, free: 108.6 MB / 1.229 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.473e-05/17.89, allocations: 7.938 kB / 5.899 GB, free: 108.6 MB / 1.229 GB Notification: Performance of matching and sorting (n=483) (initialization): time 0.01789/17.91, allocations: 5.217 MB / 5.904 GB, free: 108.1 MB / 1.229 GB Notification: Performance of prepare postOptimizeDAE: time 0.004027/17.91, allocations: 11.59 MB / 5.915 GB, free: 96.17 MB / 1.229 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001018/17.91, allocations: 23.73 kB / 5.915 GB, free: 96.17 MB / 1.229 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004723/17.92, allocations: 1.051 MB / 5.916 GB, free: 96.12 MB / 1.229 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005276/17.92, allocations: 0.9003 MB / 5.917 GB, free: 96.12 MB / 1.229 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007/17.93, allocations: 6.227 MB / 5.923 GB, free: 91.42 MB / 1.229 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00973/17.94, allocations: 0.5 MB / 5.924 GB, free: 91.38 MB / 1.229 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001821/17.94, allocations: 207.1 kB / 5.924 GB, free: 91.38 MB / 1.229 GB Notification: Performance of prepare postOptimizeDAE: time 2.407e-05/17.94, allocations: 3.906 kB / 5.924 GB, free: 91.38 MB / 1.229 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01705/17.96, allocations: 4.701 MB / 5.928 GB, free: 91.23 MB / 1.229 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00014/17.96, allocations: 26.88 kB / 5.928 GB, free: 91.23 MB / 1.229 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004527/17.96, allocations: 1.069 MB / 5.929 GB, free: 91.18 MB / 1.229 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005207/17.97, allocations: 0.8745 MB / 5.93 GB, free: 91.18 MB / 1.229 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007041/17.97, allocations: 6.222 MB / 5.936 GB, free: 86.48 MB / 1.229 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009109/17.98, allocations: 480.1 kB / 5.937 GB, free: 86.45 MB / 1.229 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001687/17.99, allocations: 197.8 kB / 5.937 GB, free: 86.45 MB / 1.229 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 108 * Number of states: 0 () * Number of discrete variables: 28 ($whenCondition1,$PRE.timTab.nextTimeEvent,$whenCondition3,$whenCondition2,timTab.nextTimeEvent,$PRE.timTab.nextTimeEventScaled,timTab.nextTimeEventScaled,$PRE.weaDat.conTimMin.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTim.tNext,$PRE.heaPum.com.isOn,heaPum.com.isOn,$PRE.heaPum.temPro.hysHig.y,heaPum.temPro.hysHig.y,$PRE.heaPum.temPro.hysLow.y,heaPum.temPro.hysLow.y,heaPum.temPro.on.y,$PRE.heaPum.temPro.hysdTConEva.y,heaPum.temPro.hysdTConEva.y,$PRE.hysteresis.y,hysteresis.y,and1.y,and2.y,$PRE.tesConHea.y,tesConHea.y,$PRE.tesEvaPum.y,tesEvaPum.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (436): * Single equations (assignments): 428 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 5} * Non-linear torn systems: 5 {2 19,1 4,1 4,4 7,1 2} Notification: Performance of prepare postOptimizeDAE: time 0.00319/17.99, allocations: 351.8 kB / 5.937 GB, free: 86.32 MB / 1.229 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003509/17.99, allocations: 0.5666 MB / 5.938 GB, free: 86.02 MB / 1.229 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02433/18.02, allocations: 5.585 MB / 5.943 GB, free: 85.67 MB / 1.229 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.96e-05/18.02, allocations: 38.45 kB / 5.943 GB, free: 85.67 MB / 1.229 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.319e-05/18.02, allocations: 3.031 kB / 5.943 GB, free: 85.67 MB / 1.229 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01818/18.04, allocations: 4.34 MB / 5.948 GB, free: 85.34 MB / 1.229 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 postOpt removeSimpleEquations (simulation): time 0.04104/18.08, allocations: 10.43 MB / 5.958 GB, free: 84.54 MB / 1.229 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.424e-05/18.08, allocations: 0 / 5.958 GB, free: 84.54 MB / 1.229 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004152/18.08, allocations: 0.653 MB / 5.958 GB, free: 84.54 MB / 1.229 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003614/18.08, allocations: 0.9352 MB / 5.959 GB, free: 84.45 MB / 1.229 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001133/18.09, allocations: 117.2 kB / 5.959 GB, free: 84.45 MB / 1.229 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01047/18.1, allocations: 12.56 MB / 5.972 GB, free: 73.98 MB / 1.229 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.67e-06/18.1, allocations: 3.953 kB / 5.972 GB, free: 73.98 MB / 1.229 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02082/18.12, allocations: 7.076 MB / 5.979 GB, free: 72.94 MB / 1.229 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006205/18.12, allocations: 1.204 MB / 5.98 GB, free: 72.54 MB / 1.229 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0034/18.13, allocations: 85.55 kB / 5.98 GB, free: 72.54 MB / 1.229 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007873/18.13, allocations: 439.6 kB / 5.98 GB, free: 72.49 MB / 1.229 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001302/18.14, allocations: 280.2 kB / 5.981 GB, free: 72.48 MB / 1.229 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001175/18.14, allocations: 172.3 kB / 5.981 GB, free: 72.48 MB / 1.229 GB Notification: Performance of sorting global known variables: time 0.01107/18.15, allocations: 3.418 MB / 5.984 GB, free: 72.24 MB / 1.229 GB Notification: Performance of sort global known variables: time 1.032e-06/18.15, allocations: 3.688 kB / 5.984 GB, free: 72.24 MB / 1.229 GB Notification: Performance of remove unused functions: time 0.02139/18.17, allocations: 3.159 MB / 5.987 GB, free: 72.06 MB / 1.229 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 12 (vol.hOut_internal,vol.dynBal.medium.Xi[1],vol.dynBal.m,rad.vol[1].dynBal.U,rad.vol[2].dynBal.U,rad.vol[3].dynBal.U,rad.vol[4].dynBal.U,rad.vol[5].dynBal.U,temSup.T,temRet.T,heaPum.con.vol.dynBal.U,heaPum.eva.vol.dynBal.U) * Number of discrete variables: 17 ($whenCondition3,$whenCondition2,$whenCondition1,timTab.nextTimeEvent,timTab.nextTimeEventScaled,weaDat.conTimMin.tNext,weaDat.conTim.tNext,heaPum.com.isOn,heaPum.temPro.hysHig.y,heaPum.temPro.hysLow.y,heaPum.temPro.on.y,heaPum.temPro.hysdTConEva.y,hysteresis.y,and1.y,and2.y,tesConHea.y,tesEvaPum.y) * Number of discrete states: 11 (timTab.nextTimeEvent,weaDat.conTim.tNext,weaDat.conTimMin.tNext,heaPum.temPro.hysLow.y,hysteresis.y,heaPum.temPro.hysdTConEva.y,heaPum.temPro.hysHig.y,tesConHea.y,tesEvaPum.y,heaPum.com.isOn,timTab.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (320): * Single equations (assignments): 295 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 11 * When equations: 4 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(1,100.0%) 4,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 4 {2 19,1 4,1 4,1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.03157/18.2, allocations: 11.82 MB / 5.999 GB, free: 68.88 MB / 1.229 GB Notification: Performance of simCode: created initialization part: time 0.01897/18.22, allocations: 7.168 MB / 6.006 GB, free: 68.26 MB / 1.229 GB Notification: Performance of simCode: created event and clocks part: time 1.519e-05/18.22, allocations: 3.719 kB / 6.006 GB, free: 68.26 MB / 1.229 GB Notification: Performance of simCode: created simulation system equations: time 0.00582/18.23, allocations: 2.858 MB / 6.009 GB, free: 67.46 MB / 1.229 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01648/18.24, allocations: 2.747 MB / 6.011 GB, free: 67.3 MB / 1.229 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04473/18.29, allocations: 11.21 MB / 6.022 GB, free: 64.44 MB / 1.229 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006285/18.29, allocations: 3.626 MB / 6.026 GB, free: 63.55 MB / 1.229 GB Notification: Performance of simCode: alias equations: time 0.01582/18.31, allocations: 2.856 MB / 6.028 GB, free: 63.2 MB / 1.229 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006451/18.32, allocations: 2.663 MB / 6.031 GB, free: 63.2 MB / 1.229 GB Notification: Performance of SimCode: time 1.513e-06/18.32, allocations: 0 / 6.031 GB, free: 63.2 MB / 1.229 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.478/19.79, allocations: 218 MB / 6.244 GB, free: 165.1 MB / 1.26 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002099/19.79, allocations: 242 kB / 6.244 GB, free: 164.8 MB / 1.26 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.33/31.12, allocations: 0 / 6.244 GB, free: 164.8 MB / 1.26 GB (rm -f Buildings_9_Buildings.Fluid.HeatPumps.Examples.ScrollWaterToWater_OneRoomRadiator.pipe ; mkfifo Buildings_9_Buildings.Fluid.HeatPumps.Examples.ScrollWaterToWater_OneRoomRadiator.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.HeatPumps.Examples.ScrollWaterToWater_OneRoomRadiator.pipe >> ../files/Buildings_9_Buildings.Fluid.HeatPumps.Examples.ScrollWaterToWater_OneRoomRadiator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.HeatPumps.Examples.ScrollWaterToWater_OneRoomRadiator_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_HeatPumps_Examples_ScrollWaterToWater_OneRoomRadiator_fmu --startTime=0 --stopTime=172800 --timeout=50 --tolerance=1e-08 Buildings_9_Buildings_Fluid_HeatPumps_Examples_ScrollWaterToWater_OneRoomRadiator.fmu > Buildings_9_Buildings.Fluid.HeatPumps.Examples.ScrollWaterToWater_OneRoomRadiator.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Fluid.HeatPumps.Examples.ScrollWaterToWater_OneRoomRadiator_res.mat does not exist to compare? outputFormat=mat