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"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 1.791/1.791, allocations: 387.2 MB / 394.5 MB, free: 13.68 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.0009319/0.000932, allocations: 180.2 kB / 487 MB, free: 5.398 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.111/1.111, allocations: 221.3 MB / 0.7819 GB, free: 1.391 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.00085/0.00085, allocations: 100.6 kB / 0.9213 GB, free: 2.637 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.4012/0.4021, allocations: 148.4 MB / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1784/0.5805, allocations: 142.3 MB / 1.205 GB, free: 26.16 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 3.182/3.763, allocations: 2.243 GB / 3.449 GB, free: 25.41 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001714/3.763, allocations: 95.22 kB / 3.449 GB, free: 25.36 MB / 1.151 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 12.33/16.09, allocations: 4.471 GB / 7.919 GB, free: 61.89 MB / 1.339 GB Notification: Performance of prepare preOptimizeDAE: time 3.348e-05/16.09, allocations: 10.72 kB / 7.919 GB, free: 61.89 MB / 1.339 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01053/16.1, allocations: 1.908 MB / 7.921 GB, free: 61.18 MB / 1.339 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03253/16.14, allocations: 13.42 MB / 7.934 GB, free: 59.25 MB / 1.339 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003014/16.14, allocations: 231.5 kB / 7.935 GB, free: 59.25 MB / 1.339 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001856/16.14, allocations: 475 kB / 7.935 GB, free: 59.24 MB / 1.339 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01257/16.15, allocations: 6.382 MB / 7.941 GB, free: 59.21 MB / 1.339 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0122/16.16, allocations: 7.242 MB / 7.948 GB, free: 58.23 MB / 1.339 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001564/16.16, allocations: 18.81 kB / 7.948 GB, free: 58.22 MB / 1.339 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006474/16.17, allocations: 12.22 kB / 7.948 GB, free: 58.22 MB / 1.339 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001912/16.17, allocations: 315.3 kB / 7.949 GB, free: 58.2 MB / 1.339 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04933/16.21, allocations: 41.73 MB / 7.989 GB, free: 35.97 MB / 1.339 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003673/16.22, allocations: 2.647 MB / 7.992 GB, free: 35.92 MB / 1.339 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003236/16.22, allocations: 2.541 MB / 7.995 GB, free: 35.87 MB / 1.339 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01762/16.24, allocations: 9.816 MB / 8.004 GB, free: 32.91 MB / 1.339 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003188/16.24, allocations: 2.463 MB / 8.007 GB, free: 32.76 MB / 1.339 GB Notification: Performance of pre-optimization done (n=437): time 6.352e-06/16.24, allocations: 1.312 kB / 8.007 GB, free: 32.76 MB / 1.339 GB Notification: Performance of matching and sorting (n=442): time 0.02891/16.27, allocations: 11.67 MB / 8.018 GB, free: 30.09 MB / 1.339 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.828e-05/16.27, allocations: 330.8 kB / 8.018 GB, free: 29.74 MB / 1.339 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009903/16.28, allocations: 6.772 MB / 8.025 GB, free: 29.17 MB / 1.339 GB Notification: Performance of collectPreVariables (initialization): time 0.001073/16.28, allocations: 37.83 kB / 8.025 GB, free: 29.14 MB / 1.339 GB Notification: Performance of collectInitialEqns (initialization): time 0.003172/16.29, allocations: 3.028 MB / 8.028 GB, free: 27.62 MB / 1.339 GB Notification: Performance of collectInitialBindings (initialization): time 0.003276/16.29, allocations: 1.455 MB / 8.029 GB, free: 26.66 MB / 1.339 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003382/16.29, allocations: 0 / 8.029 GB, free: 26.66 MB / 1.339 GB Notification: Performance of setup shared object (initialization): time 0.0002203/16.29, allocations: 0.5266 MB / 8.03 GB, free: 26.34 MB / 1.339 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002741/16.29, allocations: 1.929 MB / 8.032 GB, free: 26.32 MB / 1.339 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003414/16.3, allocations: 3.731 MB / 8.035 GB, free: 24.12 MB / 1.339 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005213/16.3, allocations: 2.761 MB / 8.038 GB, free: 23.92 MB / 1.339 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.835e-05/16.3, allocations: 13.66 kB / 8.038 GB, free: 23.92 MB / 1.339 GB Notification: Performance of matching and sorting (n=723) (initialization): time 0.01336/16.31, allocations: 6.953 MB / 8.045 GB, free: 22.94 MB / 1.339 GB Notification: Performance of prepare postOptimizeDAE: time 0.003716/16.32, allocations: 22.23 MB / 8.067 GB, free: 15.4 MB / 1.354 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.378e-05/16.32, allocations: 37.16 kB / 8.067 GB, free: 15.4 MB / 1.354 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002277/16.32, allocations: 0.7142 MB / 8.067 GB, free: 15.34 MB / 1.354 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005459/16.33, allocations: 1.235 MB / 8.068 GB, free: 15.25 MB / 1.354 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007249/16.33, allocations: 7.261 MB / 8.076 GB, free: 9.762 MB / 1.354 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009139/16.34, allocations: 0.6418 MB / 8.076 GB, free: 9.629 MB / 1.354 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009486/16.34, allocations: 276.9 kB / 8.076 GB, free: 9.629 MB / 1.354 GB Notification: Performance of prepare postOptimizeDAE: time 7.023e-06/16.34, allocations: 7.156 kB / 8.076 GB, free: 9.625 MB / 1.354 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01148/16.35, allocations: 5.666 MB / 8.082 GB, free: 9.152 MB / 1.354 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.491e-05/16.36, allocations: 39.59 kB / 8.082 GB, free: 9.152 MB / 1.354 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002318/16.36, allocations: 0.6867 MB / 8.083 GB, free: 9.086 MB / 1.354 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004852/16.36, allocations: 1.19 MB / 8.084 GB, free: 9.004 MB / 1.354 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0111/16.37, allocations: 8.654 MB / 8.092 GB, free: 3.25 MB / 1.354 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00851/16.38, allocations: 0.592 MB / 8.093 GB, free: 3.141 MB / 1.354 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000851/16.38, allocations: 260.2 kB / 8.093 GB, free: 3.141 MB / 1.354 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 () * 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 {5 6,13 22,1 2} Notification: Performance of prepare postOptimizeDAE: time 0.001305/16.38, allocations: 275.2 kB / 8.093 GB, free: 2.926 MB / 1.354 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002128/16.39, allocations: 0.9022 MB / 8.094 GB, free: 2.445 MB / 1.354 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01315/16.4, allocations: 6.167 MB / 8.1 GB, free: 1.898 MB / 1.354 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.559e-05/16.4, allocations: 51.02 kB / 8.1 GB, free: 1.898 MB / 1.354 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.488e-05/16.4, allocations: 3.469 kB / 8.1 GB, free: 1.898 MB / 1.354 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0075/16.41, allocations: 4.427 MB / 8.105 GB, free: 1.59 MB / 1.354 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02423/16.43, allocations: 13.05 MB / 8.117 GB, free: 0.7188 MB / 1.354 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-05/16.43, allocations: 4.062 kB / 8.117 GB, free: 0.7148 MB / 1.354 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003844/16.44, allocations: 0.8477 MB / 8.118 GB, free: 0.668 MB / 1.354 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001981/16.44, allocations: 0.6718 MB / 8.119 GB, free: 0.5664 MB / 1.354 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002893/16.44, allocations: 75.62 kB / 8.119 GB, free: 0.5664 MB / 1.354 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009592/16.45, allocations: 12.88 MB / 8.132 GB, free: 5.617 MB / 1.37 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/16.45, allocations: 0 / 8.132 GB, free: 5.617 MB / 1.37 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01488/16.46, allocations: 8.31 MB / 8.14 GB, free: 3.914 MB / 1.37 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01828/16.48, allocations: 11.85 MB / 8.151 GB, free: 9.484 MB / 1.385 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005071/16.49, allocations: 1.718 MB / 8.153 GB, free: 8.012 MB / 1.385 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001703/16.49, allocations: 30.09 kB / 8.153 GB, free: 7.988 MB / 1.385 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005808/16.49, allocations: 0.5987 MB / 8.154 GB, free: 7.547 MB / 1.385 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004503/16.49, allocations: 273.3 kB / 8.154 GB, free: 7.395 MB / 1.385 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004196/16.49, allocations: 205.2 kB / 8.154 GB, free: 7.234 MB / 1.385 GB Notification: Performance of sort global known variables: time 0.0076/16.5, allocations: 5.018 MB / 8.159 GB, free: 2.781 MB / 1.385 GB Notification: Performance of remove unused functions: time 0.02603/16.53, allocations: 6.908 MB / 8.166 GB, free: 12.65 MB / 1.401 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: 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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (440): * Single equations (assignments): 417 * 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.008603/16.54, allocations: 6.105 MB / 8.172 GB, free: 6.859 MB / 1.401 GB Notification: Performance of simCode: created initialization part: time 0.9891/17.53, allocations: 9.247 MB / 8.181 GB, free: 202.5 MB / 1.401 GB Notification: Performance of simCode: created event and clocks part: time 1.24e-05/17.53, allocations: 8.344 kB / 8.181 GB, free: 202.5 MB / 1.401 GB Notification: Performance of simCode: created simulation system equations: time 0.004328/17.53, allocations: 3.269 MB / 8.184 GB, free: 201.7 MB / 1.401 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01815/17.55, allocations: 4.137 MB / 8.188 GB, free: 201.6 MB / 1.401 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0285/17.58, allocations: 15.42 MB / 8.203 GB, free: 198.3 MB / 1.401 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00701/17.58, allocations: 6.35 MB / 8.209 GB, free: 197.4 MB / 1.401 GB Notification: Performance of SimCode: time 1.052e-06/17.58, allocations: 1.594 kB / 8.209 GB, free: 197.4 MB / 1.401 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