Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTube.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.InternalResistancesTwoUTube,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Functions_Validation_InternalResistancesTwoUTube",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTube,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Functions_Validation_InternalResistancesTwoUTube",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.007157/0.007157, allocations: 101 kB / 15.73 MB, free: 6.055 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.001803/0.001803, allocations: 195.2 kB / 16.67 MB, free: 5.969 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.394/1.394, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002511/0.002511, allocations: 285.5 kB / 290.8 MB, free: 14.46 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9911/0.9911, allocations: 169.3 MB / 0.4983 GB, free: 4.434 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002697/0.002697, allocations: 99.84 kB / 0.681 GB, free: 7.387 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.42/0.4227, allocations: 86.98 MB / 0.766 GB, free: 3.828 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTube): time 0.002588/0.4253, allocations: 1.432 MB / 0.7674 GB, free: 2.387 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.00444/0.4298, allocations: 2.9 MB / 0.7702 GB, free: 15.48 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.98e-05/0.4298, allocations: 0 / 0.7702 GB, free: 15.48 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 2.469e-05/0.4299, allocations: 3.938 kB / 0.7702 GB, free: 15.47 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 6.405e-05/0.43, allocations: 19.84 kB / 0.7702 GB, free: 15.45 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.003929/0.4339, allocations: 1.572 MB / 0.7718 GB, free: 13.91 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 9.967e-05/0.434, allocations: 51.66 kB / 0.7718 GB, free: 13.86 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 3.443e-05/0.434, allocations: 0 / 0.7718 GB, free: 13.86 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 2.917e-05/0.4341, allocations: 19.92 kB / 0.7718 GB, free: 13.84 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 2.927e-05/0.4341, allocations: 19.88 kB / 0.7719 GB, free: 13.82 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 1.159e-05/0.4341, allocations: 0 / 0.7719 GB, free: 13.82 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00245/0.4366, allocations: 1.537 MB / 0.7734 GB, free: 12.28 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 1.601e-05/0.4366, allocations: 3.984 kB / 0.7734 GB, free: 12.27 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 3.452e-05/0.4367, allocations: 19.88 kB / 0.7734 GB, free: 12.25 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.001647/0.4383, allocations: 1.1 MB / 0.7745 GB, free: 11.16 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 3.908e-06/0.4383, allocations: 0 / 0.7745 GB, free: 11.16 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.112e-06/0.4383, allocations: 0 / 0.7745 GB, free: 11.16 MB / 0.545 GB Notification: Performance of Transformations before backend: time 8.967e-06/0.4384, allocations: 4 kB / 0.7745 GB, free: 11.15 MB / 0.545 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.0006602/0.439, allocations: 0.5402 MB / 0.775 GB, free: 10.56 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.378e-05/0.4391, allocations: 8.031 kB / 0.775 GB, free: 10.55 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.743e-05/0.4391, allocations: 106 kB / 0.7751 GB, free: 10.44 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.2e-05/0.4392, allocations: 84.17 kB / 0.7752 GB, free: 10.36 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002123/0.4394, allocations: 247.6 kB / 0.7754 GB, free: 10.08 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.911e-05/0.4395, allocations: 150.9 kB / 0.7756 GB, free: 9.93 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.416e-05/0.4396, allocations: 158.9 kB / 0.7757 GB, free: 9.773 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.966e-05/0.4397, allocations: 104.9 kB / 0.7758 GB, free: 9.664 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.775e-05/0.4397, allocations: 79.28 kB / 0.7759 GB, free: 9.586 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.49e-05/0.4398, allocations: 154.5 kB / 0.776 GB, free: 9.434 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.239e-05/0.4399, allocations: 150.6 kB / 0.7762 GB, free: 9.285 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.83e-05/0.44, allocations: 158.6 kB / 0.7763 GB, free: 9.129 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003465/0.4403, allocations: 465.9 kB / 0.7768 GB, free: 8.625 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 9.572e-05/0.4404, allocations: 169.1 kB / 0.7769 GB, free: 8.449 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.639e-05/0.4405, allocations: 80.14 kB / 0.777 GB, free: 8.367 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 3.695e-05/0.4405, allocations: 79.22 kB / 0.7771 GB, free: 8.289 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.644e-05/0.4406, allocations: 117.8 kB / 0.7772 GB, free: 8.164 MB / 0.545 GB Notification: Performance of pre-optimization done (n=0): time 1.393e-06/0.4406, allocations: 0 / 0.7772 GB, free: 8.164 MB / 0.545 GB Notification: Performance of matching and sorting (n=0): time 8.591e-05/0.4407, allocations: 33.59 kB / 0.7772 GB, free: 8.125 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.751e-05/0.4407, allocations: 130.7 kB / 0.7774 GB, free: 7.984 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001602/0.4409, allocations: 136.9 kB / 0.7775 GB, free: 7.844 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.449e-05/0.4409, allocations: 25.7 kB / 0.7775 GB, free: 7.812 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 6.365e-05/0.441, allocations: 100.1 kB / 0.7776 GB, free: 7.711 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 2.285e-06/0.441, allocations: 4 kB / 0.7776 GB, free: 7.707 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.838e-05/0.441, allocations: 17.7 kB / 0.7776 GB, free: 7.684 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001459/0.4412, allocations: 314.8 kB / 0.7779 GB, free: 7.367 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.312e-05/0.4412, allocations: 4 kB / 0.7779 GB, free: 7.363 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.172e-05/0.4413, allocations: 11.98 kB / 0.7779 GB, free: 7.352 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.322e-05/0.4413, allocations: 12.86 kB / 0.778 GB, free: 7.336 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.552e-06/0.4413, allocations: 0 / 0.778 GB, free: 7.336 MB / 0.545 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001313/0.4414, allocations: 53.58 kB / 0.778 GB, free: 7.277 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.498e-05/0.4415, allocations: 12.06 kB / 0.778 GB, free: 7.266 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.884e-05/0.4415, allocations: 0 / 0.778 GB, free: 7.266 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.439e-05/0.4415, allocations: 7.938 kB / 0.778 GB, free: 7.258 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.816e-06/0.4415, allocations: 3.984 kB / 0.778 GB, free: 7.254 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.288e-06/0.4415, allocations: 0 / 0.778 GB, free: 7.254 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.322e-05/0.4416, allocations: 3.953 kB / 0.778 GB, free: 7.25 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.107e-06/0.4416, allocations: 4.062 kB / 0.778 GB, free: 7.246 MB / 0.545 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 0.0001166/0.4417, allocations: 185.1 kB / 0.7782 GB, free: 7.055 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.656e-05/0.4418, allocations: 112.9 kB / 0.7783 GB, free: 6.938 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.095e-05/0.4419, allocations: 112.8 kB / 0.7784 GB, free: 6.82 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.534e-05/0.442, allocations: 188.2 kB / 0.7786 GB, free: 6.629 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.346e-05/0.442, allocations: 180.3 kB / 0.7788 GB, free: 6.445 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.624e-05/0.4421, allocations: 180.2 kB / 0.779 GB, free: 6.262 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002743/0.4424, allocations: 409.2 kB / 0.7793 GB, free: 5.805 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.594e-05/0.4425, allocations: 120.9 kB / 0.7795 GB, free: 5.68 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.958e-05/0.4425, allocations: 105 kB / 0.7796 GB, free: 5.57 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.337e-05/0.4426, allocations: 176.3 kB / 0.7797 GB, free: 5.391 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.487e-05/0.4427, allocations: 180.2 kB / 0.7799 GB, free: 5.207 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.122e-05/0.4428, allocations: 180.3 kB / 0.7801 GB, free: 5.023 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.803e-05/0.4429, allocations: 184.2 kB / 0.7802 GB, free: 4.836 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001844/0.4431, allocations: 311.7 kB / 0.7805 GB, free: 4.508 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001042/0.4432, allocations: 190 kB / 0.7807 GB, free: 4.297 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.986e-05/0.4433, allocations: 176.3 kB / 0.7809 GB, free: 4.117 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.195e-05/0.4434, allocations: 108.9 kB / 0.781 GB, free: 4.004 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.035e-05/0.4435, allocations: 188.3 kB / 0.7812 GB, free: 3.812 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.213e-05/0.4435, allocations: 108.9 kB / 0.7813 GB, free: 3.699 MB / 0.545 GB Notification: Performance of sorting global known variables: time 7.234e-05/0.4436, allocations: 95.27 kB / 0.7814 GB, free: 3.605 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.31e-07/0.4436, allocations: 0 / 0.7814 GB, free: 3.605 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0008725/0.4445, allocations: 291 kB / 0.7816 GB, free: 3.32 MB / 0.545 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.001549/0.446, allocations: 1.178 MB / 0.7828 GB, free: 2.117 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.000114/0.4462, allocations: 37.7 kB / 0.7828 GB, free: 2.074 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.4462, allocations: 3.938 kB / 0.7828 GB, free: 2.07 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 2.064e-06/0.4462, allocations: 4.062 kB / 0.7828 GB, free: 2.066 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004492/0.4466, allocations: 469.5 kB / 0.7833 GB, free: 1.605 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001477/0.4481, allocations: 1.6 MB / 0.7848 GB, free: 15.93 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002972/0.4484, allocations: 0.6885 MB / 0.7855 GB, free: 15.21 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 1.497e-05/0.4485, allocations: 0 / 0.7855 GB, free: 15.21 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.893e-05/0.4485, allocations: 19.36 kB / 0.7855 GB, free: 15.19 MB / 0.5606 GB Notification: Performance of SimCode: time 5.92e-07/0.4485, allocations: 0 / 0.7855 GB, free: 15.19 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02876/0.4773, allocations: 7.074 MB / 0.7924 GB, free: 8.348 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.97/8.448, allocations: 7.125 kB / 0.7925 GB, free: 8.344 MB / 0.5606 GB (rm -f BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTube.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTube.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTube.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTube.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTube_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_InternalResistancesTwoUTube.fmu > BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTube.pipe 2>&1)