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.005281/0.005281, allocations: 101.3 kB / 15.73 MB, free: 6.051 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.00136/0.00136, allocations: 194.3 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.424/1.424, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002566/0.002566, allocations: 298.2 kB / 290.8 MB, free: 14.45 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.993/0.993, allocations: 169.2 MB / 0.4983 GB, free: 4.441 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002934/0.002935, allocations: 99.84 kB / 0.681 GB, free: 7.406 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4214/0.4244, allocations: 86.98 MB / 0.766 GB, free: 3.859 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTubeNegative): time 0.002434/0.4269, allocations: 1.434 MB / 0.7674 GB, free: 2.418 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.004379/0.4313, allocations: 2.901 MB / 0.7702 GB, free: 15.5 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.736e-05/0.4313, allocations: 4 kB / 0.7702 GB, free: 15.5 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 2.432e-05/0.4313, allocations: 7.922 kB / 0.7702 GB, free: 15.49 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 7.314e-05/0.4314, allocations: 11.88 kB / 0.7702 GB, free: 15.48 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.003848/0.4353, allocations: 1.571 MB / 0.7718 GB, free: 13.94 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 9.71e-05/0.4354, allocations: 43.67 kB / 0.7718 GB, free: 13.89 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 3.949e-05/0.4355, allocations: 4 kB / 0.7718 GB, free: 13.89 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 3.299e-05/0.4355, allocations: 19.92 kB / 0.7718 GB, free: 13.87 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 2.983e-05/0.4355, allocations: 15.88 kB / 0.7719 GB, free: 13.86 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 1.067e-05/0.4356, allocations: 4 kB / 0.7719 GB, free: 13.85 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002322/0.4379, allocations: 1.533 MB / 0.7734 GB, free: 12.32 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 1.325e-05/0.4379, allocations: 7.938 kB / 0.7734 GB, free: 12.31 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 4.361e-05/0.438, allocations: 23.86 kB / 0.7734 GB, free: 12.29 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.001608/0.4396, allocations: 1.108 MB / 0.7745 GB, free: 11.18 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 4.389e-06/0.4396, allocations: 0 / 0.7745 GB, free: 11.18 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.753e-06/0.4396, allocations: 0 / 0.7745 GB, free: 11.18 MB / 0.545 GB Notification: Performance of Transformations before backend: time 5.66e-06/0.4396, allocations: 0 / 0.7745 GB, free: 11.18 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.0007253/0.4403, allocations: 0.5363 MB / 0.775 GB, free: 10.59 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.88e-05/0.4404, allocations: 8.031 kB / 0.775 GB, free: 10.59 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.434e-05/0.4405, allocations: 106 kB / 0.7751 GB, free: 10.47 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.986e-05/0.4405, allocations: 84.17 kB / 0.7752 GB, free: 10.39 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001966/0.4407, allocations: 247.6 kB / 0.7754 GB, free: 10.11 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.991e-05/0.4408, allocations: 150.9 kB / 0.7756 GB, free: 9.961 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.881e-05/0.4409, allocations: 154.9 kB / 0.7757 GB, free: 9.809 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.075e-05/0.441, allocations: 108.9 kB / 0.7758 GB, free: 9.695 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.437e-05/0.441, allocations: 75.28 kB / 0.7759 GB, free: 9.621 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.089e-05/0.4411, allocations: 158.5 kB / 0.776 GB, free: 9.465 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.089e-05/0.4412, allocations: 150.6 kB / 0.7762 GB, free: 9.316 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.072e-05/0.4412, allocations: 150.6 kB / 0.7763 GB, free: 9.168 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003687/0.4416, allocations: 473.9 kB / 0.7768 GB, free: 8.656 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001047/0.4417, allocations: 169.1 kB / 0.7769 GB, free: 8.48 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.634e-05/0.4418, allocations: 80.14 kB / 0.777 GB, free: 8.398 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 3.4e-05/0.4418, allocations: 83.16 kB / 0.7771 GB, free: 8.316 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.679e-05/0.4419, allocations: 117.8 kB / 0.7772 GB, free: 8.191 MB / 0.545 GB Notification: Performance of pre-optimization done (n=0): time 1.062e-06/0.4419, allocations: 0 / 0.7772 GB, free: 8.191 MB / 0.545 GB Notification: Performance of matching and sorting (n=0): time 7.746e-05/0.442, allocations: 29.66 kB / 0.7772 GB, free: 8.156 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.53e-05/0.4421, allocations: 130.7 kB / 0.7774 GB, free: 8.016 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001494/0.4422, allocations: 136.5 kB / 0.7775 GB, free: 7.875 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.62e-05/0.4422, allocations: 25.7 kB / 0.7775 GB, free: 7.844 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 7.045e-05/0.4423, allocations: 104.1 kB / 0.7776 GB, free: 7.738 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 2.965e-06/0.4423, allocations: 0 / 0.7776 GB, free: 7.738 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.826e-05/0.4424, allocations: 25.7 kB / 0.7776 GB, free: 7.707 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001404/0.4425, allocations: 310.8 kB / 0.7779 GB, free: 7.395 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.713e-05/0.4425, allocations: 8 kB / 0.7779 GB, free: 7.387 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.674e-05/0.4426, allocations: 7.938 kB / 0.7779 GB, free: 7.379 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.311e-05/0.4426, allocations: 20.84 kB / 0.778 GB, free: 7.355 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.4426, allocations: 0 / 0.778 GB, free: 7.355 MB / 0.545 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001355/0.4428, allocations: 45.64 kB / 0.778 GB, free: 7.305 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.773e-05/0.4428, allocations: 8 kB / 0.778 GB, free: 7.297 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.966e-05/0.4428, allocations: 64 / 0.778 GB, free: 7.297 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.583e-05/0.4428, allocations: 7.938 kB / 0.778 GB, free: 7.289 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.122e-06/0.4428, allocations: 4 kB / 0.778 GB, free: 7.285 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.099e-06/0.4428, allocations: 0 / 0.778 GB, free: 7.285 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.53e-05/0.4429, allocations: 3.953 kB / 0.778 GB, free: 7.281 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.5e-06/0.4429, allocations: 0 / 0.778 GB, free: 7.281 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.0001189/0.443, allocations: 189.1 kB / 0.7782 GB, free: 7.086 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.733e-05/0.4431, allocations: 112.8 kB / 0.7783 GB, free: 6.969 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.73e-05/0.4432, allocations: 116.9 kB / 0.7784 GB, free: 6.848 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.446e-05/0.4432, allocations: 184.2 kB / 0.7786 GB, free: 6.66 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.403e-05/0.4433, allocations: 180.2 kB / 0.7788 GB, free: 6.477 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.334e-05/0.4434, allocations: 180.3 kB / 0.779 GB, free: 6.293 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002894/0.4437, allocations: 417.1 kB / 0.7794 GB, free: 5.828 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.538e-05/0.4438, allocations: 105 kB / 0.7795 GB, free: 5.719 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.666e-05/0.4438, allocations: 108.9 kB / 0.7796 GB, free: 5.605 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.278e-05/0.4439, allocations: 180.2 kB / 0.7797 GB, free: 5.422 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.502e-05/0.444, allocations: 176.3 kB / 0.7799 GB, free: 5.242 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.208e-05/0.4441, allocations: 192.1 kB / 0.7801 GB, free: 5.047 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.172e-05/0.4442, allocations: 180.3 kB / 0.7803 GB, free: 4.863 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001635/0.4443, allocations: 311.7 kB / 0.7805 GB, free: 4.535 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000103/0.4445, allocations: 194 kB / 0.7807 GB, free: 4.32 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.225e-05/0.4446, allocations: 180.3 kB / 0.7809 GB, free: 4.137 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001139/0.4447, allocations: 101 kB / 0.781 GB, free: 4.031 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.261e-05/0.4448, allocations: 188.2 kB / 0.7812 GB, free: 3.84 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.561e-05/0.4448, allocations: 109 kB / 0.7813 GB, free: 3.727 MB / 0.545 GB Notification: Performance of sorting global known variables: time 7.449e-05/0.4449, allocations: 95.27 kB / 0.7814 GB, free: 3.633 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.1e-07/0.4449, allocations: 0 / 0.7814 GB, free: 3.633 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0008935/0.4458, allocations: 291 kB / 0.7817 GB, free: 3.348 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.001426/0.4472, allocations: 1.182 MB / 0.7828 GB, free: 2.137 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0001021/0.4473, allocations: 41.69 kB / 0.7828 GB, free: 2.09 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.4474, allocations: 0 / 0.7828 GB, free: 2.09 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 1.874e-06/0.4474, allocations: 0 / 0.7828 GB, free: 2.09 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005049/0.4479, allocations: 460.2 kB / 0.7833 GB, free: 1.637 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001681/0.4496, allocations: 1.604 MB / 0.7849 GB, free: 15.96 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003321/0.4499, allocations: 0.6807 MB / 0.7855 GB, free: 15.25 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 1.594e-05/0.4499, allocations: 0 / 0.7855 GB, free: 15.25 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.054e-05/0.45, allocations: 27.34 kB / 0.7855 GB, free: 15.22 MB / 0.5606 GB Notification: Performance of SimCode: time 2.9e-07/0.45, allocations: 0 / 0.7855 GB, free: 15.22 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03003/0.48, allocations: 7.076 MB / 0.7925 GB, free: 8.375 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.744/9.224, allocations: 19.97 kB / 0.7925 GB, free: 8.355 MB / 0.5606 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Functions_Validation_InternalResistancesTwoUTubeNegative_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 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)