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.006835/0.006835, allocations: 101.5 kB / 15.73 MB, free: 6.031 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.001608/0.001608, allocations: 188.6 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.296/1.296, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002147/0.002147, allocations: 282.5 kB / 290.8 MB, free: 1.922 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9285/0.9285, allocations: 169.3 MB / 0.4983 GB, free: 13.8 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001839/0.001839, allocations: 102.3 kB / 0.681 GB, free: 15.96 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1508/0.1526, allocations: 86.98 MB / 0.766 GB, free: 8.902 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube): time 0.003935/0.1566, allocations: 3.013 MB / 0.7689 GB, free: 5.875 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.002742/0.1594, allocations: 2.141 MB / 0.771 GB, free: 3.723 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002708/0.1597, allocations: 8 kB / 0.771 GB, free: 3.715 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.001459/0.1612, allocations: 0.4938 MB / 0.7715 GB, free: 3.219 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0004166/0.1616, allocations: 154.8 kB / 0.7716 GB, free: 3.066 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001475/0.1618, allocations: 55.94 kB / 0.7717 GB, free: 3.012 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0005205/0.1623, allocations: 457.8 kB / 0.7721 GB, free: 2.562 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002634/0.1626, allocations: 155.1 kB / 0.7723 GB, free: 2.406 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002448/0.1628, allocations: 151.4 kB / 0.7724 GB, free: 2.258 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002585/0.1631, allocations: 179.2 kB / 0.7726 GB, free: 2.082 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 5.859e-05/0.1632, allocations: 40 kB / 0.7726 GB, free: 2.043 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 6.548e-05/0.1632, allocations: 35.94 kB / 0.7726 GB, free: 2.008 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0001084/0.1634, allocations: 95.67 kB / 0.7727 GB, free: 1.914 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0002/0.1636, allocations: 215 kB / 0.7729 GB, free: 1.703 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0004789/0.164, allocations: 0.5579 MB / 0.7735 GB, free: 1.145 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 5.1e-06/0.1641, allocations: 4 kB / 0.7735 GB, free: 1.141 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.473e-06/0.1641, allocations: 0 / 0.7735 GB, free: 1.141 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.299e-05/0.1641, allocations: 3.938 kB / 0.7735 GB, free: 1.137 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.001055/0.1651, allocations: 0.7046 MB / 0.7742 GB, free: 392 kB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.713e-05/0.1652, allocations: 8.031 kB / 0.7742 GB, free: 384 kB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.42e-05/0.1653, allocations: 54.73 kB / 0.7742 GB, free: 320 kB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.322e-05/0.1654, allocations: 44.38 kB / 0.7743 GB, free: 276 kB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2953/0.4606, allocations: 379.5 kB / 0.7746 GB, free: 15.02 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.362e-05/0.4607, allocations: 17.12 kB / 0.7747 GB, free: 15.02 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.537e-05/0.4607, allocations: 21.22 kB / 0.7747 GB, free: 15.02 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004564/0.4612, allocations: 202 kB / 0.7749 GB, free: 14.98 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.414e-05/0.4612, allocations: 0.625 kB / 0.7749 GB, free: 14.98 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.11e-05/0.4613, allocations: 9.359 kB / 0.7749 GB, free: 14.98 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.357e-06/0.4613, allocations: 5.469 kB / 0.7749 GB, free: 14.98 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003823/0.4617, allocations: 170 kB / 0.7751 GB, free: 14.98 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001163/0.4628, allocations: 0.8633 MB / 0.7759 GB, free: 14.58 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002796/0.4631, allocations: 157.4 kB / 0.776 GB, free: 14.55 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002077/0.4633, allocations: 110.8 kB / 0.7762 GB, free: 14.55 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 1.337e-05/0.4634, allocations: 1.625 kB / 0.7762 GB, free: 14.55 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.704e-05/0.4634, allocations: 35.75 kB / 0.7762 GB, free: 14.51 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=18): time 2.354e-06/0.4634, allocations: 0.8125 kB / 0.7762 GB, free: 14.51 MB / 0.5606 GB Notification: Performance of matching and sorting (n=18): time 0.0005547/0.464, allocations: 254.9 kB / 0.7764 GB, free: 14.45 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.211e-05/0.464, allocations: 56.5 kB / 0.7765 GB, free: 14.38 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004317/0.4644, allocations: 414.2 kB / 0.7769 GB, free: 14.19 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.264e-05/0.4645, allocations: 29.7 kB / 0.7769 GB, free: 14.15 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001068/0.4646, allocations: 207.8 kB / 0.7771 GB, free: 13.98 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 4.995e-05/0.4646, allocations: 68.3 kB / 0.7772 GB, free: 13.93 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.175e-05/0.4647, allocations: 30.88 kB / 0.7772 GB, free: 13.91 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 6.692e-05/0.4648, allocations: 351.5 kB / 0.7775 GB, free: 13.57 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000143/0.4649, allocations: 56.23 kB / 0.7776 GB, free: 13.56 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001321/0.465, allocations: 62.84 kB / 0.7777 GB, free: 13.54 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002975/0.4653, allocations: 135.2 kB / 0.7778 GB, free: 13.48 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.4654, allocations: 0 / 0.7778 GB, free: 13.48 MB / 0.5606 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003615/0.4657, allocations: 208.6 kB / 0.778 GB, free: 13.38 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.075e-05/0.4658, allocations: 5.203 kB / 0.778 GB, free: 13.38 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.951e-06/0.4658, allocations: 0.5312 kB / 0.778 GB, free: 13.38 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.587e-05/0.4658, allocations: 3.656 kB / 0.778 GB, free: 13.38 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000242/0.466, allocations: 55.41 kB / 0.778 GB, free: 13.38 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.021e-06/0.466, allocations: 0.8125 kB / 0.778 GB, free: 13.38 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000134/0.4662, allocations: 23.67 kB / 0.7781 GB, free: 13.36 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.09e-05/0.4662, allocations: 4.047 kB / 0.7781 GB, free: 13.36 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.0001194/0.4663, allocations: 166 kB / 0.7782 GB, free: 13.22 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.501e-05/0.4664, allocations: 38.97 kB / 0.7783 GB, free: 13.2 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.883e-05/0.4665, allocations: 39.94 kB / 0.7783 GB, free: 13.17 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.807e-06/0.4665, allocations: 6.906 kB / 0.7783 GB, free: 13.17 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.729e-06/0.4665, allocations: 0 / 0.7783 GB, free: 13.17 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.891e-06/0.4665, allocations: 6.609 kB / 0.7783 GB, free: 13.17 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003661/0.4669, allocations: 371.8 kB / 0.7787 GB, free: 12.9 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/0.4669, allocations: 1.188 kB / 0.7787 GB, free: 12.9 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002506/0.4671, allocations: 55.33 kB / 0.7787 GB, free: 12.9 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.317e-06/0.4671, allocations: 7.031 kB / 0.7787 GB, free: 12.89 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.363e-05/0.4672, allocations: 2.734 kB / 0.7787 GB, free: 12.89 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.883e-06/0.4672, allocations: 2.219 kB / 0.7787 GB, free: 12.89 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.11e-07/0.4672, allocations: 0 / 0.7787 GB, free: 12.89 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005296/0.4677, allocations: 387.9 kB / 0.7791 GB, free: 12.66 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 7.722e-05/0.4678, allocations: 118.4 kB / 0.7792 GB, free: 12.54 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.462e-05/0.4678, allocations: 3.047 kB / 0.7792 GB, free: 12.54 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000151/0.468, allocations: 10.06 kB / 0.7792 GB, free: 12.54 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.999e-05/0.4681, allocations: 11.61 kB / 0.7792 GB, free: 12.54 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.044e-05/0.4681, allocations: 11.03 kB / 0.7793 GB, free: 12.53 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.000305/0.4684, allocations: 303.8 kB / 0.7795 GB, free: 12.38 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.1e-07/0.4684, allocations: 4.031 kB / 0.7795 GB, free: 12.38 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0003044/0.4687, allocations: 71 kB / 0.7796 GB, free: 12.37 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.0007428/0.4694, allocations: 0.9226 MB / 0.7805 GB, free: 11.61 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0003337/0.4698, allocations: 144.9 kB / 0.7807 GB, free: 11.57 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.305e-06/0.4698, allocations: 0.9375 kB / 0.7807 GB, free: 11.57 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0001544/0.47, allocations: 82.66 kB / 0.7807 GB, free: 11.54 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005544/0.4705, allocations: 95.75 kB / 0.7808 GB, free: 11.51 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004043/0.4746, allocations: 3.479 MB / 0.7842 GB, free: 9.477 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002179/0.4748, allocations: 0.7953 MB / 0.785 GB, free: 8.77 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0001562/0.475, allocations: 39.17 kB / 0.785 GB, free: 8.762 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001358/0.4751, allocations: 113.8 kB / 0.7851 GB, free: 8.68 MB / 0.5606 GB Notification: Performance of SimCode: time 1.403e-06/0.4751, allocations: 0 / 0.7851 GB, free: 8.68 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02788/0.503, allocations: 8.126 MB / 0.7931 GB, free: 7.883 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.614/8.117, allocations: 14.05 kB / 0.7931 GB, free: 7.879 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)