Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube,fileNamePrefix="Buildings_latest_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesTwoUTube",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube,fileNamePrefix="Buildings_latest_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesTwoUTube",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 10.0.0-master/package.mo): time 2.189/2.189, allocations: 390.4 MB / 397.7 MB, free: 10.66 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.001253/0.001253, allocations: 184.9 kB / 490.8 MB, free: 11.18 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.619/1.619, allocations: 221.4 MB / 0.7863 GB, free: 13.53 MB / 0.5886 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001336/0.001336, allocations: 87.28 kB / 0.9264 GB, free: 4.512 MB / 0.6667 GB Notification: Performance of FrontEnd - loaded program: time 0.4471/0.4485, allocations: 149.2 MB / 1.072 GB, free: 15.4 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9376/1.386, allocations: 143 MB / 1.212 GB, free: 155.9 MB / 0.8855 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2136/1.6, allocations: 160 MB / 1.368 GB, free: 31.57 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003096/1.6, allocations: 107.9 kB / 1.368 GB, free: 31.47 MB / 0.8855 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 122 * Number of variables: 122 Notification: Performance of Generate backend data structure: time 0.05365/1.654, allocations: 22.48 MB / 1.39 GB, free: 9.113 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 4.349e-05/1.654, allocations: 11.98 kB / 1.39 GB, free: 9.102 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001004/1.654, allocations: 71.16 kB / 1.39 GB, free: 9.031 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000526/1.655, allocations: 432.8 kB / 1.39 GB, free: 8.566 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.982e-05/1.655, allocations: 16 kB / 1.39 GB, free: 8.551 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.967e-05/1.655, allocations: 31.91 kB / 1.391 GB, free: 8.52 MB / 0.8855 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005226/1.655, allocations: 302 kB / 1.391 GB, free: 8.227 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005158/1.656, allocations: 328.6 kB / 1.391 GB, free: 7.898 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.952e-05/1.656, allocations: 4 kB / 1.391 GB, free: 7.895 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.987e-05/1.656, allocations: 0 / 1.391 GB, free: 7.895 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.339e-05/1.656, allocations: 12 kB / 1.391 GB, free: 7.883 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001724/1.657, allocations: 1.456 MB / 1.393 GB, free: 6.367 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003079/1.658, allocations: 250.8 kB / 1.393 GB, free: 6.113 MB / 0.8855 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003076/1.658, allocations: 270.7 kB / 1.393 GB, free: 5.848 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 2.64e-05/1.658, allocations: 8 kB / 1.393 GB, free: 5.84 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.112e-05/1.658, allocations: 39.33 kB / 1.393 GB, free: 5.793 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=42): time 1.423e-06/1.658, allocations: 0 / 1.393 GB, free: 5.793 MB / 0.8855 GB Notification: Performance of matching and sorting (n=42): time 0.0005/1.659, allocations: 309.3 kB / 1.393 GB, free: 5.484 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.691e-05/1.659, allocations: 62.53 kB / 1.393 GB, free: 5.414 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004156/1.659, allocations: 369.2 kB / 1.394 GB, free: 5.055 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 2.017e-05/1.659, allocations: 25.7 kB / 1.394 GB, free: 5.023 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 8.545e-05/1.659, allocations: 220.1 kB / 1.394 GB, free: 4.805 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 9.512e-05/1.659, allocations: 149.8 kB / 1.394 GB, free: 4.656 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.325e-05/1.659, allocations: 0 / 1.394 GB, free: 4.656 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001039/1.659, allocations: 350.8 kB / 1.395 GB, free: 4.305 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001456/1.66, allocations: 100.8 kB / 1.395 GB, free: 4.203 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00014/1.66, allocations: 101.1 kB / 1.395 GB, free: 4.105 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001684/1.66, allocations: 114.3 kB / 1.395 GB, free: 3.996 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/1.66, allocations: 3.906 kB / 1.395 GB, free: 3.992 MB / 0.8855 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0004306/1.66, allocations: 336.6 kB / 1.395 GB, free: 3.656 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.673e-05/1.66, allocations: 4 kB / 1.395 GB, free: 3.652 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.732e-06/1.66, allocations: 4 kB / 1.395 GB, free: 3.648 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.714e-05/1.66, allocations: 0 / 1.395 GB, free: 3.648 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005286/1.661, allocations: 127.9 kB / 1.395 GB, free: 3.523 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.004e-05/1.661, allocations: 4 kB / 1.395 GB, free: 3.52 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002518/1.661, allocations: 43.66 kB / 1.395 GB, free: 3.477 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.221e-05/1.661, allocations: 11.94 kB / 1.395 GB, free: 3.465 MB / 0.8855 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.935e-05/1.661, allocations: 109.6 kB / 1.395 GB, free: 3.352 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.648e-05/1.661, allocations: 51.34 kB / 1.395 GB, free: 3.301 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.895e-05/1.662, allocations: 52.66 kB / 1.396 GB, free: 3.246 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.312e-06/1.662, allocations: 4 kB / 1.396 GB, free: 3.242 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.362e-06/1.662, allocations: 0 / 1.396 GB, free: 3.242 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.392e-06/1.662, allocations: 3.984 kB / 1.396 GB, free: 3.238 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005026/1.662, allocations: 0.4937 MB / 1.396 GB, free: 2.707 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/1.662, allocations: 0 / 1.396 GB, free: 2.707 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005164/1.663, allocations: 123.9 kB / 1.396 GB, free: 2.586 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.55e-06/1.663, allocations: 10.06 kB / 1.396 GB, free: 2.578 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.64e-05/1.663, allocations: 3.984 kB / 1.396 GB, free: 2.574 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.645e-06/1.663, allocations: 7.938 kB / 1.396 GB, free: 2.566 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/1.663, allocations: 0 / 1.396 GB, free: 2.566 MB / 0.8855 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006493/1.663, allocations: 0.5768 MB / 1.397 GB, free: 1.973 MB / 0.8855 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.000826/1.664, allocations: 1.113 MB / 1.398 GB, free: 0.8398 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 9.077e-05/1.664, allocations: 134.6 kB / 1.398 GB, free: 0.6914 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.225e-05/1.664, allocations: 0 / 1.398 GB, free: 0.6914 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002365/1.665, allocations: 15.98 kB / 1.398 GB, free: 0.6758 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.655e-05/1.665, allocations: 19.97 kB / 1.398 GB, free: 0.6562 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.879e-05/1.665, allocations: 19.91 kB / 1.398 GB, free: 0.6367 MB / 0.8855 GB Notification: Performance of sort global known variables: time 0.0002545/1.665, allocations: 291.2 kB / 1.398 GB, free: 364 kB / 0.8855 GB Notification: Performance of remove unused functions: time 0.001046/1.666, allocations: 143.5 kB / 1.398 GB, free: 220 kB / 0.8855 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (intRes2UTub.capFil1.T,intRes2UTub.capFil2.T,intRes2UTub.capFil3.T,intRes2UTub.capFil4.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 42 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000462/1.666, allocations: 266.7 kB / 1.399 GB, free: 15.95 MB / 0.9011 GB Notification: Performance of simCode: created initialization part: time 0.0005097/1.667, allocations: 284.1 kB / 1.399 GB, free: 15.68 MB / 0.9011 GB Notification: Performance of simCode: created event and clocks part: time 1.873e-06/1.667, allocations: 0 / 1.399 GB, free: 15.68 MB / 0.9011 GB Notification: Performance of simCode: created simulation system equations: time 0.000223/1.667, allocations: 161.2 kB / 1.399 GB, free: 15.52 MB / 0.9011 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006072/1.668, allocations: 77.7 kB / 1.399 GB, free: 15.45 MB / 0.9011 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001829/1.67, allocations: 0.8891 MB / 1.4 GB, free: 14.53 MB / 0.9011 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006646/1.67, allocations: 0.9325 MB / 1.401 GB, free: 13.57 MB / 0.9011 GB Notification: Performance of SimCode: time 3.21e-07/1.67, allocations: 0 / 1.401 GB, free: 13.57 MB / 0.9011 GB (rm -f Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe >> ../files/Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesTwoUTube_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesTwoUTube.fmu > Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube_res.mat does not exist to compare? outputFormat=mat