Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.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.Examples.InternalResistancesOneUTube,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesOneUTube",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_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.006995/0.006995, allocations: 99.11 kB / 15.73 MB, free: 6.035 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.001644/0.001644, allocations: 193.3 kB / 16.67 MB, free: 5.961 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.258/1.258, allocations: 222.9 MB / 240.4 MB, free: 4.297 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002054/0.002054, allocations: 282.1 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.8936/0.8936, allocations: 169.3 MB / 0.4983 GB, free: 13.79 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001661/0.001661, allocations: 95.84 kB / 0.681 GB, free: 15.93 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.142/0.1437, allocations: 86.97 MB / 0.7659 GB, free: 8.879 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube): time 0.003994/0.1478, allocations: 3.02 MB / 0.7689 GB, free: 5.844 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.002686/0.1505, allocations: 2.137 MB / 0.771 GB, free: 3.695 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002704/0.1508, allocations: 8 kB / 0.771 GB, free: 3.688 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.001328/0.1521, allocations: 0.5094 MB / 0.7715 GB, free: 3.176 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0003202/0.1524, allocations: 142.9 kB / 0.7716 GB, free: 3.035 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001244/0.1526, allocations: 63.92 kB / 0.7717 GB, free: 2.973 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0004049/0.153, allocations: 453.1 kB / 0.7721 GB, free: 2.531 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002314/0.1532, allocations: 159.1 kB / 0.7723 GB, free: 2.371 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001891/0.1534, allocations: 159.4 kB / 0.7724 GB, free: 2.215 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001946/0.1536, allocations: 183.1 kB / 0.7726 GB, free: 2.035 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 4.389e-05/0.1537, allocations: 36 kB / 0.7726 GB, free: 2 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 5.906e-05/0.1537, allocations: 36 kB / 0.7727 GB, free: 1.965 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0001055/0.1539, allocations: 91.67 kB / 0.7727 GB, free: 1.875 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0001847/0.1541, allocations: 222.9 kB / 0.773 GB, free: 1.656 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.000474/0.1545, allocations: 0.5524 MB / 0.7735 GB, free: 1.102 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.1545, allocations: 0 / 0.7735 GB, free: 1.102 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.292e-06/0.1546, allocations: 4 kB / 0.7735 GB, free: 1.098 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 7.184e-06/0.1546, allocations: 0 / 0.7735 GB, free: 1.098 MB / 0.5606 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 52 * Number of variables: 52 Notification: Performance of Generate backend data structure: time 0.0009289/0.1555, allocations: 0.716 MB / 0.7742 GB, free: 340 kB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.274e-05/0.1556, allocations: 8.031 kB / 0.7742 GB, free: 332 kB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.473e-05/0.1556, allocations: 54.73 kB / 0.7743 GB, free: 268 kB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.306e-05/0.1557, allocations: 52.66 kB / 0.7743 GB, free: 216 kB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.272/0.4277, allocations: 376.2 kB / 0.7747 GB, free: 15.02 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.737e-05/0.4278, allocations: 15.19 kB / 0.7747 GB, free: 15.02 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.075e-05/0.4279, allocations: 22.94 kB / 0.7747 GB, free: 15.02 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004865/0.4284, allocations: 201.3 kB / 0.7749 GB, free: 14.98 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.536e-05/0.4284, allocations: 0.625 kB / 0.7749 GB, free: 14.98 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.308e-05/0.4284, allocations: 8.422 kB / 0.7749 GB, free: 14.98 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.094e-05/0.4284, allocations: 6.25 kB / 0.7749 GB, free: 14.98 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000408/0.4288, allocations: 172.4 kB / 0.7751 GB, free: 14.98 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001137/0.43, allocations: 0.8633 MB / 0.7759 GB, free: 14.58 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000285/0.4303, allocations: 156.8 kB / 0.7761 GB, free: 14.56 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002031/0.4305, allocations: 114.2 kB / 0.7762 GB, free: 14.55 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 1.312e-05/0.4305, allocations: 2.469 kB / 0.7762 GB, free: 14.55 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.897e-05/0.4305, allocations: 40.39 kB / 0.7762 GB, free: 14.51 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=18): time 1.824e-06/0.4305, allocations: 0 / 0.7762 GB, free: 14.51 MB / 0.5606 GB Notification: Performance of matching and sorting (n=18): time 0.0005702/0.4311, allocations: 250.6 kB / 0.7765 GB, free: 14.44 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.691e-05/0.4312, allocations: 59.28 kB / 0.7765 GB, free: 14.38 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004531/0.4316, allocations: 414.2 kB / 0.7769 GB, free: 14.18 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.35e-05/0.4316, allocations: 31.02 kB / 0.7769 GB, free: 14.15 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001154/0.4318, allocations: 205.4 kB / 0.7771 GB, free: 13.99 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 5.001e-05/0.4318, allocations: 67.91 kB / 0.7772 GB, free: 13.94 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.396e-05/0.4319, allocations: 30.7 kB / 0.7772 GB, free: 13.92 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 8.319e-05/0.432, allocations: 352.5 kB / 0.7776 GB, free: 13.59 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001519/0.4321, allocations: 54.08 kB / 0.7776 GB, free: 13.57 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001451/0.4323, allocations: 69.33 kB / 0.7777 GB, free: 13.55 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002975/0.4326, allocations: 132.8 kB / 0.7778 GB, free: 13.49 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.4326, allocations: 0.6562 kB / 0.7778 GB, free: 13.49 MB / 0.5606 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003676/0.433, allocations: 210.8 kB / 0.778 GB, free: 13.39 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.4e-05/0.433, allocations: 7.094 kB / 0.778 GB, free: 13.39 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.388e-06/0.433, allocations: 1.344 kB / 0.778 GB, free: 13.39 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.461e-05/0.433, allocations: 0.5312 kB / 0.778 GB, free: 13.39 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002503/0.4333, allocations: 56.78 kB / 0.7781 GB, free: 13.39 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.681e-06/0.4333, allocations: 0.6562 kB / 0.7781 GB, free: 13.39 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001416/0.4334, allocations: 24.64 kB / 0.7781 GB, free: 13.38 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.244e-05/0.4335, allocations: 5.344 kB / 0.7781 GB, free: 13.38 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 (20): * Single equations (assignments): 20 * 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 prepare postOptimizeDAE: time 0.0001175/0.4336, allocations: 167.8 kB / 0.7783 GB, free: 13.23 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.49e-05/0.4336, allocations: 37.38 kB / 0.7783 GB, free: 13.21 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.808e-05/0.4337, allocations: 40.61 kB / 0.7783 GB, free: 13.18 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.236e-06/0.4337, allocations: 5.297 kB / 0.7783 GB, free: 13.18 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.329e-06/0.4337, allocations: 0.6094 kB / 0.7783 GB, free: 13.18 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.909e-06/0.4337, allocations: 5.797 kB / 0.7783 GB, free: 13.18 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003566/0.4341, allocations: 374.7 kB / 0.7787 GB, free: 12.91 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.4341, allocations: 1.844 kB / 0.7787 GB, free: 12.91 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002488/0.4344, allocations: 59.3 kB / 0.7788 GB, free: 12.91 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.816e-06/0.4344, allocations: 1.406 kB / 0.7788 GB, free: 12.91 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.284e-05/0.4344, allocations: 1.188 kB / 0.7788 GB, free: 12.91 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.595e-06/0.4344, allocations: 5.328 kB / 0.7788 GB, free: 12.91 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.4344, allocations: 1.359 kB / 0.7788 GB, free: 12.91 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005373/0.435, allocations: 379.5 kB / 0.7791 GB, free: 12.68 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 7.91e-05/0.435, allocations: 123 kB / 0.7793 GB, free: 12.55 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.517e-05/0.4351, allocations: 3.609 kB / 0.7793 GB, free: 12.55 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001597/0.4353, allocations: 12.45 kB / 0.7793 GB, free: 12.55 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.038e-05/0.4353, allocations: 11.41 kB / 0.7793 GB, free: 12.55 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.207e-06/0.4353, allocations: 9.016 kB / 0.7793 GB, free: 12.55 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0002978/0.4356, allocations: 303.6 kB / 0.7796 GB, free: 12.4 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4356, allocations: 0 / 0.7796 GB, free: 12.4 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0003044/0.4359, allocations: 73.48 kB / 0.7796 GB, free: 12.39 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (intRes1UTub.capFil1.T,intRes1UTub.capFil2.T) * 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 (18): * Single equations (assignments): 18 * 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.0007136/0.4367, allocations: 0.9208 MB / 0.7805 GB, free: 11.62 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0003454/0.437, allocations: 156 kB / 0.7807 GB, free: 11.57 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.437, allocations: 0 / 0.7807 GB, free: 11.57 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0001556/0.4372, allocations: 81.53 kB / 0.7808 GB, free: 11.55 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005311/0.4377, allocations: 93.86 kB / 0.7809 GB, free: 11.52 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003763/0.4415, allocations: 3.498 MB / 0.7843 GB, free: 9.48 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001925/0.4417, allocations: 0.7927 MB / 0.7851 GB, free: 8.777 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0001397/0.4419, allocations: 36.58 kB / 0.7851 GB, free: 8.766 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001323/0.442, allocations: 115.2 kB / 0.7852 GB, free: 8.684 MB / 0.5606 GB Notification: Performance of SimCode: time 2.4e-07/0.442, allocations: 0 / 0.7852 GB, free: 8.684 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02595/0.468, allocations: 8.007 MB / 0.793 GB, free: 7.879 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.551/8.019, allocations: 18.17 kB / 0.793 GB, free: 7.875 MB / 0.5606 GB (rm -f BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube_res.csv --start-time 0 --stop-time 3600 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.44 BuildingSystems_BuildingSystems_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesOneUTube.fmu > BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.pipe 2>&1)