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"}) [: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.694/1.694, allocations: 387.3 MB / 394.5 MB, free: 13.23 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009853/0.0009854, allocations: 180.8 kB / 487 MB, free: 0.6836 MB / 378.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.073/1.073, allocations: 221.3 MB / 0.7819 GB, free: 6.699 MB / 0.573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008355/0.0008355, allocations: 94.64 kB / 0.9213 GB, free: 43.64 MB / 0.6198 GB Notification: Performance of FrontEnd - loaded program: time 0.2086/0.2095, allocations: 148.5 MB / 1.066 GB, free: 7.449 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.474/0.6835, allocations: 142.3 MB / 1.205 GB, free: 72.71 MB / 0.7917 GB Notification: Performance of FrontEnd - scodeFlatten: time 3.106/3.789, allocations: 2.241 GB / 3.447 GB, free: 284 MB / 1.167 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001992/3.79, allocations: 92.53 kB / 3.447 GB, free: 284 MB / 1.167 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 11.57/15.36, allocations: 4.467 GB / 7.913 GB, free: 12.02 MB / 1.323 GB Notification: Performance of prepare preOptimizeDAE: time 3.088e-05/15.36, allocations: 8 kB / 7.913 GB, free: 12.01 MB / 1.323 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009267/15.37, allocations: 1.882 MB / 7.915 GB, free: 10.11 MB / 1.323 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0309/15.4, allocations: 13.31 MB / 7.928 GB, free: 12.7 MB / 1.339 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004104/15.4, allocations: 232 kB / 7.928 GB, free: 12.48 MB / 1.339 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002296/15.4, allocations: 455.9 kB / 7.929 GB, free: 12.03 MB / 1.339 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01457/15.41, allocations: 6.224 MB / 7.935 GB, free: 5.801 MB / 1.339 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01753/15.43, allocations: 7.067 MB / 7.942 GB, free: 14.45 MB / 1.354 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002612/15.43, allocations: 19.88 kB / 7.942 GB, free: 14.43 MB / 1.354 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001422/15.43, allocations: 12 kB / 7.942 GB, free: 14.41 MB / 1.354 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002594/15.43, allocations: 305.3 kB / 7.942 GB, free: 14.11 MB / 1.354 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.9394/16.37, allocations: 41.17 MB / 7.982 GB, free: 145.6 MB / 1.354 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003431/16.38, allocations: 2.628 MB / 7.985 GB, free: 145.5 MB / 1.354 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002842/16.38, allocations: 2.455 MB / 7.987 GB, free: 145.5 MB / 1.354 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01691/16.4, allocations: 9.765 MB / 7.997 GB, free: 142.8 MB / 1.354 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002909/16.4, allocations: 2.363 MB / 7.999 GB, free: 142.7 MB / 1.354 GB Notification: Performance of pre-optimization done (n=412): time 5.33e-06/16.4, allocations: 0 / 7.999 GB, free: 142.7 MB / 1.354 GB Notification: Performance of matching and sorting (n=417): time 0.0262/16.43, allocations: 11.33 MB / 8.01 GB, free: 140.3 MB / 1.354 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.433e-05/16.43, allocations: 311.2 kB / 8.01 GB, free: 140 MB / 1.354 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008882/16.44, allocations: 6.701 MB / 8.017 GB, free: 139.5 MB / 1.354 GB Notification: Performance of collectPreVariables (initialization): time 0.0007884/16.44, allocations: 36.52 kB / 8.017 GB, free: 139.4 MB / 1.354 GB Notification: Performance of collectInitialEqns (initialization): time 0.00309/16.44, allocations: 2.963 MB / 8.02 GB, free: 138.4 MB / 1.354 GB Notification: Performance of collectInitialBindings (initialization): time 0.00303/16.44, allocations: 1.393 MB / 8.021 GB, free: 137.7 MB / 1.354 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002855/16.44, allocations: 0 / 8.021 GB, free: 137.7 MB / 1.354 GB Notification: Performance of setup shared object (initialization): time 0.0002042/16.44, allocations: 0.5178 MB / 8.022 GB, free: 137.4 MB / 1.354 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002547/16.45, allocations: 1.868 MB / 8.023 GB, free: 137.4 MB / 1.354 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003112/16.45, allocations: 3.635 MB / 8.027 GB, free: 135.3 MB / 1.354 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004982/16.45, allocations: 2.714 MB / 8.03 GB, free: 135.2 MB / 1.354 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.824e-05/16.45, allocations: 14.25 kB / 8.03 GB, free: 135.2 MB / 1.354 GB Notification: Performance of matching and sorting (n=700) (initialization): time 0.01276/16.47, allocations: 6.807 MB / 8.036 GB, free: 134.4 MB / 1.354 GB Notification: Performance of prepare postOptimizeDAE: time 0.003057/16.47, allocations: 21.93 MB / 8.058 GB, free: 111.2 MB / 1.354 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.469e-05/16.47, allocations: 40 kB / 8.058 GB, free: 111.2 MB / 1.354 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00219/16.47, allocations: 0.7241 MB / 8.058 GB, free: 111.2 MB / 1.354 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005116/16.48, allocations: 1.205 MB / 8.06 GB, free: 111.2 MB / 1.354 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006315/16.48, allocations: 7.212 MB / 8.067 GB, free: 105.8 MB / 1.354 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009269/16.49, allocations: 0.5924 MB / 8.067 GB, free: 105.7 MB / 1.354 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001155/16.49, allocations: 268.4 kB / 8.068 GB, free: 105.7 MB / 1.354 GB Notification: Performance of prepare postOptimizeDAE: time 7.915e-06/16.49, allocations: 3.969 kB / 8.068 GB, free: 105.7 MB / 1.354 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01227/16.51, allocations: 5.548 MB / 8.073 GB, free: 105.5 MB / 1.354 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.309e-05/16.51, allocations: 37.84 kB / 8.073 GB, free: 105.5 MB / 1.354 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002205/16.51, allocations: 0.6755 MB / 8.074 GB, free: 105.5 MB / 1.354 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004487/16.51, allocations: 1.171 MB / 8.075 GB, free: 105.5 MB / 1.354 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01012/16.52, allocations: 8.591 MB / 8.083 GB, free: 99.85 MB / 1.354 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008457/16.53, allocations: 0.5492 MB / 8.084 GB, free: 99.82 MB / 1.354 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001094/16.53, allocations: 255.7 kB / 8.084 GB, free: 99.82 MB / 1.354 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.001911/16.53, allocations: 263.5 kB / 8.084 GB, free: 99.71 MB / 1.354 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00276/16.54, allocations: 0.886 MB / 8.085 GB, free: 99.23 MB / 1.354 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01367/16.55, allocations: 6.015 MB / 8.091 GB, free: 98.89 MB / 1.354 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.967e-05/16.55, allocations: 46.38 kB / 8.091 GB, free: 98.89 MB / 1.354 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.185e-05/16.55, allocations: 3.188 kB / 8.091 GB, free: 98.89 MB / 1.354 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.007665/16.56, allocations: 4.291 MB / 8.095 GB, free: 98.64 MB / 1.354 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02906/16.59, allocations: 12.78 MB / 8.108 GB, free: 97.96 MB / 1.354 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.191e-05/16.59, allocations: 3.062 kB / 8.108 GB, free: 97.96 MB / 1.354 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00377/16.59, allocations: 0.8089 MB / 8.108 GB, free: 97.96 MB / 1.354 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001968/16.59, allocations: 0.6639 MB / 8.109 GB, free: 97.88 MB / 1.354 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004173/16.59, allocations: 81.34 kB / 8.109 GB, free: 97.88 MB / 1.354 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00783/16.6, allocations: 12.87 MB / 8.122 GB, free: 87.05 MB / 1.354 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.898e-06/16.6, allocations: 0 / 8.122 GB, free: 87.05 MB / 1.354 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01484/16.62, allocations: 8.044 MB / 8.13 GB, free: 86 MB / 1.354 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01572/16.63, allocations: 11.48 MB / 8.141 GB, free: 84.56 MB / 1.354 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004639/16.64, allocations: 1.683 MB / 8.142 GB, free: 83.98 MB / 1.354 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001724/16.64, allocations: 27.36 kB / 8.143 GB, free: 83.98 MB / 1.354 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005914/16.64, allocations: 0.5557 MB / 8.143 GB, free: 83.96 MB / 1.354 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003816/16.64, allocations: 245.6 kB / 8.143 GB, free: 83.96 MB / 1.354 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004121/16.65, allocations: 199.6 kB / 8.143 GB, free: 83.96 MB / 1.354 GB Notification: Performance of sort global known variables: time 0.007033/16.65, allocations: 4.959 MB / 8.148 GB, free: 83.67 MB / 1.354 GB Notification: Performance of remove unused functions: time 0.02307/16.68, allocations: 6.627 MB / 8.155 GB, free: 83.67 MB / 1.354 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 (415): * Single equations (assignments): 392 * 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.008311/16.68, allocations: 6.098 MB / 8.161 GB, free: 81.59 MB / 1.354 GB Notification: Performance of simCode: created initialization part: time 0.01374/16.7, allocations: 8.981 MB / 8.17 GB, free: 80.73 MB / 1.354 GB Notification: Performance of simCode: created event and clocks part: time 9.868e-06/16.7, allocations: 4.906 kB / 8.17 GB, free: 80.72 MB / 1.354 GB Notification: Performance of simCode: created simulation system equations: time 0.004016/16.7, allocations: 3.128 MB / 8.173 GB, free: 79.91 MB / 1.354 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01822/16.72, allocations: 4.097 MB / 8.177 GB, free: 79.86 MB / 1.354 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02882/16.75, allocations: 15.07 MB / 8.191 GB, free: 76.62 MB / 1.354 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006593/16.76, allocations: 6.225 MB / 8.197 GB, free: 75.7 MB / 1.354 GB Notification: Performance of SimCode: time 1.112e-06/16.76, allocations: 3.906 kB / 8.197 GB, free: 75.7 MB / 1.354 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