Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Examples.Tutorial.CDL.System5.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.Examples.Tutorial.CDL.System5,fileNamePrefix="Buildings_9_Buildings_Examples_Tutorial_CDL_System5",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.Tutorial.CDL.System5,fileNamePrefix="Buildings_9_Buildings_Examples_Tutorial_CDL_System5",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.417/2.417, allocations: 390.3 MB / 405.3 MB, free: 13.49 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.001707/0.001707, allocations: 182.7 kB / 498.1 MB, free: 5.758 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.849/1.849, allocations: 223.2 MB / 0.7948 GB, free: 17.93 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.001489/0.001489, allocations: 105.5 kB / 0.9346 GB, free: 6.258 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004273/0.0004272, allocations: 12.22 kB / 1.084 GB, free: 221.2 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3712/0.3717, allocations: 142.3 MB / 1.223 GB, free: 114.2 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 6.51/6.882, allocations: 2.244 GB / 3.467 GB, free: 185.3 MB / 1.167 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002753/6.882, allocations: 94.53 kB / 3.467 GB, free: 185.3 MB / 1.167 GB Notification: Performance of FrontEnd - DAE generated: time 19.51/26.39, allocations: 4.467 GB / 7.934 GB, free: 88.88 MB / 1.37 GB Notification: Performance of FrontEnd: time 3.957e-06/26.39, allocations: 0 / 7.934 GB, free: 88.88 MB / 1.37 GB Notification: Performance of Transformations before backend: time 0.002229/26.4, allocations: 327.6 kB / 7.934 GB, free: 88.82 MB / 1.37 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1870 * Number of variables: 1870 Notification: Performance of Generate backend data structure: time 0.04769/26.44, allocations: 12.57 MB / 7.947 GB, free: 83.48 MB / 1.37 GB Notification: Performance of prepare preOptimizeDAE: time 4.739e-05/26.44, allocations: 9.469 kB / 7.947 GB, free: 83.48 MB / 1.37 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004832/26.45, allocations: 0.9706 MB / 7.948 GB, free: 83.39 MB / 1.37 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01587/26.46, allocations: 2.409 MB / 7.95 GB, free: 82.71 MB / 1.37 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04121/26.5, allocations: 13.43 MB / 7.963 GB, free: 81.04 MB / 1.37 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007879/26.51, allocations: 0.5742 MB / 7.964 GB, free: 81.03 MB / 1.37 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00352/26.51, allocations: 0.7743 MB / 7.964 GB, free: 81.02 MB / 1.37 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02964/26.54, allocations: 8.422 MB / 7.973 GB, free: 80.08 MB / 1.37 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002789/26.54, allocations: 17.88 kB / 7.973 GB, free: 80.07 MB / 1.37 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001622/26.54, allocations: 315.7 kB / 7.973 GB, free: 80.07 MB / 1.37 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003132/26.54, allocations: 302.2 kB / 7.973 GB, free: 80.06 MB / 1.37 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02177/26.56, allocations: 6.996 MB / 7.98 GB, free: 80 MB / 1.37 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.07372/26.64, allocations: 41.08 MB / 8.02 GB, free: 59.88 MB / 1.37 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008557/26.65, allocations: 4.844 MB / 8.025 GB, free: 59.15 MB / 1.37 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 evalFunc (simulation): time 0.03049/26.68, allocations: 10.34 MB / 8.035 GB, free: 56.32 MB / 1.37 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006184/26.68, allocations: 2.66 MB / 8.038 GB, free: 56.18 MB / 1.37 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.008211/26.69, allocations: 0.5128 MB / 8.038 GB, free: 55.97 MB / 1.37 GB Notification: Performance of pre-optimization done (n=434): time 2.69e-05/26.69, allocations: 0 / 8.038 GB, free: 55.97 MB / 1.37 GB Notification: Performance of matching and sorting (n=442): time 0.04307/26.73, allocations: 14.83 MB / 8.053 GB, free: 52.72 MB / 1.37 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001325/26.73, allocations: 334.6 kB / 8.053 GB, free: 52.38 MB / 1.37 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01683/26.75, allocations: 7.443 MB / 8.06 GB, free: 51.8 MB / 1.37 GB Notification: Performance of collectPreVariables (initialization): time 0.002173/26.75, allocations: 146.9 kB / 8.06 GB, free: 51.77 MB / 1.37 GB Notification: Performance of collectInitialEqns (initialization): time 0.006638/26.76, allocations: 5.029 MB / 8.065 GB, free: 50.32 MB / 1.37 GB Notification: Performance of collectInitialBindings (initialization): time 0.002716/26.76, allocations: 1.517 MB / 8.067 GB, free: 49.35 MB / 1.37 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005362/26.76, allocations: 115.1 kB / 8.067 GB, free: 49.35 MB / 1.37 GB Notification: Performance of setup shared object (initialization): time 0.0003692/26.76, allocations: 0.5175 MB / 8.067 GB, free: 49.04 MB / 1.37 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004041/26.77, allocations: 2.051 MB / 8.069 GB, free: 49.02 MB / 1.37 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005338/26.77, allocations: 3.9 MB / 8.073 GB, free: 46.88 MB / 1.37 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005302/26.78, allocations: 2.67 MB / 8.076 GB, free: 46.78 MB / 1.37 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.601e-05/26.78, allocations: 11.38 kB / 8.076 GB, free: 46.78 MB / 1.37 GB Notification: Performance of matching and sorting (n=723) (initialization): time 0.0189/26.8, allocations: 7.37 MB / 8.083 GB, free: 46.02 MB / 1.37 GB Notification: Performance of prepare postOptimizeDAE: time 0.004595/26.8, allocations: 22.55 MB / 8.105 GB, free: 22.58 MB / 1.37 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001347/26.8, allocations: 41.28 kB / 8.105 GB, free: 22.58 MB / 1.37 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004408/26.81, allocations: 0.9804 MB / 8.106 GB, free: 22.53 MB / 1.37 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006318/26.81, allocations: 1.235 MB / 8.107 GB, free: 22.53 MB / 1.37 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007138/26.82, allocations: 7.423 MB / 8.114 GB, free: 16.94 MB / 1.37 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01266/26.83, allocations: 0.7749 MB / 8.115 GB, free: 16.87 MB / 1.37 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001902/26.83, allocations: 272.8 kB / 8.115 GB, free: 16.87 MB / 1.37 GB Notification: Performance of prepare postOptimizeDAE: time 1.37e-05/26.83, allocations: 6.25 kB / 8.115 GB, free: 16.87 MB / 1.37 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01441/26.85, allocations: 6.364 MB / 8.122 GB, free: 16.62 MB / 1.37 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001165/26.85, allocations: 39.16 kB / 8.122 GB, free: 16.62 MB / 1.37 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003754/26.85, allocations: 0.9232 MB / 8.123 GB, free: 16.58 MB / 1.37 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005889/26.86, allocations: 1.193 MB / 8.124 GB, free: 16.58 MB / 1.37 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0129/26.87, allocations: 9.289 MB / 8.133 GB, free: 26.64 MB / 1.385 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0133/26.88, allocations: 0.7375 MB / 8.134 GB, free: 26.59 MB / 1.385 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002102/26.89, allocations: 261.1 kB / 8.134 GB, free: 26.59 MB / 1.385 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 178 * Number of states: 0 () * Number of discrete variables: 20 ($whenCondition4,$whenCondition1,$PRE.timTab.tab.nextTimeEvent,$whenCondition3,$whenCondition2,timTab.tab.nextTimeEvent,$PRE.timTab.tab.nextTimeEventScaled,timTab.tab.nextTimeEventScaled,$PRE.weaDat.conTimMin.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTim.tNext,$PRE.conSysSta.onTOut.y,conSysSta.onTOut.y,$PRE.conSysSta.onTRoo.y,conSysSta.onTRoo.y,$PRE.conEquSta.hys.y,conEquSta.hys.y,boiPumCon.u,boiSigCon.u) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (666): * Single equations (assignments): 658 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 5,(1,100.0%) 4} * Non-linear torn systems: 3 {3 8,13 22,1 2} Notification: Performance of prepare postOptimizeDAE: time 0.009128/26.9, allocations: 2.289 MB / 8.136 GB, free: 26.37 MB / 1.385 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003498/26.9, allocations: 0.9221 MB / 8.137 GB, free: 25.88 MB / 1.385 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01718/26.92, allocations: 6.403 MB / 8.143 GB, free: 25.48 MB / 1.385 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.907e-05/26.92, allocations: 51.44 kB / 8.143 GB, free: 25.48 MB / 1.385 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.472e-05/26.92, allocations: 2.875 kB / 8.143 GB, free: 25.48 MB / 1.385 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01126/26.93, allocations: 4.713 MB / 8.148 GB, free: 25.23 MB / 1.385 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04409/26.97, allocations: 14.38 MB / 8.162 GB, free: 24.28 MB / 1.385 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.517e-05/26.97, allocations: 0 / 8.162 GB, free: 24.28 MB / 1.385 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004185/26.98, allocations: 0.8529 MB / 8.163 GB, free: 24.28 MB / 1.385 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002044/26.98, allocations: 0.7019 MB / 8.163 GB, free: 24.2 MB / 1.385 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006621/26.98, allocations: 136.6 kB / 8.164 GB, free: 24.2 MB / 1.385 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009899/26.99, allocations: 13.19 MB / 8.176 GB, free: 12.94 MB / 1.385 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.777e-06/26.99, allocations: 4.891 kB / 8.176 GB, free: 12.94 MB / 1.385 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01794/27.01, allocations: 8.637 MB / 8.185 GB, free: 11.84 MB / 1.385 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00789/27.02, allocations: 1.749 MB / 8.187 GB, free: 11.24 MB / 1.385 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003676/27.02, allocations: 103.9 kB / 8.187 GB, free: 11.24 MB / 1.385 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009944/27.03, allocations: 0.6857 MB / 8.187 GB, free: 11.2 MB / 1.385 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001144/27.03, allocations: 324.8 kB / 8.188 GB, free: 11.2 MB / 1.385 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007255/27.03, allocations: 207.6 kB / 8.188 GB, free: 11.2 MB / 1.385 GB Notification: Performance of sorting global known variables: time 0.0148/27.05, allocations: 5.646 MB / 8.193 GB, free: 10.91 MB / 1.385 GB Notification: Performance of sort global known variables: time 1.282e-06/27.05, allocations: 2.688 kB / 8.193 GB, free: 10.91 MB / 1.385 GB Notification: Performance of remove unused functions: time 0.03246/27.08, allocations: 5.16 MB / 8.198 GB, free: 10.68 MB / 1.385 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 30 (vol.dynBal.medium.Xi[1],vol.dynBal.m,heaCap.T,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,pumRad.vol.dynBal.U,pumRad.filter.s[1],pumRad.filter.s[2],mix.vol.dynBal.U,spl.vol.dynBal.U,spl2.vol.dynBal.U,mix2.vol.dynBal.U,spl4.vol.dynBal.U,pumBoi.vol.dynBal.U,pumBoi.filter.s[1],pumBoi.filter.s[2],boi.heaCapDry.T,valRad.vol.dynBal.U,valRad.filter.s[1],valRad.filter.s[2],valBoi.vol.dynBal.U,valBoi.filter.s[1],valBoi.filter.s[2],temRet.T,spl1.vol.dynBal.U,conBoiRet.conPID.I.y) * Number of discrete variables: 13 ($whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,timTab.tab.nextTimeEvent,timTab.tab.nextTimeEventScaled,weaDat.conTimMin.tNext,weaDat.conTim.tNext,conSysSta.onTOut.y,conSysSta.onTRoo.y,conEquSta.hys.y,boiPumCon.u,boiSigCon.u) * Number of discrete states: 7 (timTab.tab.nextTimeEvent,weaDat.conTim.tNext,weaDat.conTimMin.tNext,conSysSta.onTRoo.y,conEquSta.hys.y,conSysSta.onTOut.y,timTab.tab.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (439): * Single equations (assignments): 416 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 9 * When equations: 4 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(1,100.0%) 4,(1,100.0%) 3,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 2 {13 22,1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.03291/27.11, allocations: 15.41 MB / 8.213 GB, free: 6.383 MB / 1.385 GB Notification: Performance of simCode: created initialization part: time 0.02729/27.14, allocations: 9.791 MB / 8.223 GB, free: 5.355 MB / 1.385 GB Notification: Performance of simCode: created event and clocks part: time 1.505e-05/27.14, allocations: 6.469 kB / 8.223 GB, free: 5.355 MB / 1.385 GB Notification: Performance of simCode: created simulation system equations: time 0.007165/27.15, allocations: 3.489 MB / 8.226 GB, free: 20.42 MB / 1.401 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02479/27.17, allocations: 4.496 MB / 8.231 GB, free: 20.18 MB / 1.401 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0786/27.25, allocations: 57.64 MB / 8.287 GB, free: 7.824 MB / 1.432 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01078/27.26, allocations: 5.434 MB / 8.292 GB, free: 6.797 MB / 1.432 GB Notification: Performance of simCode: alias equations: time 0.0155/27.28, allocations: 2.663 MB / 8.295 GB, free: 6.441 MB / 1.432 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01065/27.29, allocations: 4.825 MB / 8.3 GB, free: 6.426 MB / 1.432 GB Notification: Performance of SimCode: time 1.383e-06/27.29, allocations: 0 / 8.3 GB, free: 6.426 MB / 1.432 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.485/28.77, allocations: 302.2 MB / 8.595 GB, free: 160.4 MB / 1.464 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000141/28.77, allocations: 234.9 kB / 8.595 GB, free: 160.2 MB / 1.464 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.53/45.3, allocations: 4.547 kB / 8.595 GB, free: 160.2 MB / 1.464 GB (rm -f Buildings_9_Buildings.Examples.Tutorial.CDL.System5.pipe ; mkfifo Buildings_9_Buildings.Examples.Tutorial.CDL.System5.pipe ; head -c 1048576 < Buildings_9_Buildings.Examples.Tutorial.CDL.System5.pipe >> ../files/Buildings_9_Buildings.Examples.Tutorial.CDL.System5.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Examples.Tutorial.CDL.System5_res.mat --tempDir=temp_Buildings_9_Buildings_Examples_Tutorial_CDL_System5_fmu --startTime=1.296e+06 --stopTime=1.3824e+06 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Examples_Tutorial_CDL_System5.fmu > Buildings_9_Buildings.Examples.Tutorial.CDL.System5.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Examples.Tutorial.CDL.System5_res.mat does not exist to compare? outputFormat=mat