Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Examples.Tutorial.CDL.System3.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.System3,fileNamePrefix="Buildings_9_Buildings_Examples_Tutorial_CDL_System3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.Tutorial.CDL.System3,fileNamePrefix="Buildings_9_Buildings_Examples_Tutorial_CDL_System3",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.274/2.274, allocations: 387.4 MB / 394.9 MB, free: 13.39 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.001084/0.001084, allocations: 180.8 kB / 487.4 MB, free: 5.039 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.616/1.616, allocations: 221.5 MB / 0.7824 GB, free: 0.9023 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.0009578/0.0009581, allocations: 95.78 kB / 0.9219 GB, free: 2.141 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 1.876e-05/1.879e-05, allocations: 0 / 1.067 GB, free: 185.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3358/0.3359, allocations: 142.4 MB / 1.206 GB, free: 43.86 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 6.646/6.981, allocations: 2.243 GB / 3.449 GB, free: 55.37 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003679/6.982, allocations: 89.27 kB / 3.449 GB, free: 55.32 MB / 1.151 GB Notification: Performance of FrontEnd - DAE generated: time 20.58/27.56, allocations: 4.433 GB / 7.882 GB, free: 64.5 MB / 1.339 GB Notification: Performance of FrontEnd: time 2.815e-06/27.56, allocations: 0 / 7.882 GB, free: 64.5 MB / 1.339 GB Notification: Performance of Transformations before backend: time 0.003165/27.57, allocations: 322.2 kB / 7.882 GB, free: 64.44 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: 1854 * Number of variables: 1854 Notification: Performance of Generate backend data structure: time 0.04199/27.61, allocations: 9.963 MB / 7.892 GB, free: 59.99 MB / 1.339 GB Notification: Performance of prepare preOptimizeDAE: time 5.914e-05/27.61, allocations: 11.16 kB / 7.892 GB, free: 59.99 MB / 1.339 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01777/27.62, allocations: 2.399 MB / 7.894 GB, free: 59.26 MB / 1.339 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04842/27.67, allocations: 13.3 MB / 7.907 GB, free: 57.54 MB / 1.339 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007697/27.67, allocations: 234.5 kB / 7.907 GB, free: 57.53 MB / 1.339 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00438/27.68, allocations: 463.9 kB / 7.908 GB, free: 57.53 MB / 1.339 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02167/27.7, allocations: 6.247 MB / 7.914 GB, free: 57.5 MB / 1.339 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03318/27.73, allocations: 7.128 MB / 7.921 GB, free: 56.55 MB / 1.339 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007077/27.73, allocations: 18.7 kB / 7.921 GB, free: 56.55 MB / 1.339 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003744/27.74, allocations: 11.78 kB / 7.921 GB, free: 56.55 MB / 1.339 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000541/27.74, allocations: 300.7 kB / 7.921 GB, free: 56.53 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.091/27.83, allocations: 39.77 MB / 7.96 GB, free: 36.01 MB / 1.339 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009002/27.84, allocations: 4.078 MB / 7.964 GB, free: 35.92 MB / 1.339 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005136/27.84, allocations: 2.476 MB / 7.966 GB, free: 35.88 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.03447/27.88, allocations: 10.15 MB / 7.976 GB, free: 33 MB / 1.339 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0046/27.88, allocations: 2.405 MB / 7.979 GB, free: 32.85 MB / 1.339 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.007771/27.89, allocations: 365.9 kB / 7.979 GB, free: 32.65 MB / 1.339 GB Notification: Performance of pre-optimization done (n=425): time 3.175e-05/27.89, allocations: 0 / 7.979 GB, free: 32.65 MB / 1.339 GB Notification: Performance of matching and sorting (n=430): time 0.04474/27.94, allocations: 11.26 MB / 7.99 GB, free: 30.07 MB / 1.339 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001768/27.94, allocations: 334.4 kB / 7.99 GB, free: 29.72 MB / 1.339 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02421/27.96, allocations: 6.719 MB / 7.997 GB, free: 29.14 MB / 1.339 GB Notification: Performance of collectPreVariables (initialization): time 0.002004/27.96, allocations: 36.36 kB / 7.997 GB, free: 29.11 MB / 1.339 GB Notification: Performance of collectInitialEqns (initialization): time 0.009386/27.97, allocations: 5.003 MB / 8.002 GB, free: 27.6 MB / 1.339 GB Notification: Performance of collectInitialBindings (initialization): time 0.003508/27.98, allocations: 1.434 MB / 8.003 GB, free: 26.65 MB / 1.339 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00143/27.98, allocations: 0 / 8.003 GB, free: 26.65 MB / 1.339 GB Notification: Performance of setup shared object (initialization): time 0.0005641/27.98, allocations: 0.5116 MB / 8.004 GB, free: 26.34 MB / 1.339 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004116/27.98, allocations: 1.878 MB / 8.005 GB, free: 26.32 MB / 1.339 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005602/27.99, allocations: 3.671 MB / 8.009 GB, free: 24.13 MB / 1.339 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007314/27.99, allocations: 2.671 MB / 8.012 GB, free: 23.92 MB / 1.339 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.602e-05/27.99, allocations: 11.34 kB / 8.012 GB, free: 23.92 MB / 1.339 GB Notification: Performance of matching and sorting (n=715) (initialization): time 0.02167/28.02, allocations: 6.906 MB / 8.018 GB, free: 22.93 MB / 1.339 GB Notification: Performance of prepare postOptimizeDAE: time 0.008285/28.02, allocations: 22.24 MB / 8.04 GB, free: 15.38 MB / 1.354 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000197/28.02, allocations: 39.47 kB / 8.04 GB, free: 15.38 MB / 1.354 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003748/28.03, allocations: 0.8424 MB / 8.041 GB, free: 15.31 MB / 1.354 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006632/28.04, allocations: 1.231 MB / 8.042 GB, free: 15.23 MB / 1.354 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009417/28.04, allocations: 7.287 MB / 8.049 GB, free: 25.74 MB / 1.37 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.014/28.06, allocations: 0.6163 MB / 8.05 GB, free: 25.61 MB / 1.37 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00211/28.06, allocations: 274.2 kB / 8.05 GB, free: 25.61 MB / 1.37 GB Notification: Performance of prepare postOptimizeDAE: time 1.828e-05/28.06, allocations: 6.344 kB / 8.05 GB, free: 25.61 MB / 1.37 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01459/28.08, allocations: 5.614 MB / 8.056 GB, free: 25.1 MB / 1.37 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001084/28.08, allocations: 40.88 kB / 8.056 GB, free: 25.1 MB / 1.37 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003077/28.08, allocations: 0.8064 MB / 8.057 GB, free: 25.04 MB / 1.37 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005514/28.08, allocations: 1.187 MB / 8.058 GB, free: 24.96 MB / 1.37 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01232/28.1, allocations: 8.874 MB / 8.066 GB, free: 19.16 MB / 1.37 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01533/28.11, allocations: 0.5697 MB / 8.067 GB, free: 19.06 MB / 1.37 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002277/28.11, allocations: 257.9 kB / 8.067 GB, free: 19.06 MB / 1.37 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 178 * Number of states: 0 () * Number of discrete variables: 12 ($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) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (658): * Single equations (assignments): 650 * 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.002379/28.12, allocations: 271 kB / 8.067 GB, free: 18.84 MB / 1.37 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01243/28.13, allocations: 4.947 MB / 8.072 GB, free: 18.1 MB / 1.37 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003831/28.13, allocations: 0.9001 MB / 8.073 GB, free: 17.62 MB / 1.37 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01408/28.15, allocations: 5.827 MB / 8.079 GB, free: 17.13 MB / 1.37 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.086e-05/28.15, allocations: 46.12 kB / 8.079 GB, free: 17.13 MB / 1.37 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.469e-05/28.15, allocations: 14.38 kB / 8.079 GB, free: 17.12 MB / 1.37 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.008558/28.16, allocations: 4.265 MB / 8.083 GB, free: 16.81 MB / 1.37 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04053/28.2, allocations: 13 MB / 8.096 GB, free: 15.88 MB / 1.37 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.441e-05/28.2, allocations: 2.406 kB / 8.096 GB, free: 15.88 MB / 1.37 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004104/28.2, allocations: 0.8232 MB / 8.097 GB, free: 15.84 MB / 1.37 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002143/28.2, allocations: 0.6733 MB / 8.097 GB, free: 15.73 MB / 1.37 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008081/28.2, allocations: 81.5 kB / 8.097 GB, free: 15.73 MB / 1.37 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01239/28.22, allocations: 12.92 MB / 8.11 GB, free: 4.773 MB / 1.37 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.04e-05/28.22, allocations: 3.984 kB / 8.11 GB, free: 4.77 MB / 1.37 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02342/28.24, allocations: 7.994 MB / 8.118 GB, free: 3.613 MB / 1.37 GB Notification: Performance of postOpt removeConstants (simulation): time 0.008807/28.25, allocations: 1.713 MB / 8.119 GB, free: 3.023 MB / 1.37 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004214/28.25, allocations: 23.06 kB / 8.119 GB, free: 3.023 MB / 1.37 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01063/28.26, allocations: 0.5764 MB / 8.12 GB, free: 2.938 MB / 1.37 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001476/28.26, allocations: 289.4 kB / 8.12 GB, free: 2.934 MB / 1.37 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007959/28.27, allocations: 204 kB / 8.12 GB, free: 2.93 MB / 1.37 GB Notification: Performance of sorting global known variables: time 0.01359/28.28, allocations: 4.963 MB / 8.125 GB, free: 18.64 MB / 1.385 GB Notification: Performance of sort global known variables: time 4.01e-07/28.28, allocations: 0 / 8.125 GB, free: 18.64 MB / 1.385 GB Notification: Performance of remove unused functions: time 0.03457/28.31, allocations: 4.854 MB / 8.13 GB, free: 18.41 MB / 1.385 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 30 (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,conBoiRet.conPID.I.y) * Number of discrete variables: 8 ($whenCondition4,$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 (426): * Single equations (assignments): 403 * 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.03103/28.34, allocations: 14.5 MB / 8.144 GB, free: 13.86 MB / 1.385 GB Notification: Performance of simCode: created initialization part: time 0.02248/28.37, allocations: 9.15 MB / 8.153 GB, free: 11.88 MB / 1.385 GB Notification: Performance of simCode: created event and clocks part: time 1.594e-05/28.37, allocations: 6.562 kB / 8.153 GB, free: 11.88 MB / 1.385 GB Notification: Performance of simCode: created simulation system equations: time 0.006926/28.37, allocations: 3.161 MB / 8.156 GB, free: 9.586 MB / 1.385 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02899/28.4, allocations: 4.326 MB / 8.16 GB, free: 7.141 MB / 1.385 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06998/28.47, allocations: 17.67 MB / 8.178 GB, free: 10.1 MB / 1.401 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01102/28.48, allocations: 5.422 MB / 8.183 GB, free: 6.281 MB / 1.401 GB Notification: Performance of simCode: alias equations: time 0.0247/28.51, allocations: 3.704 MB / 8.187 GB, free: 3.805 MB / 1.401 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01185/28.52, allocations: 4.731 MB / 8.191 GB, free: 15.75 MB / 1.417 GB Notification: Performance of SimCode: time 9.41e-07/28.52, allocations: 4 kB / 8.191 GB, free: 15.74 MB / 1.417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.866/30.39, allocations: 273.7 MB / 8.458 GB, free: 123.8 MB / 1.417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000295/30.39, allocations: 161.9 kB / 8.459 GB, free: 123.6 MB / 1.417 GB Notification: Performance of buildModelFMU: Generate platform static: time 18/48.39, allocations: 0.7656 kB / 8.459 GB, free: 123.6 MB / 1.417 GB (rm -f Buildings_9_Buildings.Examples.Tutorial.CDL.System3.pipe ; mkfifo Buildings_9_Buildings.Examples.Tutorial.CDL.System3.pipe ; head -c 1048576 < Buildings_9_Buildings.Examples.Tutorial.CDL.System3.pipe >> ../files/Buildings_9_Buildings.Examples.Tutorial.CDL.System3.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Examples.Tutorial.CDL.System3_res.mat --tempDir=temp_Buildings_9_Buildings_Examples_Tutorial_CDL_System3_fmu --startTime=1.296e+06 --stopTime=1.3824e+06 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Examples_Tutorial_CDL_System3.fmu > Buildings_9_Buildings.Examples.Tutorial.CDL.System3.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Examples.Tutorial.CDL.System3_res.mat does not exist to compare? outputFormat=mat