Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesOneUTube.conf.json 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/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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesOneUTube,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Functions_Validation_InternalResistancesOneUTube",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesOneUTube,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Functions_Validation_InternalResistancesOneUTube",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006101/0.006101, allocations: 104.2 kB / 15.74 MB, free: 6.445 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00124/0.00124, allocations: 191.9 kB / 16.67 MB, free: 6.352 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.35/1.35, allocations: 222.9 MB / 240.4 MB, free: 4.301 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002011/0.002011, allocations: 286.5 kB / 290.8 MB, free: 1.898 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9442/0.9442, allocations: 169.3 MB / 0.4983 GB, free: 13.79 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001723/0.001723, allocations: 103.9 kB / 0.681 GB, free: 15.89 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1459/0.1477, allocations: 86.98 MB / 0.766 GB, free: 8.84 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesOneUTube): time 0.002439/0.1501, allocations: 1.412 MB / 0.7674 GB, free: 7.418 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.004065/0.1542, allocations: 2.861 MB / 0.7702 GB, free: 4.539 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.49e-05/0.1543, allocations: 0 / 0.7702 GB, free: 4.539 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 2.602e-05/0.1543, allocations: 3.938 kB / 0.7702 GB, free: 4.535 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 6.419e-05/0.1544, allocations: 15.86 kB / 0.7702 GB, free: 4.52 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.003566/0.158, allocations: 1.558 MB / 0.7717 GB, free: 2.984 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 8.069e-05/0.1581, allocations: 47.67 kB / 0.7717 GB, free: 2.938 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 3.967e-05/0.1581, allocations: 4 kB / 0.7717 GB, free: 2.934 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 2.892e-05/0.1582, allocations: 15.94 kB / 0.7718 GB, free: 2.918 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 2.745e-05/0.1582, allocations: 15.92 kB / 0.7718 GB, free: 2.902 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.311e-05/0.1582, allocations: 4 kB / 0.7718 GB, free: 2.898 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00209/0.1603, allocations: 1.49 MB / 0.7732 GB, free: 1.406 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 1.235e-05/0.1603, allocations: 3.938 kB / 0.7732 GB, free: 1.402 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 3.258e-05/0.1604, allocations: 15.88 kB / 0.7733 GB, free: 1.387 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.001294/0.1617, allocations: 1.07 MB / 0.7743 GB, free: 324 kB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.539e-06/0.1617, allocations: 0 / 0.7743 GB, free: 324 kB / 0.5606 GB Notification: Performance of FrontEnd: time 1.473e-06/0.1617, allocations: 4 kB / 0.7743 GB, free: 320 kB / 0.5606 GB Notification: Performance of Transformations before backend: time 5.039e-06/0.1617, allocations: 0 / 0.7743 GB, free: 320 kB / 0.5606 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 0 * Number of variables: 0 Notification: Performance of Generate backend data structure: time 0.2925/0.4542, allocations: 0.5319 MB / 0.7748 GB, free: 14.58 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.333e-05/0.4542, allocations: 10.64 kB / 0.7748 GB, free: 14.58 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.059e-05/0.4543, allocations: 107.9 kB / 0.7749 GB, free: 14.46 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.124e-05/0.4543, allocations: 78.34 kB / 0.775 GB, free: 14.39 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.509e-05/0.4544, allocations: 256.7 kB / 0.7753 GB, free: 14.11 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.545e-05/0.4545, allocations: 153.4 kB / 0.7754 GB, free: 13.96 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.885e-05/0.4545, allocations: 158 kB / 0.7756 GB, free: 13.82 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 4.187e-05/0.4545, allocations: 110.7 kB / 0.7757 GB, free: 13.71 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.218e-05/0.4546, allocations: 80.31 kB / 0.7757 GB, free: 13.63 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.901e-05/0.4546, allocations: 152.6 kB / 0.7759 GB, free: 13.48 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.866e-05/0.4546, allocations: 151.1 kB / 0.776 GB, free: 13.34 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.924e-05/0.4546, allocations: 152.2 kB / 0.7762 GB, free: 13.19 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002062/0.4548, allocations: 463 kB / 0.7766 GB, free: 12.71 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 4.215e-05/0.4549, allocations: 172.9 kB / 0.7768 GB, free: 12.54 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.592e-05/0.4549, allocations: 81.2 kB / 0.7769 GB, free: 12.46 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 1.518e-05/0.4549, allocations: 78.11 kB / 0.7769 GB, free: 12.38 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.044e-05/0.455, allocations: 107.4 kB / 0.777 GB, free: 12.27 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=0): time 1.543e-06/0.455, allocations: 0.7812 kB / 0.777 GB, free: 12.27 MB / 0.5606 GB Notification: Performance of matching and sorting (n=0): time 6.89e-05/0.455, allocations: 42.06 kB / 0.7771 GB, free: 12.23 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.785e-05/0.4551, allocations: 128.6 kB / 0.7772 GB, free: 12.09 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001251/0.4552, allocations: 130.4 kB / 0.7773 GB, free: 12 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 8.395e-06/0.4552, allocations: 26.22 kB / 0.7773 GB, free: 11.96 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 3.224e-05/0.4553, allocations: 91.25 kB / 0.7774 GB, free: 11.88 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 1.663e-06/0.4553, allocations: 5.328 kB / 0.7774 GB, free: 11.88 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.133e-05/0.4553, allocations: 16.34 kB / 0.7775 GB, free: 11.87 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 4.189e-05/0.4554, allocations: 318.3 kB / 0.7778 GB, free: 11.55 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.326e-05/0.4554, allocations: 7.516 kB / 0.7778 GB, free: 11.55 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.686e-05/0.4554, allocations: 4.766 kB / 0.7778 GB, free: 11.55 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.398e-05/0.4555, allocations: 15.59 kB / 0.7778 GB, free: 11.55 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.333e-06/0.4555, allocations: 1 kB / 0.7778 GB, free: 11.55 MB / 0.5606 GB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001182/0.4556, allocations: 49.33 kB / 0.7778 GB, free: 11.51 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.564e-05/0.4556, allocations: 8.969 kB / 0.7778 GB, free: 11.51 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.837e-05/0.4556, allocations: 3.047 kB / 0.7778 GB, free: 11.51 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.425e-05/0.4556, allocations: 1.266 kB / 0.7778 GB, free: 11.51 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.152e-06/0.4557, allocations: 1.031 kB / 0.7778 GB, free: 11.51 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.248e-06/0.4557, allocations: 3.219 kB / 0.7778 GB, free: 11.51 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.25e-05/0.4557, allocations: 1.359 kB / 0.7778 GB, free: 11.51 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.642e-06/0.4557, allocations: 1.125 kB / 0.7779 GB, free: 11.51 MB / 0.5606 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.071e-05/0.4558, allocations: 187.6 kB / 0.778 GB, free: 11.32 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.026e-05/0.4558, allocations: 115.7 kB / 0.7781 GB, free: 11.21 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.797e-05/0.4558, allocations: 116.1 kB / 0.7783 GB, free: 11.1 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.178e-05/0.4559, allocations: 186 kB / 0.7784 GB, free: 10.92 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.265e-05/0.4559, allocations: 179.2 kB / 0.7786 GB, free: 10.74 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.054e-05/0.4559, allocations: 178.2 kB / 0.7788 GB, free: 10.56 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001394/0.4561, allocations: 416 kB / 0.7792 GB, free: 10.11 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.871e-05/0.4561, allocations: 102.8 kB / 0.7793 GB, free: 10.01 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.423e-05/0.4561, allocations: 111.7 kB / 0.7794 GB, free: 9.898 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.006e-05/0.4561, allocations: 185.5 kB / 0.7795 GB, free: 9.715 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.397e-05/0.4562, allocations: 177.9 kB / 0.7797 GB, free: 9.535 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.144e-05/0.4562, allocations: 184.7 kB / 0.7799 GB, free: 9.352 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.291e-05/0.4562, allocations: 178.7 kB / 0.7801 GB, free: 9.172 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.366e-05/0.4563, allocations: 308.3 kB / 0.7804 GB, free: 8.859 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 3.721e-05/0.4563, allocations: 193.4 kB / 0.7805 GB, free: 8.648 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.543e-05/0.4564, allocations: 180.9 kB / 0.7807 GB, free: 8.469 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.89e-05/0.4564, allocations: 102.2 kB / 0.7808 GB, free: 8.363 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.577e-05/0.4565, allocations: 182 kB / 0.781 GB, free: 8.18 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.522e-05/0.4565, allocations: 107.9 kB / 0.7811 GB, free: 8.074 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 4.883e-05/0.4565, allocations: 101.7 kB / 0.7812 GB, free: 8 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.1e-07/0.4565, allocations: 1.094 kB / 0.7812 GB, free: 8 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0008559/0.4574, allocations: 283.7 kB / 0.7815 GB, free: 8 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (0): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00116/0.4586, allocations: 1.171 MB / 0.7826 GB, free: 7.148 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 9.124e-05/0.4587, allocations: 35.88 kB / 0.7826 GB, free: 7.117 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.4587, allocations: 0 / 0.7826 GB, free: 7.117 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 1.784e-06/0.4587, allocations: 3.25 kB / 0.7826 GB, free: 7.117 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002859/0.459, allocations: 470.4 kB / 0.7831 GB, free: 6.668 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001281/0.4603, allocations: 1.588 MB / 0.7846 GB, free: 21.29 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002308/0.4605, allocations: 0.6815 MB / 0.7853 GB, free: 20.59 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 1.581e-05/0.4605, allocations: 1.438 kB / 0.7853 GB, free: 20.59 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.855e-05/0.4606, allocations: 17.17 kB / 0.7853 GB, free: 20.59 MB / 0.5762 GB Notification: Performance of SimCode: time 3.1e-07/0.4606, allocations: 32 / 0.7853 GB, free: 20.59 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02801/0.4886, allocations: 6.873 MB / 0.792 GB, free: 19.93 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.792/8.281, allocations: 4.234 kB / 0.792 GB, free: 19.93 MB / 0.5762 GB (rm -f BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesOneUTube.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesOneUTube.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesOneUTube.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesOneUTube.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesOneUTube_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 BuildingSystems_BuildingSystems_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Functions_Validation_InternalResistancesOneUTube.fmu > BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesOneUTube.pipe 2>&1)