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: translateModel(Buildings.Fluid.HeatPumps.Examples.ScrollWaterToWater_OneRoomRadiator,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|vol.T_start|vol.T|temSup.T|temRet.T",fileNamePrefix="Buildings_9_Buildings.Fluid.HeatPumps.Examples.ScrollWaterToWater_OneRoomRadiator") translateModel(Buildings.Fluid.HeatPumps.Examples.ScrollWaterToWater_OneRoomRadiator,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|vol.T_start|vol.T|temSup.T|temRet.T",fileNamePrefix="Buildings_9_Buildings.Fluid.HeatPumps.Examples.ScrollWaterToWater_OneRoomRadiator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.244/2.244, allocations: 387.1 MB / 399.7 MB, free: 9.492 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.001117/0.001117, allocations: 176.9 kB / 492.3 MB, free: 0.6016 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.51/1.51, allocations: 221.3 MB / 0.7871 GB, free: 12.88 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.001063/0.001064, allocations: 101.1 kB / 0.9267 GB, free: 13.95 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.988e-05/4.01e-05, allocations: 4 kB / 1.073 GB, free: 180.4 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2602/0.2603, allocations: 142.3 MB / 1.212 GB, free: 38.51 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 5.99/6.251, allocations: 2.241 GB / 3.454 GB, free: 57.61 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003083/6.251, allocations: 103.7 kB / 3.454 GB, free: 57.52 MB / 1.151 GB Notification: Performance of FrontEnd - DAE generated: time 10.91/17.16, allocations: 2.352 GB / 5.806 GB, free: 125.4 MB / 1.229 GB Notification: Performance of FrontEnd: time 5.48e-06/17.16, allocations: 1.594 kB / 5.806 GB, free: 125.4 MB / 1.229 GB Notification: Performance of Transformations before backend: time 0.002012/17.16, allocations: 173.5 kB / 5.806 GB, free: 125.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.03593/17.2, allocations: 6.241 MB / 5.812 GB, free: 122.9 MB / 1.229 GB Notification: Performance of prepare preOptimizeDAE: time 7.066e-05/17.2, allocations: 12.88 kB / 5.812 GB, free: 122.9 MB / 1.229 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02105/17.22, allocations: 2.487 MB / 5.815 GB, free: 122.5 MB / 1.229 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03564/17.26, allocations: 7.855 MB / 5.822 GB, free: 121.5 MB / 1.229 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001037/17.26, allocations: 406.1 kB / 5.823 GB, free: 121.4 MB / 1.229 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00357/17.26, allocations: 483 kB / 5.823 GB, free: 121.4 MB / 1.229 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02678/17.29, allocations: 5.69 MB / 5.829 GB, free: 120.7 MB / 1.229 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006555/17.29, allocations: 11 kB / 5.829 GB, free: 120.7 MB / 1.229 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003883/17.29, allocations: 199 kB / 5.829 GB, free: 120.7 MB / 1.229 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004472/17.29, allocations: 187.4 kB / 5.829 GB, free: 120.7 MB / 1.229 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02/17.31, allocations: 5.034 MB / 5.834 GB, free: 120.7 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.0667/17.38, allocations: 23.93 MB / 5.857 GB, free: 111.7 MB / 1.229 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009794/17.39, allocations: 4.204 MB / 5.861 GB, free: 111.1 MB / 1.229 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004314/17.39, allocations: 1.757 MB / 5.863 GB, free: 111.1 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.03011/17.42, allocations: 8.752 MB / 5.872 GB, free: 107.8 MB / 1.229 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.007018/17.43, allocations: 2.119 MB / 5.874 GB, free: 107.7 MB / 1.229 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.006681/17.44, allocations: 0.497 MB / 5.874 GB, free: 107.5 MB / 1.229 GB Notification: Performance of pre-optimization done (n=322): time 4.333e-05/17.44, allocations: 0 / 5.874 GB, free: 107.5 MB / 1.229 GB Notification: Performance of matching and sorting (n=325): time 0.03885/17.48, allocations: 9.01 MB / 5.883 GB, free: 105.8 MB / 1.229 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000189/17.48, allocations: 380.1 kB / 5.883 GB, free: 105.4 MB / 1.229 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01432/17.49, allocations: 4.465 MB / 5.888 GB, free: 105 MB / 1.229 GB Notification: Performance of collectPreVariables (initialization): time 0.001656/17.49, allocations: 108.4 kB / 5.888 GB, free: 105 MB / 1.229 GB Notification: Performance of collectInitialEqns (initialization): time 0.00501/17.5, allocations: 2.778 MB / 5.891 GB, free: 104.1 MB / 1.229 GB Notification: Performance of collectInitialBindings (initialization): time 0.002677/17.5, allocations: 1.09 MB / 5.892 GB, free: 103.4 MB / 1.229 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001273/17.5, allocations: 72.81 kB / 5.892 GB, free: 103.4 MB / 1.229 GB Notification: Performance of setup shared object (initialization): time 0.0005594/17.5, allocations: 455.3 kB / 5.892 GB, free: 103.1 MB / 1.229 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004186/17.51, allocations: 1.517 MB / 5.894 GB, free: 103.1 MB / 1.229 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00492/17.51, allocations: 2.58 MB / 5.896 GB, free: 102 MB / 1.229 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004355/17.52, allocations: 1.868 MB / 5.898 GB, free: 101.9 MB / 1.229 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.405e-05/17.52, allocations: 6.625 kB / 5.898 GB, free: 101.9 MB / 1.229 GB Notification: Performance of matching and sorting (n=483) (initialization): time 0.01499/17.53, allocations: 5.214 MB / 5.903 GB, free: 101.4 MB / 1.229 GB Notification: Performance of prepare postOptimizeDAE: time 0.003087/17.53, allocations: 11.58 MB / 5.914 GB, free: 89.47 MB / 1.229 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.529e-05/17.53, allocations: 28.81 kB / 5.914 GB, free: 89.47 MB / 1.229 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004483/17.54, allocations: 1.056 MB / 5.915 GB, free: 89.43 MB / 1.229 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005104/17.54, allocations: 0.8982 MB / 5.916 GB, free: 89.43 MB / 1.229 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006133/17.55, allocations: 6.223 MB / 5.922 GB, free: 84.72 MB / 1.229 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009141/17.56, allocations: 0.4941 MB / 5.923 GB, free: 84.69 MB / 1.229 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001668/17.56, allocations: 203.2 kB / 5.923 GB, free: 84.69 MB / 1.229 GB Notification: Performance of prepare postOptimizeDAE: time 1.958e-05/17.56, allocations: 5.688 kB / 5.923 GB, free: 84.69 MB / 1.229 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0167/17.58, allocations: 4.705 MB / 5.928 GB, free: 84.54 MB / 1.229 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001357/17.58, allocations: 31.53 kB / 5.928 GB, free: 84.54 MB / 1.229 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004517/17.58, allocations: 1.07 MB / 5.929 GB, free: 84.49 MB / 1.229 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004977/17.59, allocations: 0.8742 MB / 5.93 GB, free: 84.49 MB / 1.229 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006751/17.59, allocations: 6.228 MB / 5.936 GB, free: 79.78 MB / 1.229 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009099/17.6, allocations: 484 kB / 5.936 GB, free: 79.75 MB / 1.229 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001787/17.61, allocations: 201.6 kB / 5.936 GB, free: 79.75 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.003361/17.61, allocations: 353.1 kB / 5.937 GB, free: 79.62 MB / 1.229 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003666/17.61, allocations: 0.5579 MB / 5.937 GB, free: 79.33 MB / 1.229 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02557/17.64, allocations: 5.586 MB / 5.943 GB, free: 78.99 MB / 1.229 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001342/17.64, allocations: 43.34 kB / 5.943 GB, free: 78.99 MB / 1.229 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.264e-05/17.64, allocations: 6.922 kB / 5.943 GB, free: 78.98 MB / 1.229 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.02381/17.66, allocations: 4.336 MB / 5.947 GB, free: 78.65 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.04792/17.71, allocations: 10.43 MB / 5.957 GB, free: 77.85 MB / 1.229 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.317e-05/17.71, allocations: 3.875 kB / 5.957 GB, free: 77.85 MB / 1.229 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004564/17.71, allocations: 0.6496 MB / 5.958 GB, free: 77.85 MB / 1.229 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004009/17.72, allocations: 0.9285 MB / 5.959 GB, free: 77.77 MB / 1.229 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00144/17.72, allocations: 116.1 kB / 5.959 GB, free: 77.77 MB / 1.229 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01272/17.73, allocations: 12.57 MB / 5.971 GB, free: 67.32 MB / 1.229 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.382e-06/17.73, allocations: 0 / 5.971 GB, free: 67.32 MB / 1.229 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02513/17.76, allocations: 7.072 MB / 5.978 GB, free: 66.3 MB / 1.229 GB Notification: Performance of postOpt removeConstants (simulation): time 0.007749/17.77, allocations: 1.211 MB / 5.979 GB, free: 65.9 MB / 1.229 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004484/17.77, allocations: 78.83 kB / 5.979 GB, free: 65.9 MB / 1.229 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009274/17.78, allocations: 440.5 kB / 5.98 GB, free: 65.88 MB / 1.229 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00155/17.78, allocations: 291.9 kB / 5.98 GB, free: 65.87 MB / 1.229 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001397/17.78, allocations: 163 kB / 5.98 GB, free: 65.87 MB / 1.229 GB Notification: Performance of sorting global known variables: time 0.01344/17.8, allocations: 3.42 MB / 5.983 GB, free: 65.62 MB / 1.229 GB Notification: Performance of sort global known variables: time 1.042e-06/17.8, allocations: 0 / 5.983 GB, free: 65.62 MB / 1.229 GB Notification: Performance of remove unused functions: time 0.0309/17.83, allocations: 3.168 MB / 5.986 GB, free: 65.44 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.01583/17.84, allocations: 4.017 MB / 5.99 GB, free: 64.29 MB / 1.229 GB Notification: Performance of simCode: created initialization part: time 0.02611/17.87, allocations: 7.173 MB / 5.997 GB, free: 63.69 MB / 1.229 GB Notification: Performance of simCode: created event and clocks part: time 3.272e-05/17.87, allocations: 4.562 kB / 5.997 GB, free: 63.69 MB / 1.229 GB Notification: Performance of simCode: created simulation system equations: time 0.008689/17.88, allocations: 2.854 MB / 6 GB, free: 62.9 MB / 1.229 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02228/17.9, allocations: 2.745 MB / 6.003 GB, free: 62.86 MB / 1.229 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04407/17.94, allocations: 9.554 MB / 6.012 GB, free: 60.39 MB / 1.229 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01332/17.96, allocations: 3.634 MB / 6.016 GB, free: 59.51 MB / 1.229 GB Notification: Performance of simCode: alias equations: time 0.02376/17.98, allocations: 2.855 MB / 6.019 GB, free: 59.2 MB / 1.229 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003403/17.99, allocations: 412.5 kB / 6.019 GB, free: 59.19 MB / 1.229 GB Notification: Performance of SimCode: time 2.845e-06/17.99, allocations: 0 / 6.019 GB, free: 59.19 MB / 1.229 GB Notification: Performance of Templates: time 0.2871/18.27, allocations: 160.7 MB / 6.176 GB, free: 1.43 MB / 1.229 GB make -j1 -f Buildings_9_Buildings.Fluid.HeatPumps.Examples.ScrollWaterToWater_OneRoomRadiator.makefile (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 & ./Buildings_9_Buildings.Fluid.HeatPumps.Examples.ScrollWaterToWater_OneRoomRadiator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.HeatPumps.Examples.ScrollWaterToWater_OneRoomRadiator.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.HeatPumps.Examples.ScrollWaterToWater_OneRoomRadiator_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_HeatPumps_Examples_ScrollWaterToWater_OneRoomRadiator.csv","../files/Buildings_9_Buildings.Fluid.HeatPumps.Examples.ScrollWaterToWater_OneRoomRadiator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches