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.005858/0.005858, allocations: 95.77 kB / 15.73 MB, free: 6.039 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.001236/0.001235, allocations: 198.6 kB / 16.68 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.331/1.331, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002202/0.002202, allocations: 274.9 kB / 290.8 MB, free: 1.918 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9324/0.9324, allocations: 169.3 MB / 0.4983 GB, free: 13.8 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001681/0.001681, allocations: 99.86 kB / 0.6811 GB, free: 15.89 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1512/0.1529, allocations: 86.97 MB / 0.766 GB, free: 8.836 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTube): time 0.002715/0.1557, allocations: 1.422 MB / 0.7674 GB, free: 7.402 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.004301/0.16, allocations: 2.896 MB / 0.7702 GB, free: 4.488 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.424e-05/0.1601, allocations: 0 / 0.7702 GB, free: 4.488 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 2.107e-05/0.1601, allocations: 3.938 kB / 0.7702 GB, free: 4.484 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 7.046e-05/0.1602, allocations: 19.8 kB / 0.7702 GB, free: 4.465 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.003873/0.1641, allocations: 1.59 MB / 0.7718 GB, free: 2.898 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 8.406e-05/0.1642, allocations: 39.73 kB / 0.7718 GB, free: 2.859 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 4.092e-05/0.1642, allocations: 11.89 kB / 0.7718 GB, free: 2.848 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 2.706e-05/0.1643, allocations: 11.94 kB / 0.7718 GB, free: 2.836 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 2.532e-05/0.1643, allocations: 15.88 kB / 0.7719 GB, free: 2.82 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 8.717e-06/0.1643, allocations: 0 / 0.7719 GB, free: 2.82 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002243/0.1666, allocations: 1.543 MB / 0.7734 GB, free: 1.277 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 1.211e-05/0.1666, allocations: 8 kB / 0.7734 GB, free: 1.27 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 3.085e-05/0.1666, allocations: 19.88 kB / 0.7734 GB, free: 1.25 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.001541/0.1682, allocations: 1.107 MB / 0.7745 GB, free: 144 kB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 5.08e-06/0.1682, allocations: 0 / 0.7745 GB, free: 144 kB / 0.5606 GB Notification: Performance of FrontEnd: time 1.884e-06/0.1682, allocations: 0 / 0.7745 GB, free: 144 kB / 0.5606 GB Notification: Performance of Transformations before backend: time 5.26e-06/0.1682, allocations: 0 / 0.7745 GB, free: 144 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.2878/0.456, allocations: 0.5216 MB / 0.775 GB, free: 14.62 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 5.07e-05/0.456, allocations: 9.281 kB / 0.775 GB, free: 14.62 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.008e-05/0.4561, allocations: 109.1 kB / 0.7751 GB, free: 14.5 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.731e-05/0.4562, allocations: 85.7 kB / 0.7752 GB, free: 14.43 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001026/0.4563, allocations: 251.5 kB / 0.7754 GB, free: 14.15 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.842e-05/0.4563, allocations: 157.2 kB / 0.7756 GB, free: 14 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.884e-05/0.4563, allocations: 153.8 kB / 0.7757 GB, free: 13.85 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 4.339e-05/0.4564, allocations: 104.2 kB / 0.7758 GB, free: 13.75 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.769e-05/0.4564, allocations: 85.91 kB / 0.7759 GB, free: 13.67 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.254e-05/0.4564, allocations: 151.6 kB / 0.776 GB, free: 13.52 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.08e-05/0.4565, allocations: 152.1 kB / 0.7762 GB, free: 13.37 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.159e-05/0.4565, allocations: 155.5 kB / 0.7763 GB, free: 13.22 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002225/0.4567, allocations: 461.1 kB / 0.7768 GB, free: 12.75 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 4.771e-05/0.4568, allocations: 171.8 kB / 0.7769 GB, free: 12.57 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.971e-05/0.4568, allocations: 81.98 kB / 0.777 GB, free: 12.49 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 1.809e-05/0.4568, allocations: 76.59 kB / 0.7771 GB, free: 12.42 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.407e-05/0.4568, allocations: 109.1 kB / 0.7772 GB, free: 12.3 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=0): time 8.71e-07/0.4568, allocations: 0.6562 kB / 0.7772 GB, free: 12.3 MB / 0.5606 GB Notification: Performance of matching and sorting (n=0): time 7.84e-05/0.4569, allocations: 37.77 kB / 0.7772 GB, free: 12.27 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.608e-05/0.457, allocations: 130 kB / 0.7774 GB, free: 12.13 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001306/0.4571, allocations: 132.3 kB / 0.7775 GB, free: 12.03 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 7.644e-06/0.4571, allocations: 26.33 kB / 0.7775 GB, free: 12 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 3.44e-05/0.4572, allocations: 92.2 kB / 0.7776 GB, free: 11.92 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 3.176e-06/0.4572, allocations: 0.5 kB / 0.7776 GB, free: 11.92 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.584e-05/0.4572, allocations: 27.33 kB / 0.7776 GB, free: 11.9 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 4.878e-05/0.4573, allocations: 315 kB / 0.7779 GB, free: 11.59 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.546e-05/0.4573, allocations: 6.875 kB / 0.7779 GB, free: 11.59 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.878e-05/0.4573, allocations: 4.219 kB / 0.7779 GB, free: 11.59 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.607e-05/0.4574, allocations: 18.42 kB / 0.7779 GB, free: 11.58 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.4574, allocations: 1.312 kB / 0.7779 GB, free: 11.58 MB / 0.5606 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001411/0.4575, allocations: 49.25 kB / 0.778 GB, free: 11.55 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.808e-05/0.4576, allocations: 9.719 kB / 0.778 GB, free: 11.54 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.22e-05/0.4576, allocations: 5.016 kB / 0.778 GB, free: 11.54 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.557e-05/0.4576, allocations: 1.5 kB / 0.778 GB, free: 11.54 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.288e-06/0.4576, allocations: 3.156 kB / 0.778 GB, free: 11.54 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.39e-06/0.4576, allocations: 2.688 kB / 0.778 GB, free: 11.54 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.181e-05/0.4577, allocations: 5.625 kB / 0.778 GB, free: 11.54 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.516e-06/0.4577, allocations: 2.172 kB / 0.778 GB, free: 11.54 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.864e-05/0.4577, allocations: 191.3 kB / 0.7782 GB, free: 11.35 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.065e-05/0.4578, allocations: 116 kB / 0.7783 GB, free: 11.24 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.015e-05/0.4578, allocations: 109.1 kB / 0.7784 GB, free: 11.13 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.168e-05/0.4578, allocations: 181.3 kB / 0.7786 GB, free: 10.95 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.623e-05/0.4579, allocations: 181.1 kB / 0.7788 GB, free: 10.77 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.57e-05/0.4579, allocations: 180.8 kB / 0.7789 GB, free: 10.59 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001492/0.4581, allocations: 418.2 kB / 0.7793 GB, free: 10.15 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.699e-05/0.4581, allocations: 110.4 kB / 0.7794 GB, free: 10.04 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.54e-05/0.4581, allocations: 104.2 kB / 0.7795 GB, free: 9.934 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.407e-05/0.4581, allocations: 189.8 kB / 0.7797 GB, free: 9.746 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.527e-05/0.4582, allocations: 177.8 kB / 0.7799 GB, free: 9.566 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.66e-05/0.4582, allocations: 184.1 kB / 0.7801 GB, free: 9.383 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.425e-05/0.4582, allocations: 181 kB / 0.7802 GB, free: 9.203 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.695e-05/0.4583, allocations: 310.8 kB / 0.7805 GB, free: 8.887 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 4.175e-05/0.4583, allocations: 193.3 kB / 0.7807 GB, free: 8.68 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.943e-05/0.4584, allocations: 182 kB / 0.7809 GB, free: 8.496 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.193e-05/0.4585, allocations: 106.5 kB / 0.781 GB, free: 8.391 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.736e-05/0.4585, allocations: 178.2 kB / 0.7812 GB, free: 8.211 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.497e-05/0.4585, allocations: 109.3 kB / 0.7813 GB, free: 8.102 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 5.575e-05/0.4586, allocations: 102.5 kB / 0.7814 GB, free: 8.027 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4586, allocations: 0 / 0.7814 GB, free: 8.027 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0009563/0.4595, allocations: 283.5 kB / 0.7816 GB, free: 7.969 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.001154/0.4607, allocations: 1.184 MB / 0.7828 GB, free: 7.098 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 9.901e-05/0.4608, allocations: 43.58 kB / 0.7828 GB, free: 7.062 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.873e-06/0.4608, allocations: 3.906 kB / 0.7828 GB, free: 7.062 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 2.034e-06/0.4608, allocations: 0.75 kB / 0.7828 GB, free: 7.062 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002861/0.4611, allocations: 467.2 kB / 0.7833 GB, free: 6.613 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001335/0.4625, allocations: 1.594 MB / 0.7848 GB, free: 21.24 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002374/0.4627, allocations: 0.6859 MB / 0.7855 GB, free: 20.54 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 1.547e-05/0.4627, allocations: 2.578 kB / 0.7855 GB, free: 20.54 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.764e-05/0.4628, allocations: 16.14 kB / 0.7855 GB, free: 20.53 MB / 0.5762 GB Notification: Performance of SimCode: time 3.91e-07/0.4628, allocations: 0 / 0.7855 GB, free: 20.53 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02495/0.4877, allocations: 7.074 MB / 0.7924 GB, free: 19.86 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.555/8.043, allocations: 8.703 kB / 0.7924 GB, free: 19.86 MB / 0.5762 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)