Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: "" <> buildModelFMU(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesTwoUTube",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube,fileNamePrefix="BuildingSystems_BuildingSystems_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/BuildingSystems 2.0.0-master/package.mo): time 0.7875/0.7875, allocations: 141.8 MB / 149.1 MB, free: 1.77 MB / 122.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001091/0.001091, allocations: 177.3 kB / 181.9 MB, free: 1.238 MB / 154.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.324/1.324, allocations: 221.3 MB / 436 MB, free: 5.973 MB / 330.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009407/0.0009409, allocations: 96.55 kB / 0.507 GB, free: 2.648 MB / 410.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001763/0.001763, allocations: 267.8 kB / 0.5884 GB, free: 47.72 MB / 410.9 MB Notification: Performance of FrontEnd - loaded program: time 0.4145/0.4163, allocations: 89.68 MB / 0.676 GB, free: 59.91 MB / 442.9 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1774/0.5937, allocations: 82.79 MB / 0.7569 GB, free: 1.031 MB / 442.9 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5326/1.126, allocations: 118.5 MB / 0.8726 GB, free: 26.97 MB / 0.5419 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002803/1.127, allocations: 112.2 kB / 0.8727 GB, free: 26.97 MB / 0.5419 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.05441/1.181, allocations: 22.45 MB / 0.8946 GB, free: 24.9 MB / 0.5419 GB Notification: Performance of prepare preOptimizeDAE: time 4.389e-05/1.181, allocations: 7.75 kB / 0.8946 GB, free: 24.9 MB / 0.5419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002029/1.181, allocations: 76.22 kB / 0.8947 GB, free: 24.86 MB / 0.5419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007078/1.182, allocations: 433.8 kB / 0.8951 GB, free: 24.59 MB / 0.5419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.264e-05/1.182, allocations: 23.25 kB / 0.8951 GB, free: 24.59 MB / 0.5419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.146e-05/1.182, allocations: 26.78 kB / 0.8952 GB, free: 24.59 MB / 0.5419 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005771/1.183, allocations: 305.7 kB / 0.8954 GB, free: 24.59 MB / 0.5419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005596/1.183, allocations: 329.6 kB / 0.8958 GB, free: 24.54 MB / 0.5419 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.315e-05/1.183, allocations: 0 / 0.8958 GB, free: 24.54 MB / 0.5419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.157e-05/1.183, allocations: 0 / 0.8958 GB, free: 24.54 MB / 0.5419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.38e-05/1.183, allocations: 15.38 kB / 0.8958 GB, free: 24.54 MB / 0.5419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002065/1.186, allocations: 1.455 MB / 0.8972 GB, free: 24.07 MB / 0.5419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003279/1.186, allocations: 262.1 kB / 0.8974 GB, free: 24.04 MB / 0.5419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003143/1.186, allocations: 275.1 kB / 0.8977 GB, free: 24.02 MB / 0.5419 GB Notification: Performance of preOpt evalFunc (simulation): time 2.365e-05/1.186, allocations: 7.75 kB / 0.8977 GB, free: 24.02 MB / 0.5419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.308e-05/1.186, allocations: 30.56 kB / 0.8977 GB, free: 23.98 MB / 0.5419 GB Notification: Performance of pre-optimization done (n=42): time 1.684e-06/1.186, allocations: 0 / 0.8977 GB, free: 23.98 MB / 0.5419 GB Notification: Performance of matching and sorting (n=42): time 0.0005199/1.187, allocations: 315.2 kB / 0.898 GB, free: 23.92 MB / 0.5419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.73e-05/1.187, allocations: 63.09 kB / 0.8981 GB, free: 23.85 MB / 0.5419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004451/1.187, allocations: 369.4 kB / 0.8985 GB, free: 23.74 MB / 0.5419 GB Notification: Performance of collectPreVariables (initialization): time 2.39e-05/1.187, allocations: 25.7 kB / 0.8985 GB, free: 23.71 MB / 0.5419 GB Notification: Performance of collectInitialEqns (initialization): time 8.891e-05/1.187, allocations: 212 kB / 0.8987 GB, free: 23.57 MB / 0.5419 GB Notification: Performance of collectInitialBindings (initialization): time 9.605e-05/1.187, allocations: 137.8 kB / 0.8988 GB, free: 23.48 MB / 0.5419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.434e-05/1.188, allocations: 0 / 0.8988 GB, free: 23.48 MB / 0.5419 GB Notification: Performance of setup shared object (initialization): time 9.886e-05/1.188, allocations: 365.2 kB / 0.8992 GB, free: 23.16 MB / 0.5419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000153/1.188, allocations: 98.19 kB / 0.8993 GB, free: 23.16 MB / 0.5419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000139/1.188, allocations: 101.4 kB / 0.8994 GB, free: 23.15 MB / 0.5419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001799/1.188, allocations: 119.6 kB / 0.8995 GB, free: 23.15 MB / 0.5419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/1.188, allocations: 0 / 0.8995 GB, free: 23.15 MB / 0.5419 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0004469/1.189, allocations: 336.1 kB / 0.8998 GB, free: 23.08 MB / 0.5419 GB Notification: Performance of prepare postOptimizeDAE: time 1.508e-05/1.189, allocations: 7.781 kB / 0.8998 GB, free: 23.08 MB / 0.5419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.853e-06/1.189, allocations: 1.594 kB / 0.8998 GB, free: 23.08 MB / 0.5419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.782e-05/1.189, allocations: 0 / 0.8998 GB, free: 23.08 MB / 0.5419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005257/1.189, allocations: 131.8 kB / 0.8999 GB, free: 23.07 MB / 0.5419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.259e-05/1.189, allocations: 3.844 kB / 0.8999 GB, free: 23.07 MB / 0.5419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002889/1.189, allocations: 38.45 kB / 0.9 GB, free: 23.05 MB / 0.5419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.568e-05/1.19, allocations: 11.31 kB / 0.9 GB, free: 23.05 MB / 0.5419 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.538e-05/1.19, allocations: 108.9 kB / 0.9001 GB, free: 22.94 MB / 0.5419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.169e-05/1.19, allocations: 54.41 kB / 0.9001 GB, free: 22.91 MB / 0.5419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001121/1.19, allocations: 54.89 kB / 0.9002 GB, free: 22.89 MB / 0.5419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.871e-06/1.19, allocations: 5.672 kB / 0.9002 GB, free: 22.89 MB / 0.5419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.119e-05/1.19, allocations: 3.875 kB / 0.9002 GB, free: 22.89 MB / 0.5419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.053e-06/1.19, allocations: 1.781 kB / 0.9002 GB, free: 22.89 MB / 0.5419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006123/1.19, allocations: 0.4939 MB / 0.9007 GB, free: 22.72 MB / 0.5419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.864e-06/1.19, allocations: 0 / 0.9007 GB, free: 22.72 MB / 0.5419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005501/1.191, allocations: 133.4 kB / 0.9008 GB, free: 22.71 MB / 0.5419 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.167e-06/1.191, allocations: 3.844 kB / 0.9008 GB, free: 22.71 MB / 0.5419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.287e-05/1.191, allocations: 3.688 kB / 0.9008 GB, free: 22.71 MB / 0.5419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.988e-06/1.191, allocations: 0 / 0.9008 GB, free: 22.71 MB / 0.5419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.625e-06/1.191, allocations: 0 / 0.9008 GB, free: 22.71 MB / 0.5419 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0007064/1.192, allocations: 0.5769 MB / 0.9014 GB, free: 22.54 MB / 0.5419 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0009018/1.193, allocations: 1.11 MB / 0.9025 GB, free: 22 MB / 0.5419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001341/1.193, allocations: 128.4 kB / 0.9026 GB, free: 21.88 MB / 0.5419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.35e-05/1.193, allocations: 3.969 kB / 0.9026 GB, free: 21.88 MB / 0.5419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002967/1.193, allocations: 25.22 kB / 0.9026 GB, free: 21.87 MB / 0.5419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.159e-05/1.193, allocations: 20.05 kB / 0.9026 GB, free: 21.87 MB / 0.5419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.89e-05/1.193, allocations: 11.38 kB / 0.9026 GB, free: 21.87 MB / 0.5419 GB Notification: Performance of sort global known variables: time 0.0003139/1.194, allocations: 291.2 kB / 0.9029 GB, free: 21.79 MB / 0.5419 GB Notification: Performance of remove unused functions: time 0.001085/1.195, allocations: 148.9 kB / 0.9031 GB, free: 21.77 MB / 0.5419 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.0004336/1.195, allocations: 266.9 kB / 0.9033 GB, free: 21.64 MB / 0.5419 GB Notification: Performance of simCode: created initialization part: time 0.0004553/1.196, allocations: 277.4 kB / 0.9036 GB, free: 21.63 MB / 0.5419 GB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/1.196, allocations: 0 / 0.9036 GB, free: 21.63 MB / 0.5419 GB Notification: Performance of simCode: created simulation system equations: time 0.000195/1.196, allocations: 160.9 kB / 0.9037 GB, free: 21.62 MB / 0.5419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005694/1.196, allocations: 95.8 kB / 0.9038 GB, free: 21.59 MB / 0.5419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001824/1.198, allocations: 0.8813 MB / 0.9047 GB, free: 21.2 MB / 0.5419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005401/1.199, allocations: 0.9343 MB / 0.9056 GB, free: 20.49 MB / 0.5419 GB Notification: Performance of SimCode: time 3.61e-07/1.199, allocations: 0 / 0.9056 GB, free: 20.49 MB / 0.5419 GB (rm -f BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesTwoUTube_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesTwoUTube.fmu > BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe 2>&1)