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"}) [: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.784/1.784, allocations: 387.2 MB / 394.5 MB, free: 13.66 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.001055/0.001055, allocations: 180.7 kB / 487 MB, free: 5.387 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.138/1.138, allocations: 221.3 MB / 0.7819 GB, free: 1.363 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.0008908/0.0008908, allocations: 89.86 kB / 0.9213 GB, free: 2.617 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.3963/0.3972, allocations: 148.4 MB / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.192/0.5892, allocations: 142.3 MB / 1.205 GB, free: 26.14 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 3.138/3.728, allocations: 2.243 GB / 3.448 GB, free: 46.48 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000173/3.728, allocations: 95.77 kB / 3.448 GB, free: 46.39 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: 1854 * Number of variables: 1854 Notification: Performance of Generate backend data structure: time 12.12/15.85, allocations: 4.469 GB / 7.918 GB, free: 60.55 MB / 1.339 GB Notification: Performance of prepare preOptimizeDAE: time 3.594e-05/15.85, allocations: 9.719 kB / 7.918 GB, free: 60.55 MB / 1.339 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01029/15.86, allocations: 1.907 MB / 7.92 GB, free: 59.84 MB / 1.339 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03076/15.89, allocations: 13.39 MB / 7.933 GB, free: 57.91 MB / 1.339 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002736/15.89, allocations: 236.9 kB / 7.933 GB, free: 57.91 MB / 1.339 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001669/15.89, allocations: 467.7 kB / 7.933 GB, free: 57.9 MB / 1.339 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01097/15.9, allocations: 6.342 MB / 7.94 GB, free: 57.87 MB / 1.339 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01168/15.91, allocations: 7.19 MB / 7.947 GB, free: 56.89 MB / 1.339 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001535/15.91, allocations: 26.12 kB / 7.947 GB, free: 56.88 MB / 1.339 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006791/15.91, allocations: 11.44 kB / 7.947 GB, free: 56.88 MB / 1.339 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001837/15.91, allocations: 302.1 kB / 7.947 GB, free: 56.86 MB / 1.339 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04917/15.96, allocations: 41.66 MB / 7.988 GB, free: 34.57 MB / 1.339 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003662/15.97, allocations: 2.584 MB / 7.99 GB, free: 34.52 MB / 1.339 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003025/15.97, allocations: 2.524 MB / 7.993 GB, free: 34.46 MB / 1.339 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01772/15.99, allocations: 9.864 MB / 8.002 GB, free: 31.6 MB / 1.339 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003195/15.99, allocations: 2.412 MB / 8.005 GB, free: 31.46 MB / 1.339 GB Notification: Performance of pre-optimization done (n=425): time 4.97e-06/15.99, allocations: 2.938 kB / 8.005 GB, free: 31.46 MB / 1.339 GB Notification: Performance of matching and sorting (n=430): time 0.02717/16.02, allocations: 11.53 MB / 8.016 GB, free: 28.84 MB / 1.339 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.421e-05/16.02, allocations: 337.7 kB / 8.016 GB, free: 28.49 MB / 1.339 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009184/16.03, allocations: 6.781 MB / 8.023 GB, free: 27.91 MB / 1.339 GB Notification: Performance of collectPreVariables (initialization): time 0.000789/16.03, allocations: 40.64 kB / 8.023 GB, free: 27.88 MB / 1.339 GB Notification: Performance of collectInitialEqns (initialization): time 0.002883/16.03, allocations: 3.024 MB / 8.026 GB, free: 26.37 MB / 1.339 GB Notification: Performance of collectInitialBindings (initialization): time 0.002937/16.03, allocations: 1.432 MB / 8.027 GB, free: 25.42 MB / 1.339 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002696/16.03, allocations: 0 / 8.027 GB, free: 25.42 MB / 1.339 GB Notification: Performance of setup shared object (initialization): time 0.0001955/16.03, allocations: 0.5141 MB / 8.028 GB, free: 25.11 MB / 1.339 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002595/16.04, allocations: 1.905 MB / 8.03 GB, free: 25.09 MB / 1.339 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003107/16.04, allocations: 3.704 MB / 8.033 GB, free: 22.9 MB / 1.339 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004972/16.05, allocations: 2.754 MB / 8.036 GB, free: 22.7 MB / 1.339 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-05/16.05, allocations: 13.88 kB / 8.036 GB, free: 22.7 MB / 1.339 GB Notification: Performance of matching and sorting (n=715) (initialization): time 0.01263/16.06, allocations: 6.915 MB / 8.043 GB, free: 21.75 MB / 1.339 GB Notification: Performance of prepare postOptimizeDAE: time 0.003278/16.06, allocations: 22.15 MB / 8.064 GB, free: 14.25 MB / 1.354 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.418e-05/16.06, allocations: 42.98 kB / 8.064 GB, free: 14.25 MB / 1.354 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002204/16.06, allocations: 0.7216 MB / 8.065 GB, free: 14.18 MB / 1.354 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004979/16.07, allocations: 1.231 MB / 8.066 GB, free: 14.1 MB / 1.354 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007116/16.08, allocations: 7.262 MB / 8.073 GB, free: 8.605 MB / 1.354 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008296/16.08, allocations: 0.6087 MB / 8.074 GB, free: 8.477 MB / 1.354 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004925/16.08, allocations: 273.4 kB / 8.074 GB, free: 8.477 MB / 1.354 GB Notification: Performance of prepare postOptimizeDAE: time 5.56e-06/16.08, allocations: 3.094 kB / 8.074 GB, free: 8.477 MB / 1.354 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01034/16.09, allocations: 5.626 MB / 8.08 GB, free: 8.016 MB / 1.354 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.981e-05/16.09, allocations: 40.78 kB / 8.08 GB, free: 8.016 MB / 1.354 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002163/16.1, allocations: 0.6776 MB / 8.08 GB, free: 7.957 MB / 1.354 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004313/16.1, allocations: 1.196 MB / 8.081 GB, free: 7.875 MB / 1.354 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01083/16.11, allocations: 8.655 MB / 8.09 GB, free: 2.125 MB / 1.354 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007738/16.12, allocations: 0.557 MB / 8.09 GB, free: 2.02 MB / 1.354 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005715/16.12, allocations: 253.4 kB / 8.091 GB, free: 2.02 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: 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.001347/16.12, allocations: 274.7 kB / 8.091 GB, free: 1.801 MB / 1.354 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002422/16.12, allocations: 0.9022 MB / 8.092 GB, free: 1.32 MB / 1.354 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01423/16.14, allocations: 6.092 MB / 8.098 GB, free: 0.8203 MB / 1.354 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.699e-05/16.14, allocations: 49.78 kB / 8.098 GB, free: 0.8164 MB / 1.354 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.778e-05/16.14, allocations: 5.484 kB / 8.098 GB, free: 0.8164 MB / 1.354 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.008758/16.15, allocations: 4.372 MB / 8.102 GB, free: 0.5273 MB / 1.354 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02623/16.17, allocations: 12.99 MB / 8.115 GB, free: 15.64 MB / 1.37 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.151e-05/16.17, allocations: 64 / 8.115 GB, free: 15.64 MB / 1.37 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003774/16.18, allocations: 0.8307 MB / 8.116 GB, free: 15.6 MB / 1.37 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001884/16.18, allocations: 0.6682 MB / 8.116 GB, free: 15.5 MB / 1.37 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002715/16.18, allocations: 77.95 kB / 8.116 GB, free: 15.5 MB / 1.37 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009674/16.19, allocations: 12.87 MB / 8.129 GB, free: 4.555 MB / 1.37 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/16.19, allocations: 0 / 8.129 GB, free: 4.555 MB / 1.37 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01305/16.2, allocations: 8.202 MB / 8.137 GB, free: 3.41 MB / 1.37 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01781/16.22, allocations: 11.68 MB / 8.148 GB, free: 1.871 MB / 1.37 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005424/16.23, allocations: 1.702 MB / 8.15 GB, free: 1.293 MB / 1.37 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001353/16.23, allocations: 26.75 kB / 8.15 GB, free: 1.289 MB / 1.37 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005386/16.23, allocations: 0.5693 MB / 8.151 GB, free: 1.195 MB / 1.37 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004485/16.23, allocations: 248.7 kB / 8.151 GB, free: 1.191 MB / 1.37 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004557/16.23, allocations: 202.7 kB / 8.151 GB, free: 1.191 MB / 1.37 GB Notification: Performance of sort global known variables: time 0.011/16.24, allocations: 5.347 MB / 8.156 GB, free: 14.87 MB / 1.385 GB Notification: Performance of remove unused functions: time 0.02414/16.27, allocations: 6.661 MB / 8.163 GB, free: 8.281 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 (428): * Single equations (assignments): 405 * 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.008785/16.28, allocations: 6.095 MB / 8.169 GB, free: 2.492 MB / 1.385 GB Notification: Performance of simCode: created initialization part: time 0.01495/16.29, allocations: 9.155 MB / 8.178 GB, free: 9.891 MB / 1.401 GB Notification: Performance of simCode: created event and clocks part: time 1.088e-05/16.29, allocations: 6.656 kB / 8.178 GB, free: 9.883 MB / 1.401 GB Notification: Performance of simCode: created simulation system equations: time 0.004482/16.3, allocations: 3.183 MB / 8.181 GB, free: 6.828 MB / 1.401 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01771/16.31, allocations: 4.13 MB / 8.185 GB, free: 3.734 MB / 1.401 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.91/17.22, allocations: 15.31 MB / 8.2 GB, free: 201.2 MB / 1.401 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006462/17.23, allocations: 6.3 MB / 8.206 GB, free: 200.3 MB / 1.401 GB Notification: Performance of SimCode: time 6.11e-07/17.23, allocations: 0 / 8.206 GB, free: 200.3 MB / 1.401 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