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.005012/0.005012, allocations: 101.2 kB / 15.73 MB, free: 6.047 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.00117/0.00117, allocations: 194.1 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.304/1.304, allocations: 222.9 MB / 240.4 MB, free: 4.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002255/0.002255, allocations: 274.6 kB / 290.8 MB, free: 1.938 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9425/0.9425, allocations: 169.3 MB / 0.4983 GB, free: 13.84 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001678/0.001678, allocations: 91.86 kB / 0.681 GB, free: 15.97 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1457/0.1474, allocations: 86.97 MB / 0.7659 GB, free: 8.922 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube): time 0.004417/0.1518, allocations: 3.022 MB / 0.7689 GB, free: 5.887 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.002792/0.1546, allocations: 2.148 MB / 0.771 GB, free: 3.727 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002777/0.1549, allocations: 8 kB / 0.771 GB, free: 3.719 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.001481/0.1565, allocations: 0.4965 MB / 0.7715 GB, free: 3.223 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.000381/0.1569, allocations: 146.9 kB / 0.7716 GB, free: 3.078 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001547/0.157, allocations: 59.88 kB / 0.7717 GB, free: 3.02 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0005316/0.1576, allocations: 445.9 kB / 0.7721 GB, free: 2.582 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000245/0.1578, allocations: 163.1 kB / 0.7723 GB, free: 2.418 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002322/0.1581, allocations: 155.4 kB / 0.7724 GB, free: 2.266 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002373/0.1583, allocations: 183.2 kB / 0.7726 GB, free: 2.086 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 5.894e-05/0.1584, allocations: 36 kB / 0.7726 GB, free: 2.051 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 6.24e-05/0.1584, allocations: 32 kB / 0.7726 GB, free: 2.02 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0001086/0.1586, allocations: 99.61 kB / 0.7727 GB, free: 1.922 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0001956/0.1588, allocations: 215 kB / 0.7729 GB, free: 1.711 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0004526/0.1592, allocations: 0.5527 MB / 0.7735 GB, free: 1.156 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.376e-06/0.1592, allocations: 4 kB / 0.7735 GB, free: 1.152 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.553e-06/0.1592, allocations: 0 / 0.7735 GB, free: 1.152 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.692e-05/0.1593, allocations: 0 / 0.7735 GB, free: 1.152 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.001042/0.1603, allocations: 0.6995 MB / 0.7742 GB, free: 416 kB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.876e-05/0.1604, allocations: 12.03 kB / 0.7742 GB, free: 404 kB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.387e-05/0.1604, allocations: 58.67 kB / 0.7742 GB, free: 336 kB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.155e-05/0.1605, allocations: 44.38 kB / 0.7743 GB, free: 292 kB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2869/0.4474, allocations: 376 kB / 0.7746 GB, free: 15.1 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.798e-05/0.4475, allocations: 17.19 kB / 0.7747 GB, free: 15.1 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.85e-05/0.4475, allocations: 21.62 kB / 0.7747 GB, free: 15.1 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000449/0.448, allocations: 201.7 kB / 0.7749 GB, free: 15.07 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.404e-05/0.448, allocations: 0.75 kB / 0.7749 GB, free: 15.07 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.092e-05/0.448, allocations: 9.594 kB / 0.7749 GB, free: 15.07 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.039e-05/0.448, allocations: 6.562 kB / 0.7749 GB, free: 15.07 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000403/0.4485, allocations: 169.1 kB / 0.775 GB, free: 15.06 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001187/0.4496, allocations: 0.8617 MB / 0.7759 GB, free: 14.67 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003004/0.45, allocations: 153.6 kB / 0.776 GB, free: 14.64 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002133/0.4502, allocations: 112.6 kB / 0.7761 GB, free: 14.64 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 1.836e-05/0.4502, allocations: 4.828 kB / 0.7761 GB, free: 14.64 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.011e-05/0.4502, allocations: 36.31 kB / 0.7762 GB, free: 14.6 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=18): time 1.924e-06/0.4502, allocations: 0 / 0.7762 GB, free: 14.6 MB / 0.5606 GB Notification: Performance of matching and sorting (n=18): time 0.0006002/0.4509, allocations: 252 kB / 0.7764 GB, free: 14.55 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.465e-05/0.4509, allocations: 58.55 kB / 0.7765 GB, free: 14.48 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004549/0.4514, allocations: 417.7 kB / 0.7769 GB, free: 14.29 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.323e-05/0.4514, allocations: 29.7 kB / 0.7769 GB, free: 14.25 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001076/0.4515, allocations: 208.6 kB / 0.7771 GB, free: 14.08 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 5.085e-05/0.4516, allocations: 59.48 kB / 0.7772 GB, free: 14.04 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.729e-05/0.4516, allocations: 30.77 kB / 0.7772 GB, free: 14.01 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 8.143e-05/0.4517, allocations: 355.8 kB / 0.7775 GB, free: 13.68 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001555/0.4519, allocations: 59 kB / 0.7776 GB, free: 13.66 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001416/0.452, allocations: 57.19 kB / 0.7776 GB, free: 13.64 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002954/0.4523, allocations: 135.2 kB / 0.7778 GB, free: 13.59 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/0.4523, allocations: 0.5 kB / 0.7778 GB, free: 13.59 MB / 0.5606 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003926/0.4527, allocations: 212.1 kB / 0.778 GB, free: 13.49 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.862e-05/0.4528, allocations: 7.156 kB / 0.778 GB, free: 13.49 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.481e-06/0.4528, allocations: 1.906 kB / 0.778 GB, free: 13.49 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.619e-05/0.4528, allocations: 0 / 0.778 GB, free: 13.49 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002579/0.453, allocations: 55.77 kB / 0.778 GB, free: 13.48 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.244e-06/0.4531, allocations: 1.5 kB / 0.778 GB, free: 13.48 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001378/0.4532, allocations: 23.81 kB / 0.7781 GB, free: 13.47 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.105e-05/0.4532, allocations: 5.844 kB / 0.7781 GB, free: 13.47 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.0001335/0.4534, allocations: 165.2 kB / 0.7782 GB, free: 13.32 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.691e-05/0.4534, allocations: 36.66 kB / 0.7783 GB, free: 13.3 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.74e-05/0.4535, allocations: 41.81 kB / 0.7783 GB, free: 13.28 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.058e-06/0.4535, allocations: 6.234 kB / 0.7783 GB, free: 13.28 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.26e-06/0.4535, allocations: 3.188 kB / 0.7783 GB, free: 13.28 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.429e-06/0.4535, allocations: 7.797 kB / 0.7783 GB, free: 13.27 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003754/0.4539, allocations: 377.5 kB / 0.7787 GB, free: 13 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.392e-06/0.4539, allocations: 0 / 0.7787 GB, free: 13 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002576/0.4542, allocations: 55.39 kB / 0.7787 GB, free: 13 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.936e-06/0.4542, allocations: 2.031 kB / 0.7787 GB, free: 13 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.314e-05/0.4542, allocations: 0.875 kB / 0.7787 GB, free: 13 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.875e-06/0.4542, allocations: 4.219 kB / 0.7787 GB, free: 13 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.4542, allocations: 0 / 0.7787 GB, free: 13 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005634/0.4548, allocations: 385.4 kB / 0.7791 GB, free: 12.77 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 8.596e-05/0.4549, allocations: 123.3 kB / 0.7792 GB, free: 12.64 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.448e-05/0.4549, allocations: 1.984 kB / 0.7792 GB, free: 12.64 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001733/0.4551, allocations: 11.58 kB / 0.7792 GB, free: 12.64 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.948e-05/0.4552, allocations: 9.125 kB / 0.7792 GB, free: 12.64 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.003e-05/0.4552, allocations: 15.03 kB / 0.7793 GB, free: 12.63 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0003121/0.4555, allocations: 300.2 kB / 0.7795 GB, free: 12.48 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.5e-07/0.4555, allocations: 0 / 0.7795 GB, free: 12.48 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0003071/0.4558, allocations: 72.16 kB / 0.7796 GB, free: 12.47 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.000772/0.4566, allocations: 0.9226 MB / 0.7805 GB, free: 11.71 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0003617/0.457, allocations: 145 kB / 0.7806 GB, free: 11.67 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.484e-06/0.457, allocations: 0 / 0.7806 GB, free: 11.67 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0001648/0.4572, allocations: 85.06 kB / 0.7807 GB, free: 11.64 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005391/0.4577, allocations: 96.89 kB / 0.7808 GB, free: 11.61 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004028/0.4617, allocations: 3.475 MB / 0.7842 GB, free: 9.578 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002079/0.462, allocations: 0.7918 MB / 0.785 GB, free: 8.875 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0001479/0.4621, allocations: 32.83 kB / 0.785 GB, free: 8.867 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001343/0.4623, allocations: 124.2 kB / 0.7851 GB, free: 8.777 MB / 0.5606 GB Notification: Performance of SimCode: time 2.355e-06/0.4623, allocations: 0 / 0.7851 GB, free: 8.777 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02456/0.4868, allocations: 7.889 MB / 0.7928 GB, free: 8.07 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.593/8.08, allocations: 4.328 kB / 0.7928 GB, free: 8.07 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)