Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Examples.Tutorial.CDL.System1.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.System1,fileNamePrefix="Buildings_9_Buildings_Examples_Tutorial_CDL_System1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.Tutorial.CDL.System1,fileNamePrefix="Buildings_9_Buildings_Examples_Tutorial_CDL_System1",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.771/1.771, allocations: 387.2 MB / 394.5 MB, free: 13.65 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.0009323/0.0009323, allocations: 191.7 kB / 487 MB, free: 5.406 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.128/1.128, allocations: 221.3 MB / 0.7819 GB, free: 1.383 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.0007876/0.0007876, allocations: 86.7 kB / 0.9213 GB, free: 2.637 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.3965/0.3973, allocations: 148.4 MB / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1747/0.572, allocations: 142.3 MB / 1.205 GB, free: 26.17 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 3.105/3.677, allocations: 2.24 GB / 3.445 GB, free: 53.59 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002216/3.677, allocations: 95.88 kB / 3.445 GB, free: 53.5 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: 1794 * Number of variables: 1794 Notification: Performance of Generate backend data structure: time 11.91/15.59, allocations: 4.466 GB / 7.911 GB, free: 60.41 MB / 1.339 GB Notification: Performance of prepare preOptimizeDAE: time 3.405e-05/15.59, allocations: 11.8 kB / 7.911 GB, free: 60.41 MB / 1.339 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01044/15.6, allocations: 1.877 MB / 7.913 GB, free: 59.72 MB / 1.339 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0331/15.63, allocations: 13.3 MB / 7.926 GB, free: 57.81 MB / 1.339 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002286/15.63, allocations: 219.9 kB / 7.926 GB, free: 57.81 MB / 1.339 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00141/15.63, allocations: 449.4 kB / 7.927 GB, free: 57.8 MB / 1.339 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0103/15.64, allocations: 6.201 MB / 7.933 GB, free: 57.77 MB / 1.339 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01009/15.65, allocations: 7.016 MB / 7.939 GB, free: 56.81 MB / 1.339 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000145/15.65, allocations: 19.38 kB / 7.939 GB, free: 56.8 MB / 1.339 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000564/15.65, allocations: 11.78 kB / 7.939 GB, free: 56.8 MB / 1.339 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001934/15.65, allocations: 300.9 kB / 7.94 GB, free: 56.78 MB / 1.339 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04685/15.7, allocations: 41.05 MB / 7.98 GB, free: 34.71 MB / 1.339 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003663/15.71, allocations: 2.631 MB / 7.982 GB, free: 34.65 MB / 1.339 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003226/15.71, allocations: 2.445 MB / 7.985 GB, free: 34.6 MB / 1.339 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01852/15.73, allocations: 9.745 MB / 7.994 GB, free: 31.74 MB / 1.339 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003382/15.73, allocations: 2.358 MB / 7.997 GB, free: 31.61 MB / 1.339 GB Notification: Performance of pre-optimization done (n=412): time 6.522e-06/15.73, allocations: 0 / 7.997 GB, free: 31.61 MB / 1.339 GB Notification: Performance of matching and sorting (n=417): time 0.02835/15.76, allocations: 11.32 MB / 8.008 GB, free: 29.03 MB / 1.339 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.492e-05/15.76, allocations: 307.4 kB / 8.008 GB, free: 28.71 MB / 1.339 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0126/15.77, allocations: 6.678 MB / 8.014 GB, free: 28.14 MB / 1.339 GB Notification: Performance of collectPreVariables (initialization): time 0.0004693/15.77, allocations: 37.67 kB / 8.015 GB, free: 28.11 MB / 1.339 GB Notification: Performance of collectInitialEqns (initialization): time 0.003809/15.78, allocations: 2.949 MB / 8.017 GB, free: 26.63 MB / 1.339 GB Notification: Performance of collectInitialBindings (initialization): time 0.002776/15.78, allocations: 1.393 MB / 8.019 GB, free: 25.7 MB / 1.339 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003242/15.78, allocations: 0 / 8.019 GB, free: 25.7 MB / 1.339 GB Notification: Performance of setup shared object (initialization): time 0.0002409/15.78, allocations: 0.5096 MB / 8.019 GB, free: 25.39 MB / 1.339 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002708/15.78, allocations: 1.872 MB / 8.021 GB, free: 25.37 MB / 1.339 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003463/15.79, allocations: 3.643 MB / 8.025 GB, free: 23.2 MB / 1.339 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005297/15.79, allocations: 2.705 MB / 8.027 GB, free: 22.99 MB / 1.339 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.916e-05/15.79, allocations: 11.78 kB / 8.027 GB, free: 22.99 MB / 1.339 GB Notification: Performance of matching and sorting (n=699) (initialization): time 0.01372/15.8, allocations: 6.799 MB / 8.034 GB, free: 22.05 MB / 1.339 GB Notification: Performance of prepare postOptimizeDAE: time 0.003904/15.81, allocations: 22.16 MB / 8.056 GB, free: 14.42 MB / 1.354 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.258e-05/15.81, allocations: 42.56 kB / 8.056 GB, free: 14.42 MB / 1.354 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002299/15.81, allocations: 0.7314 MB / 8.056 GB, free: 14.35 MB / 1.354 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005086/15.82, allocations: 1.203 MB / 8.058 GB, free: 14.27 MB / 1.354 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007248/15.82, allocations: 7.227 MB / 8.065 GB, free: 8.781 MB / 1.354 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00868/15.83, allocations: 0.5875 MB / 8.065 GB, free: 8.66 MB / 1.354 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008731/15.83, allocations: 265.3 kB / 8.065 GB, free: 8.66 MB / 1.354 GB Notification: Performance of prepare postOptimizeDAE: time 7.825e-06/15.83, allocations: 3 kB / 8.065 GB, free: 8.66 MB / 1.354 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01207/15.84, allocations: 5.544 MB / 8.071 GB, free: 8.195 MB / 1.354 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.782e-05/15.84, allocations: 40.69 kB / 8.071 GB, free: 8.195 MB / 1.354 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002156/15.85, allocations: 0.6873 MB / 8.072 GB, free: 8.137 MB / 1.354 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004772/15.85, allocations: 1.172 MB / 8.073 GB, free: 8.055 MB / 1.354 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01119/15.86, allocations: 8.597 MB / 8.081 GB, free: 2.32 MB / 1.354 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008581/15.87, allocations: 0.5568 MB / 8.082 GB, free: 2.211 MB / 1.354 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001057/15.87, allocations: 255 kB / 8.082 GB, free: 2.211 MB / 1.354 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 179 * 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 (642): * Single equations (assignments): 634 * 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.002006/15.87, allocations: 271.8 kB / 8.082 GB, free: 1.992 MB / 1.354 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00284/15.88, allocations: 0.8815 MB / 8.083 GB, free: 1.523 MB / 1.354 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01543/15.89, allocations: 6.007 MB / 8.089 GB, free: 1.023 MB / 1.354 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.074e-05/15.89, allocations: 44.5 kB / 8.089 GB, free: 1.023 MB / 1.354 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.24e-05/15.89, allocations: 2.469 kB / 8.089 GB, free: 1.023 MB / 1.354 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.009016/15.9, allocations: 4.293 MB / 8.093 GB, free: 0.7344 MB / 1.354 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03173/15.93, allocations: 12.75 MB / 8.106 GB, free: 15.91 MB / 1.37 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.215e-05/15.93, allocations: 4.766 kB / 8.106 GB, free: 15.91 MB / 1.37 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00407/15.94, allocations: 0.8114 MB / 8.106 GB, free: 15.86 MB / 1.37 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002156/15.94, allocations: 0.6658 MB / 8.107 GB, free: 15.77 MB / 1.37 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004289/15.94, allocations: 80.2 kB / 8.107 GB, free: 15.76 MB / 1.37 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01034/15.95, allocations: 12.85 MB / 8.12 GB, free: 4.828 MB / 1.37 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.115e-06/15.95, allocations: 0 / 8.12 GB, free: 4.828 MB / 1.37 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01398/15.96, allocations: 8.036 MB / 8.127 GB, free: 3.711 MB / 1.37 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01838/15.98, allocations: 11.48 MB / 8.139 GB, free: 2.191 MB / 1.37 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006019/15.99, allocations: 1.682 MB / 8.14 GB, free: 1.617 MB / 1.37 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002876/15.99, allocations: 20.59 kB / 8.14 GB, free: 1.617 MB / 1.37 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007734/16, allocations: 0.5556 MB / 8.141 GB, free: 1.527 MB / 1.37 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000487/16, allocations: 246 kB / 8.141 GB, free: 1.523 MB / 1.37 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006277/16, allocations: 201.2 kB / 8.141 GB, free: 1.52 MB / 1.37 GB Notification: Performance of sort global known variables: time 0.01147/16.01, allocations: 4.949 MB / 8.146 GB, free: 0.543 MB / 1.37 GB Notification: Performance of remove unused functions: time 0.02752/16.04, allocations: 6.621 MB / 8.153 GB, free: 11.36 MB / 1.385 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.01034/16.05, allocations: 6.104 MB / 8.159 GB, free: 5.562 MB / 1.385 GB Notification: Performance of simCode: created initialization part: time 0.0169/16.07, allocations: 8.956 MB / 8.167 GB, free: 13.15 MB / 1.401 GB Notification: Performance of simCode: created event and clocks part: time 1.065e-05/16.07, allocations: 10.09 kB / 8.167 GB, free: 13.14 MB / 1.401 GB Notification: Performance of simCode: created simulation system equations: time 0.005147/16.07, allocations: 3.135 MB / 8.17 GB, free: 10.14 MB / 1.401 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02016/16.09, allocations: 4.109 MB / 8.174 GB, free: 7.039 MB / 1.401 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.9852/17.08, allocations: 16.02 MB / 8.19 GB, free: 200.2 MB / 1.401 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007365/17.09, allocations: 6.206 MB / 8.196 GB, free: 199.2 MB / 1.401 GB Notification: Performance of SimCode: time 1.102e-06/17.09, allocations: 0 / 8.196 GB, free: 199.2 MB / 1.401 GB (rm -f Buildings_9_Buildings.Examples.Tutorial.CDL.System1.pipe ; mkfifo Buildings_9_Buildings.Examples.Tutorial.CDL.System1.pipe ; head -c 1048576 < Buildings_9_Buildings.Examples.Tutorial.CDL.System1.pipe >> ../files/Buildings_9_Buildings.Examples.Tutorial.CDL.System1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Examples.Tutorial.CDL.System1_res.mat --tempDir=temp_Buildings_9_Buildings_Examples_Tutorial_CDL_System1_fmu --startTime=1.296e+06 --stopTime=1.3824e+06 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Examples_Tutorial_CDL_System1.fmu > Buildings_9_Buildings.Examples.Tutorial.CDL.System1.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Examples.Tutorial.CDL.System1_res.mat does not exist to compare? outputFormat=mat