Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTubeNegative.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.InternalResistancesTwoUTubeNegative,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Functions_Validation_InternalResistancesTwoUTubeNegative",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTubeNegative,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Functions_Validation_InternalResistancesTwoUTubeNegative",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.009659/0.009659, allocations: 96.7 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.002144/0.002144, allocations: 194.4 kB / 16.67 MB, free: 5.977 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.335/1.335, 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.002143/0.002143, allocations: 279.2 kB / 290.8 MB, free: 1.914 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9634/0.9634, allocations: 169.3 MB / 0.4983 GB, free: 13.81 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001691/0.001691, allocations: 87.92 kB / 0.681 GB, free: 15.93 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1367/0.1384, allocations: 86.98 MB / 0.766 GB, free: 8.879 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTubeNegative): time 0.002248/0.1407, allocations: 1.437 MB / 0.7674 GB, free: 7.434 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.003939/0.1447, allocations: 2.896 MB / 0.7702 GB, free: 4.52 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.003e-05/0.1447, allocations: 0 / 0.7702 GB, free: 4.52 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 1.9e-05/0.1447, allocations: 3.938 kB / 0.7702 GB, free: 4.516 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 5.642e-05/0.1448, allocations: 19.84 kB / 0.7702 GB, free: 4.496 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.003662/0.1485, allocations: 1.585 MB / 0.7718 GB, free: 2.934 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 7.7e-05/0.1486, allocations: 43.67 kB / 0.7718 GB, free: 2.891 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 3.794e-05/0.1486, allocations: 11.91 kB / 0.7718 GB, free: 2.879 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 2.782e-05/0.1487, allocations: 19.91 kB / 0.7719 GB, free: 2.859 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 3.089e-05/0.1487, allocations: 19.88 kB / 0.7719 GB, free: 2.84 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 9.528e-06/0.1487, allocations: 3.938 kB / 0.7719 GB, free: 2.836 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002103/0.1508, allocations: 1.527 MB / 0.7734 GB, free: 1.309 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 1.639e-05/0.1508, allocations: 11.97 kB / 0.7734 GB, free: 1.297 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 2.866e-05/0.1509, allocations: 19.88 kB / 0.7734 GB, free: 1.277 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.001484/0.1524, allocations: 1.107 MB / 0.7745 GB, free: 172 kB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.1524, allocations: 0 / 0.7745 GB, free: 172 kB / 0.5606 GB Notification: Performance of FrontEnd: time 1.132e-06/0.1524, allocations: 4 kB / 0.7745 GB, free: 168 kB / 0.5606 GB Notification: Performance of Transformations before backend: time 4.348e-06/0.1524, allocations: 0 / 0.7745 GB, free: 168 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.2902/0.4426, allocations: 0.522 MB / 0.775 GB, free: 14.63 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.237e-05/0.4427, allocations: 10.33 kB / 0.775 GB, free: 14.63 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.934e-05/0.4427, allocations: 107.1 kB / 0.7751 GB, free: 14.52 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.898e-05/0.4428, allocations: 83.27 kB / 0.7752 GB, free: 14.44 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.454e-05/0.4429, allocations: 252.2 kB / 0.7754 GB, free: 14.16 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.409e-05/0.4429, allocations: 159 kB / 0.7756 GB, free: 14.02 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.304e-05/0.4429, allocations: 153.6 kB / 0.7757 GB, free: 13.87 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 3.694e-05/0.443, allocations: 105 kB / 0.7758 GB, free: 13.76 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.175e-05/0.443, allocations: 81.52 kB / 0.7759 GB, free: 13.68 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.662e-05/0.443, allocations: 151.9 kB / 0.776 GB, free: 13.54 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.488e-05/0.443, allocations: 153.7 kB / 0.7762 GB, free: 13.39 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.899e-05/0.4431, allocations: 154.8 kB / 0.7763 GB, free: 13.24 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000176/0.4432, allocations: 464.4 kB / 0.7768 GB, free: 12.76 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 3.665e-05/0.4433, allocations: 168.2 kB / 0.7769 GB, free: 12.59 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.395e-05/0.4433, allocations: 80.95 kB / 0.777 GB, free: 12.51 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 1.261e-05/0.4433, allocations: 76.91 kB / 0.7771 GB, free: 12.43 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.905e-05/0.4433, allocations: 114.5 kB / 0.7772 GB, free: 12.32 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=0): time 9.52e-07/0.4433, allocations: 0.7812 kB / 0.7772 GB, free: 12.32 MB / 0.5606 GB Notification: Performance of matching and sorting (n=0): time 6.339e-05/0.4434, allocations: 37.11 kB / 0.7772 GB, free: 12.28 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.79e-05/0.4435, allocations: 129.4 kB / 0.7774 GB, free: 12.14 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001116/0.4436, allocations: 132.4 kB / 0.7775 GB, free: 12.05 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 6.382e-06/0.4436, allocations: 26.52 kB / 0.7775 GB, free: 12.02 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 2.915e-05/0.4436, allocations: 91.83 kB / 0.7776 GB, free: 11.93 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 1.803e-06/0.4436, allocations: 4.734 kB / 0.7776 GB, free: 11.93 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.857e-05/0.4437, allocations: 19.69 kB / 0.7776 GB, free: 11.92 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 3.807e-05/0.4437, allocations: 319.1 kB / 0.7779 GB, free: 11.61 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.356e-05/0.4437, allocations: 4.5 kB / 0.7779 GB, free: 11.61 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.703e-05/0.4438, allocations: 3.797 kB / 0.7779 GB, free: 11.61 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.722e-05/0.4438, allocations: 19.59 kB / 0.778 GB, free: 11.6 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.312e-06/0.4438, allocations: 0.5625 kB / 0.778 GB, free: 11.6 MB / 0.5606 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001146/0.4439, allocations: 57.06 kB / 0.778 GB, free: 11.56 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.526e-05/0.4439, allocations: 9.5 kB / 0.778 GB, free: 11.56 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.88e-05/0.444, allocations: 3.641 kB / 0.778 GB, free: 11.56 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.298e-05/0.444, allocations: 1.188 kB / 0.778 GB, free: 11.56 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.082e-06/0.444, allocations: 0.5625 kB / 0.778 GB, free: 11.56 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.898e-06/0.444, allocations: 4.281 kB / 0.778 GB, free: 11.56 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.238e-05/0.444, allocations: 3.125 kB / 0.778 GB, free: 11.56 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.843e-06/0.444, allocations: 1.844 kB / 0.778 GB, free: 11.56 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 4.689e-05/0.4441, allocations: 184.1 kB / 0.7782 GB, free: 11.37 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.7e-05/0.4441, allocations: 113.2 kB / 0.7783 GB, free: 11.26 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.525e-05/0.4442, allocations: 113.2 kB / 0.7784 GB, free: 11.15 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.894e-05/0.4442, allocations: 186.8 kB / 0.7786 GB, free: 10.96 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.021e-05/0.4442, allocations: 177.7 kB / 0.7788 GB, free: 10.79 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.884e-05/0.4442, allocations: 182.1 kB / 0.7789 GB, free: 10.6 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001295/0.4444, allocations: 412 kB / 0.7793 GB, free: 10.16 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.356e-05/0.4444, allocations: 110.3 kB / 0.7794 GB, free: 10.05 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.368e-05/0.4444, allocations: 103.5 kB / 0.7795 GB, free: 9.945 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.04e-05/0.4444, allocations: 187.4 kB / 0.7797 GB, free: 9.762 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.16e-05/0.4445, allocations: 182 kB / 0.7799 GB, free: 9.578 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.022e-05/0.4445, allocations: 182.6 kB / 0.7801 GB, free: 9.398 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.006e-05/0.4445, allocations: 182.2 kB / 0.7802 GB, free: 9.215 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.593e-05/0.4446, allocations: 307.1 kB / 0.7805 GB, free: 8.902 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 3.176e-05/0.4446, allocations: 196.9 kB / 0.7807 GB, free: 8.691 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.211e-05/0.4446, allocations: 178.6 kB / 0.7809 GB, free: 8.512 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.382e-05/0.4447, allocations: 113.1 kB / 0.781 GB, free: 8.402 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.339e-05/0.4447, allocations: 178.3 kB / 0.7812 GB, free: 8.223 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.221e-05/0.4448, allocations: 102.3 kB / 0.7813 GB, free: 8.117 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 4.738e-05/0.4448, allocations: 100.1 kB / 0.7814 GB, free: 8.043 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1e-07/0.4448, allocations: 2.969 kB / 0.7814 GB, free: 8.043 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0008022/0.4456, allocations: 286.6 kB / 0.7816 GB, free: 7.992 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.001088/0.4467, allocations: 1.188 MB / 0.7828 GB, free: 7.117 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 8.846e-05/0.4468, allocations: 41.69 kB / 0.7828 GB, free: 7.086 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.4468, allocations: 0 / 0.7828 GB, free: 7.086 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 2.255e-06/0.4468, allocations: 3.938 kB / 0.7828 GB, free: 7.082 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002657/0.4471, allocations: 468.6 kB / 0.7833 GB, free: 6.629 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001167/0.4483, allocations: 1.597 MB / 0.7848 GB, free: 21.26 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002166/0.4485, allocations: 0.6831 MB / 0.7855 GB, free: 20.56 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 1.308e-05/0.4485, allocations: 8.844 kB / 0.7855 GB, free: 20.55 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.208e-05/0.4486, allocations: 17.2 kB / 0.7855 GB, free: 20.55 MB / 0.5762 GB Notification: Performance of SimCode: time 2.21e-07/0.4486, allocations: 0 / 0.7855 GB, free: 20.55 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02384/0.4724, allocations: 7.067 MB / 0.7924 GB, free: 19.9 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.538/8.01, allocations: 12.77 kB / 0.7925 GB, free: 19.89 MB / 0.5762 GB (rm -f BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTubeNegative.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTubeNegative.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTubeNegative.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTubeNegative.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTubeNegative_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_InternalResistancesTwoUTubeNegative.fmu > BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTubeNegative.pipe 2>&1)