Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Examples.Tutorial.CDL.System2.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.System2,fileNamePrefix="Buildings_9_Buildings_Examples_Tutorial_CDL_System2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.Tutorial.CDL.System2,fileNamePrefix="Buildings_9_Buildings_Examples_Tutorial_CDL_System2",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.317/2.317, allocations: 387.4 MB / 394.9 MB, free: 13.33 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.001157/0.001157, allocations: 180.9 kB / 487.4 MB, free: 5.035 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.702/1.702, allocations: 221.5 MB / 0.7824 GB, free: 0.957 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001144/0.001144, allocations: 96.19 kB / 0.9219 GB, free: 2.199 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 2.209e-05/2.211e-05, allocations: 4 kB / 1.067 GB, free: 185.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3368/0.3369, allocations: 142.4 MB / 1.206 GB, free: 43.86 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 6.616/6.953, allocations: 2.241 GB / 3.447 GB, free: 56.38 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002492/6.953, allocations: 91.25 kB / 3.447 GB, free: 56.33 MB / 1.151 GB Notification: Performance of FrontEnd - DAE generated: time 19.74/26.69, allocations: 4.43 GB / 7.877 GB, free: 64.58 MB / 1.339 GB Notification: Performance of FrontEnd: time 2.675e-06/26.69, allocations: 0 / 7.877 GB, free: 64.58 MB / 1.339 GB Notification: Performance of Transformations before backend: time 0.00259/26.69, allocations: 311 kB / 7.878 GB, free: 64.52 MB / 1.339 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1811 * Number of variables: 1811 Notification: Performance of Generate backend data structure: time 0.04216/26.74, allocations: 9.816 MB / 7.887 GB, free: 60.13 MB / 1.339 GB Notification: Performance of prepare preOptimizeDAE: time 5.356e-05/26.74, allocations: 12.34 kB / 7.887 GB, free: 60.13 MB / 1.339 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01751/26.75, allocations: 2.373 MB / 7.889 GB, free: 59.42 MB / 1.339 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0474/26.8, allocations: 13.21 MB / 7.902 GB, free: 57.7 MB / 1.339 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00056/26.8, allocations: 231.8 kB / 7.903 GB, free: 57.7 MB / 1.339 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003561/26.81, allocations: 460.3 kB / 7.903 GB, free: 57.69 MB / 1.339 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01937/26.83, allocations: 6.146 MB / 7.909 GB, free: 57.66 MB / 1.339 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0289/26.85, allocations: 6.995 MB / 7.916 GB, free: 56.72 MB / 1.339 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003614/26.85, allocations: 15.06 kB / 7.916 GB, free: 56.72 MB / 1.339 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002688/26.86, allocations: 14.02 kB / 7.916 GB, free: 56.72 MB / 1.339 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000345/26.86, allocations: 286.3 kB / 7.916 GB, free: 56.71 MB / 1.339 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.08947/26.95, allocations: 39.28 MB / 7.954 GB, free: 36.23 MB / 1.339 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008088/26.96, allocations: 4.099 MB / 7.958 GB, free: 36.13 MB / 1.339 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004274/26.96, allocations: 2.415 MB / 7.961 GB, free: 36.09 MB / 1.339 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.0318/26.99, allocations: 10.06 MB / 7.971 GB, free: 33.21 MB / 1.339 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004359/27, allocations: 2.346 MB / 7.973 GB, free: 33.05 MB / 1.339 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.007343/27, allocations: 362.6 kB / 7.973 GB, free: 32.86 MB / 1.339 GB Notification: Performance of pre-optimization done (n=412): time 2.97e-05/27, allocations: 0 / 7.973 GB, free: 32.86 MB / 1.339 GB Notification: Performance of matching and sorting (n=417): time 0.04407/27.05, allocations: 11.06 MB / 7.984 GB, free: 30.32 MB / 1.339 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000125/27.05, allocations: 297.3 kB / 7.984 GB, free: 30 MB / 1.339 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01932/27.07, allocations: 6.64 MB / 7.991 GB, free: 29.43 MB / 1.339 GB Notification: Performance of collectPreVariables (initialization): time 0.001828/27.07, allocations: 39.73 kB / 7.991 GB, free: 29.39 MB / 1.339 GB Notification: Performance of collectInitialEqns (initialization): time 0.007922/27.08, allocations: 4.906 MB / 7.996 GB, free: 27.91 MB / 1.339 GB Notification: Performance of collectInitialBindings (initialization): time 0.002876/27.08, allocations: 1.392 MB / 7.997 GB, free: 26.98 MB / 1.339 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006985/27.08, allocations: 0 / 7.997 GB, free: 26.98 MB / 1.339 GB Notification: Performance of setup shared object (initialization): time 0.0004464/27.08, allocations: 0.518 MB / 7.998 GB, free: 26.66 MB / 1.339 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003318/27.08, allocations: 1.841 MB / 7.999 GB, free: 26.65 MB / 1.339 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004543/27.09, allocations: 3.606 MB / 8.003 GB, free: 24.49 MB / 1.339 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007063/27.1, allocations: 2.634 MB / 8.005 GB, free: 24.28 MB / 1.339 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.058e-05/27.1, allocations: 15.69 kB / 8.005 GB, free: 24.28 MB / 1.339 GB Notification: Performance of matching and sorting (n=700) (initialization): time 0.02427/27.12, allocations: 6.758 MB / 8.012 GB, free: 23.3 MB / 1.339 GB Notification: Performance of prepare postOptimizeDAE: time 0.006544/27.13, allocations: 22.01 MB / 8.034 GB, free: 15.88 MB / 1.354 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001779/27.13, allocations: 39.69 kB / 8.034 GB, free: 15.88 MB / 1.354 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003567/27.13, allocations: 0.8434 MB / 8.034 GB, free: 15.81 MB / 1.354 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006195/27.14, allocations: 1.205 MB / 8.036 GB, free: 15.73 MB / 1.354 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008035/27.14, allocations: 7.247 MB / 8.043 GB, free: 10.24 MB / 1.354 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01256/27.16, allocations: 0.5977 MB / 8.043 GB, free: 10.12 MB / 1.354 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002096/27.16, allocations: 267.4 kB / 8.044 GB, free: 10.12 MB / 1.354 GB Notification: Performance of prepare postOptimizeDAE: time 1.521e-05/27.16, allocations: 3.469 kB / 8.044 GB, free: 10.12 MB / 1.354 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01639/27.18, allocations: 5.509 MB / 8.049 GB, free: 9.625 MB / 1.354 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001717/27.18, allocations: 37.59 kB / 8.049 GB, free: 9.625 MB / 1.354 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003161/27.18, allocations: 0.8033 MB / 8.05 GB, free: 9.555 MB / 1.354 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005875/27.19, allocations: 1.177 MB / 8.051 GB, free: 9.473 MB / 1.354 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01175/27.2, allocations: 8.827 MB / 8.06 GB, free: 19.69 MB / 1.37 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01182/27.21, allocations: 0.5645 MB / 8.06 GB, free: 19.58 MB / 1.37 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001885/27.21, allocations: 256.8 kB / 8.06 GB, free: 19.58 MB / 1.37 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 177 * Number of states: 0 () * Number of discrete variables: 11 ($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) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (643): * Single equations (assignments): 635 * 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 {5 6,13 22,1 2} Notification: Performance of prepare postOptimizeDAE: time 0.002143/27.21, allocations: 265 kB / 8.061 GB, free: 19.37 MB / 1.37 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01284/27.23, allocations: 4.859 MB / 8.065 GB, free: 18.63 MB / 1.37 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003619/27.23, allocations: 0.8932 MB / 8.066 GB, free: 18.16 MB / 1.37 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01597/27.25, allocations: 5.727 MB / 8.072 GB, free: 17.65 MB / 1.37 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.293e-05/27.25, allocations: 51.94 kB / 8.072 GB, free: 17.65 MB / 1.37 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.869e-05/27.25, allocations: 0 / 8.072 GB, free: 17.65 MB / 1.37 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.009921/27.26, allocations: 4.199 MB / 8.076 GB, free: 17.33 MB / 1.37 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05334/27.31, allocations: 12.8 MB / 8.088 GB, free: 16.39 MB / 1.37 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.484e-05/27.31, allocations: 0 / 8.088 GB, free: 16.39 MB / 1.37 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003736/27.31, allocations: 0.8021 MB / 8.089 GB, free: 16.35 MB / 1.37 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00201/27.31, allocations: 0.658 MB / 8.09 GB, free: 16.25 MB / 1.37 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006208/27.32, allocations: 78.77 kB / 8.09 GB, free: 16.25 MB / 1.37 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009887/27.33, allocations: 12.91 MB / 8.103 GB, free: 5.312 MB / 1.37 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.644e-06/27.33, allocations: 3.938 kB / 8.103 GB, free: 5.309 MB / 1.37 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01718/27.34, allocations: 7.842 MB / 8.11 GB, free: 4.176 MB / 1.37 GB Notification: Performance of postOpt removeConstants (simulation): time 0.008356/27.35, allocations: 1.689 MB / 8.112 GB, free: 3.594 MB / 1.37 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003928/27.36, allocations: 19.11 kB / 8.112 GB, free: 3.594 MB / 1.37 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0103/27.37, allocations: 0.5773 MB / 8.112 GB, free: 3.5 MB / 1.37 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00147/27.37, allocations: 290.1 kB / 8.113 GB, free: 3.488 MB / 1.37 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007792/27.37, allocations: 195.2 kB / 8.113 GB, free: 3.488 MB / 1.37 GB Notification: Performance of sorting global known variables: time 0.01361/27.38, allocations: 4.91 MB / 8.118 GB, free: 3.203 MB / 1.37 GB Notification: Performance of sort global known variables: time 3.2e-07/27.38, allocations: 0 / 8.118 GB, free: 3.203 MB / 1.37 GB Notification: Performance of remove unused functions: time 0.03365/27.41, allocations: 4.812 MB / 8.122 GB, free: 2.977 MB / 1.37 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 29 (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,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) * Number of discrete variables: 7 ($whenCondition3,$whenCondition2,$whenCondition1,timTab.tab.nextTimeEvent,timTab.tab.nextTimeEventScaled,weaDat.conTimMin.tNext,weaDat.conTim.tNext) * Number of discrete states: 4 (timTab.tab.nextTimeEvent,weaDat.conTim.tNext,weaDat.conTimMin.tNext,timTab.tab.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (413): * Single equations (assignments): 390 * 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%) 4,(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.0349/27.45, allocations: 14.35 MB / 8.136 GB, free: 14.44 MB / 1.385 GB Notification: Performance of simCode: created initialization part: time 0.0204/27.47, allocations: 8.952 MB / 8.145 GB, free: 11.54 MB / 1.385 GB Notification: Performance of simCode: created event and clocks part: time 2.081e-05/27.47, allocations: 5.875 kB / 8.145 GB, free: 11.53 MB / 1.385 GB Notification: Performance of simCode: created simulation system equations: time 0.006006/27.48, allocations: 3.114 MB / 8.148 GB, free: 9.273 MB / 1.385 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02709/27.5, allocations: 4.303 MB / 8.152 GB, free: 6.84 MB / 1.385 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06808/27.57, allocations: 17.41 MB / 8.169 GB, free: 10.16 MB / 1.401 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009786/27.58, allocations: 5.351 MB / 8.175 GB, free: 6.383 MB / 1.401 GB Notification: Performance of simCode: alias equations: time 0.0249/27.61, allocations: 3.689 MB / 8.178 GB, free: 3.906 MB / 1.401 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01199/27.62, allocations: 4.591 MB / 8.183 GB, free: 15.68 MB / 1.417 GB Notification: Performance of SimCode: time 1.143e-06/27.62, allocations: 0 / 8.183 GB, free: 15.68 MB / 1.417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.853/29.47, allocations: 271 MB / 8.447 GB, free: 123.9 MB / 1.417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002222/29.47, allocations: 163 kB / 8.448 GB, free: 123.7 MB / 1.417 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.2/46.67, allocations: 7.938 kB / 8.448 GB, free: 123.7 MB / 1.417 GB (rm -f Buildings_9_Buildings.Examples.Tutorial.CDL.System2.pipe ; mkfifo Buildings_9_Buildings.Examples.Tutorial.CDL.System2.pipe ; head -c 1048576 < Buildings_9_Buildings.Examples.Tutorial.CDL.System2.pipe >> ../files/Buildings_9_Buildings.Examples.Tutorial.CDL.System2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Examples.Tutorial.CDL.System2_res.mat --tempDir=temp_Buildings_9_Buildings_Examples_Tutorial_CDL_System2_fmu --startTime=1.296e+06 --stopTime=1.3824e+06 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Examples_Tutorial_CDL_System2.fmu > Buildings_9_Buildings.Examples.Tutorial.CDL.System2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Examples.Tutorial.CDL.System2_res.mat does not exist to compare? outputFormat=mat