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.006258/0.006258, allocations: 101.1 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.001764/0.001764, allocations: 190.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.319/1.319, allocations: 222.9 MB / 240.4 MB, free: 4.191 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002172/0.002172, allocations: 278.6 kB / 290.8 MB, free: 1.801 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9557/0.9557, allocations: 169.3 MB / 0.4983 GB, free: 13.83 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001929/0.00193, allocations: 91.92 kB / 0.681 GB, free: 15.98 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1598/0.1617, allocations: 86.98 MB / 0.7659 GB, free: 8.926 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube): time 0.004038/0.1658, allocations: 3.026 MB / 0.7689 GB, free: 5.887 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.002788/0.1686, allocations: 2.141 MB / 0.771 GB, free: 3.734 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000308/0.1689, allocations: 4 kB / 0.771 GB, free: 3.73 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.001542/0.1705, allocations: 0.5016 MB / 0.7715 GB, free: 3.227 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0003762/0.1709, allocations: 146.8 kB / 0.7716 GB, free: 3.082 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001451/0.1711, allocations: 59.92 kB / 0.7717 GB, free: 3.023 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0005201/0.1716, allocations: 449.8 kB / 0.7721 GB, free: 2.582 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002581/0.1719, allocations: 159.1 kB / 0.7723 GB, free: 2.422 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002277/0.1721, allocations: 151.4 kB / 0.7724 GB, free: 2.273 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002758/0.1724, allocations: 183.1 kB / 0.7726 GB, free: 2.094 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 6.006e-05/0.1725, allocations: 36 kB / 0.7726 GB, free: 2.059 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 6.485e-05/0.1725, allocations: 32 kB / 0.7726 GB, free: 2.027 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0001134/0.1726, allocations: 95.67 kB / 0.7727 GB, free: 1.934 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0002079/0.1729, allocations: 222.9 kB / 0.7729 GB, free: 1.715 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0004986/0.1734, allocations: 0.5527 MB / 0.7735 GB, free: 1.16 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.468e-06/0.1734, allocations: 4 kB / 0.7735 GB, free: 1.156 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.242e-06/0.1734, allocations: 0 / 0.7735 GB, free: 1.156 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.469e-05/0.1734, allocations: 0 / 0.7735 GB, free: 1.156 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.001107/0.1745, allocations: 0.7007 MB / 0.7742 GB, free: 416 kB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.769e-05/0.1746, allocations: 8.031 kB / 0.7742 GB, free: 408 kB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.881e-05/0.1746, allocations: 62.73 kB / 0.7742 GB, free: 336 kB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.163e-05/0.1747, allocations: 48.38 kB / 0.7743 GB, free: 288 kB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2995/0.4742, allocations: 371.9 kB / 0.7746 GB, free: 15.02 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.107e-05/0.4743, allocations: 16.25 kB / 0.7747 GB, free: 15.02 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.247e-05/0.4744, allocations: 20.69 kB / 0.7747 GB, free: 15.02 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000664/0.4751, allocations: 201 kB / 0.7749 GB, free: 14.98 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.272e-05/0.4751, allocations: 0.7188 kB / 0.7749 GB, free: 14.98 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.92e-05/0.4752, allocations: 9.312 kB / 0.7749 GB, free: 14.98 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.342e-05/0.4752, allocations: 5.219 kB / 0.7749 GB, free: 14.98 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005598/0.4758, allocations: 171 kB / 0.7751 GB, free: 14.98 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001662/0.4774, allocations: 0.8605 MB / 0.7759 GB, free: 14.59 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003324/0.4778, allocations: 153.4 kB / 0.776 GB, free: 14.56 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002257/0.478, allocations: 117 kB / 0.7761 GB, free: 14.55 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 2.048e-05/0.4781, allocations: 3.125 kB / 0.7762 GB, free: 14.55 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.347e-05/0.4781, allocations: 37.16 kB / 0.7762 GB, free: 14.52 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=18): time 2.254e-06/0.4781, allocations: 0 / 0.7762 GB, free: 14.52 MB / 0.5606 GB Notification: Performance of matching and sorting (n=18): time 0.0006847/0.4788, allocations: 252.6 kB / 0.7764 GB, free: 14.46 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.554e-05/0.4788, allocations: 56.78 kB / 0.7765 GB, free: 14.4 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004939/0.4793, allocations: 418.4 kB / 0.7769 GB, free: 14.2 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.462e-05/0.4794, allocations: 26.52 kB / 0.7769 GB, free: 14.17 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001221/0.4795, allocations: 212.5 kB / 0.7771 GB, free: 14 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 5.483e-05/0.4795, allocations: 59.47 kB / 0.7772 GB, free: 13.95 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.491e-05/0.4796, allocations: 31.61 kB / 0.7772 GB, free: 13.93 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 9.075e-05/0.4797, allocations: 352.6 kB / 0.7775 GB, free: 13.59 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001547/0.4799, allocations: 57.94 kB / 0.7776 GB, free: 13.57 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001449/0.48, allocations: 61.27 kB / 0.7776 GB, free: 13.56 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003055/0.4803, allocations: 142.2 kB / 0.7778 GB, free: 13.5 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.4803, allocations: 0 / 0.7778 GB, free: 13.5 MB / 0.5606 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0004075/0.4808, allocations: 210.4 kB / 0.778 GB, free: 13.4 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.803e-05/0.4808, allocations: 7.625 kB / 0.778 GB, free: 13.4 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.221e-06/0.4808, allocations: 1.703 kB / 0.778 GB, free: 13.4 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.675e-05/0.4808, allocations: 0.7812 kB / 0.778 GB, free: 13.4 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002644/0.4811, allocations: 54.81 kB / 0.778 GB, free: 13.39 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.826e-06/0.4811, allocations: 1.875 kB / 0.778 GB, free: 13.39 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000161/0.4813, allocations: 24 kB / 0.7781 GB, free: 13.38 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.228e-05/0.4813, allocations: 3.031 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.0001384/0.4814, allocations: 163.7 kB / 0.7782 GB, free: 13.24 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.911e-05/0.4815, allocations: 36.92 kB / 0.7783 GB, free: 13.22 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.948e-05/0.4816, allocations: 41.45 kB / 0.7783 GB, free: 13.19 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.078e-06/0.4816, allocations: 5.406 kB / 0.7783 GB, free: 13.19 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.773e-06/0.4816, allocations: 4.344 kB / 0.7783 GB, free: 13.19 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.791e-06/0.4816, allocations: 5.156 kB / 0.7783 GB, free: 13.19 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004343/0.4821, allocations: 369.8 kB / 0.7787 GB, free: 12.93 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.923e-06/0.4821, allocations: 0.625 kB / 0.7787 GB, free: 12.93 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002738/0.4823, allocations: 59.31 kB / 0.7787 GB, free: 12.92 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.574e-06/0.4824, allocations: 0.875 kB / 0.7787 GB, free: 12.92 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.494e-05/0.4824, allocations: 1.281 kB / 0.7787 GB, free: 12.92 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.965e-06/0.4824, allocations: 2.781 kB / 0.7787 GB, free: 12.92 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.4824, allocations: 0 / 0.7787 GB, free: 12.92 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000588/0.483, allocations: 384.2 kB / 0.7791 GB, free: 12.68 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 8.431e-05/0.4831, allocations: 123.2 kB / 0.7792 GB, free: 12.56 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.161e-05/0.4831, allocations: 2.109 kB / 0.7792 GB, free: 12.56 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001553/0.4833, allocations: 12.48 kB / 0.7792 GB, free: 12.55 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.935e-05/0.4833, allocations: 17.39 kB / 0.7792 GB, free: 12.55 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.121e-05/0.4834, allocations: 8.734 kB / 0.7793 GB, free: 12.54 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0003222/0.4837, allocations: 300.6 kB / 0.7795 GB, free: 12.4 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.4e-07/0.4837, allocations: 0 / 0.7795 GB, free: 12.4 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0003266/0.484, allocations: 79.25 kB / 0.7796 GB, free: 12.38 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.0007616/0.4848, allocations: 0.9218 MB / 0.7805 GB, free: 11.62 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0003757/0.4852, allocations: 143.3 kB / 0.7807 GB, free: 11.58 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.434e-06/0.4852, allocations: 0 / 0.7807 GB, free: 11.58 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.000172/0.4854, allocations: 80.98 kB / 0.7807 GB, free: 11.56 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005355/0.4859, allocations: 88.64 kB / 0.7808 GB, free: 11.53 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004196/0.4901, allocations: 3.482 MB / 0.7842 GB, free: 9.492 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000281/0.4904, allocations: 0.7965 MB / 0.785 GB, free: 8.789 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0001688/0.4906, allocations: 32.05 kB / 0.785 GB, free: 8.781 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001423/0.4908, allocations: 118.1 kB / 0.7851 GB, free: 8.695 MB / 0.5606 GB Notification: Performance of SimCode: time 2.214e-06/0.4908, allocations: 4 kB / 0.7851 GB, free: 8.691 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02676/0.5175, allocations: 8.012 MB / 0.793 GB, free: 7.898 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.713/8.231, allocations: 4.25 kB / 0.793 GB, free: 7.898 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesOneUTube_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesOneUTube.fmu > BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.pipe 2>&1)