Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube,fileNamePrefix="Buildings_8_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_8_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 8.1.4-maint.8.1.x/package.mo): time 1.633/1.633, allocations: 289.8 MB / 297.1 MB, free: 6.668 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001369/0.001369, allocations: 181.2 kB / 366.3 MB, free: 1.988 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.662/1.662, allocations: 205.1 MB / 0.6256 GB, free: 5.844 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009442/0.0009442, allocations: 84.42 kB / 0.7395 GB, free: 39.66 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.2762/0.2771, allocations: 122.5 MB / 0.8591 GB, free: 13.24 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6783/0.9554, allocations: 116.3 MB / 0.9727 GB, free: 68.36 MB / 0.6511 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1957/1.151, allocations: 148.9 MB / 1.118 GB, free: 15.49 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002916/1.152, allocations: 108.5 kB / 1.118 GB, free: 15.38 MB / 0.7292 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.06249/1.214, allocations: 22.43 MB / 1.14 GB, free: 8.887 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 5.588e-05/1.214, allocations: 12 kB / 1.14 GB, free: 8.875 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002542/1.214, allocations: 75.06 kB / 1.14 GB, free: 8.801 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009099/1.215, allocations: 440.7 kB / 1.141 GB, free: 8.332 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.213e-05/1.215, allocations: 16 kB / 1.141 GB, free: 8.316 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.997e-05/1.215, allocations: 32 kB / 1.141 GB, free: 8.285 MB / 0.7448 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007745/1.216, allocations: 313.9 kB / 1.141 GB, free: 7.977 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006634/1.217, allocations: 324.6 kB / 1.141 GB, free: 7.652 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.305e-05/1.217, allocations: 0 / 1.141 GB, free: 7.652 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.218e-05/1.217, allocations: 0 / 1.141 GB, free: 7.652 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.604e-05/1.217, allocations: 15.98 kB / 1.141 GB, free: 7.637 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002586/1.22, allocations: 1.44 MB / 1.143 GB, free: 6.137 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003824/1.22, allocations: 250.9 kB / 1.143 GB, free: 5.883 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000427/1.22, allocations: 286.4 kB / 1.143 GB, free: 5.602 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 2.818e-05/1.22, allocations: 5.406 kB / 1.143 GB, free: 5.598 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.225e-05/1.221, allocations: 30.56 kB / 1.143 GB, free: 5.559 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=42): time 1.864e-06/1.221, allocations: 0 / 1.143 GB, free: 5.559 MB / 0.7448 GB Notification: Performance of matching and sorting (n=42): time 0.0006123/1.221, allocations: 317.5 kB / 1.144 GB, free: 5.242 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.252e-05/1.221, allocations: 59.19 kB / 1.144 GB, free: 5.172 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005062/1.222, allocations: 365.2 kB / 1.144 GB, free: 4.809 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 2.594e-05/1.222, allocations: 29.7 kB / 1.144 GB, free: 4.773 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 0.000132/1.222, allocations: 216.2 kB / 1.144 GB, free: 4.559 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001288/1.222, allocations: 137.9 kB / 1.144 GB, free: 4.422 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.477e-05/1.222, allocations: 0 / 1.144 GB, free: 4.422 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0001575/1.222, allocations: 362.7 kB / 1.145 GB, free: 4.059 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001832/1.222, allocations: 96.75 kB / 1.145 GB, free: 3.961 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001626/1.223, allocations: 97.12 kB / 1.145 GB, free: 3.867 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002003/1.223, allocations: 126.3 kB / 1.145 GB, free: 3.746 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/1.223, allocations: 0 / 1.145 GB, free: 3.746 MB / 0.7448 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0005966/1.223, allocations: 333.3 kB / 1.145 GB, free: 3.414 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 1.81e-05/1.223, allocations: 4 kB / 1.145 GB, free: 3.41 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.795e-06/1.223, allocations: 1.328 kB / 1.145 GB, free: 3.41 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.923e-05/1.223, allocations: 4 kB / 1.145 GB, free: 3.406 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005995/1.224, allocations: 127.9 kB / 1.145 GB, free: 3.281 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.407e-05/1.224, allocations: 0 / 1.145 GB, free: 3.281 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003397/1.224, allocations: 47.66 kB / 1.145 GB, free: 3.234 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.284e-05/1.224, allocations: 12 kB / 1.146 GB, free: 3.223 MB / 0.7448 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 0.0001184/1.225, allocations: 109.7 kB / 1.146 GB, free: 3.109 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.204e-05/1.225, allocations: 47.44 kB / 1.146 GB, free: 3.062 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001161/1.225, allocations: 48.66 kB / 1.146 GB, free: 3.016 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.073e-06/1.225, allocations: 4 kB / 1.146 GB, free: 3.012 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.797e-06/1.225, allocations: 4 kB / 1.146 GB, free: 3.008 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.248e-06/1.225, allocations: 7.922 kB / 1.146 GB, free: 3 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006608/1.226, allocations: 0.4937 MB / 1.146 GB, free: 2.469 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.505e-06/1.226, allocations: 0 / 1.146 GB, free: 2.469 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005815/1.226, allocations: 131.9 kB / 1.146 GB, free: 2.34 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.147e-05/1.226, allocations: 8.484 kB / 1.146 GB, free: 2.332 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.232e-05/1.226, allocations: 4 kB / 1.146 GB, free: 2.328 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.256e-06/1.226, allocations: 0 / 1.146 GB, free: 2.328 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.427e-06/1.226, allocations: 0 / 1.146 GB, free: 2.328 MB / 0.7448 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0008182/1.227, allocations: 0.5768 MB / 1.147 GB, free: 1.734 MB / 0.7448 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001148/1.228, allocations: 1.113 MB / 1.148 GB, free: 0.6016 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001733/1.228, allocations: 136.5 kB / 1.148 GB, free: 460 kB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.73e-05/1.228, allocations: 4 kB / 1.148 GB, free: 456 kB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002751/1.229, allocations: 23.88 kB / 1.148 GB, free: 432 kB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.647e-05/1.229, allocations: 27.97 kB / 1.148 GB, free: 404 kB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.808e-05/1.229, allocations: 4 kB / 1.148 GB, free: 400 kB / 0.7448 GB Notification: Performance of sort global known variables: time 0.0003741/1.229, allocations: 295.2 kB / 1.148 GB, free: 104 kB / 0.7448 GB Notification: Performance of remove unused functions: time 0.001312/1.231, allocations: 151.6 kB / 1.149 GB, free: 15.95 MB / 0.7605 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.0004584/1.231, allocations: 258.3 kB / 1.149 GB, free: 15.7 MB / 0.7605 GB Notification: Performance of simCode: created initialization part: time 0.0004941/1.232, allocations: 272.2 kB / 1.149 GB, free: 15.44 MB / 0.7605 GB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/1.232, allocations: 0 / 1.149 GB, free: 15.44 MB / 0.7605 GB Notification: Performance of simCode: created simulation system equations: time 0.0002313/1.232, allocations: 159.9 kB / 1.149 GB, free: 15.28 MB / 0.7605 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000601/1.232, allocations: 84.94 kB / 1.149 GB, free: 15.2 MB / 0.7605 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00212/1.235, allocations: 0.8961 MB / 1.15 GB, free: 14.28 MB / 0.7605 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006688/1.235, allocations: 0.9325 MB / 1.151 GB, free: 13.31 MB / 0.7605 GB Notification: Performance of SimCode: time 4.61e-07/1.235, allocations: 0 / 1.151 GB, free: 13.31 MB / 0.7605 GB (rm -f Buildings_8_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe ; mkfifo Buildings_8_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe >> ../files/Buildings_8_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesTwoUTube_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesTwoUTube.fmu > Buildings_8_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe 2>&1)