Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.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/Buildings 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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: translateModel(Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|TWal.T|TPip1.T|TPip2.T|intRes1UTub.capFil1.T|intRes1UTub.capFil2.T",fileNamePrefix="Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube") translateModel(Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|TWal.T|TPip1.T|TPip2.T|intRes1UTub.capFil1.T|intRes1UTub.capFil2.T",fileNamePrefix="Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001619/0.001619, allocations: 107.4 kB / 16.41 MB, free: 5.977 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.001704/0.001704, allocations: 188.3 kB / 17.34 MB, free: 5.586 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.418/1.418, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.567/2.567, allocations: 390.3 MB / 0.6655 GB, free: 0.6133 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001462/0.001462, allocations: 67.83 kB / 0.9516 GB, free: 7.582 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9159/0.9174, allocations: 140.4 MB / 1.089 GB, free: 5.508 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube): time 0.004623/0.9221, allocations: 3.04 MB / 1.092 GB, free: 3.379 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.003029/0.9252, allocations: 2.149 MB / 1.094 GB, free: 1.816 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002725/0.9254, allocations: 5.469 kB / 1.094 GB, free: 1.816 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.001622/0.9271, allocations: 0.4932 MB / 1.094 GB, free: 1.594 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0003974/0.9275, allocations: 153.3 kB / 1.094 GB, free: 1.492 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001585/0.9276, allocations: 56.38 kB / 1.094 GB, free: 1.457 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0005528/0.9282, allocations: 442.8 kB / 1.095 GB, free: 1.238 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002862/0.9285, allocations: 164.9 kB / 1.095 GB, free: 1.148 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002546/0.9288, allocations: 156.5 kB / 1.095 GB, free: 1.074 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002605/0.929, allocations: 181.6 kB / 1.095 GB, free: 0.9805 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 6.802e-05/0.9291, allocations: 38.62 kB / 1.095 GB, free: 0.9766 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 8.253e-05/0.9292, allocations: 34.97 kB / 1.095 GB, free: 0.9766 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001345/0.9293, allocations: 94.55 kB / 1.095 GB, free: 0.9219 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0002138/0.9296, allocations: 213.7 kB / 1.096 GB, free: 0.793 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0007275/0.9303, allocations: 0.5469 MB / 1.096 GB, free: 0.5938 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 6.412e-06/0.9303, allocations: 1.281 kB / 1.096 GB, free: 0.5938 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.342e-06/0.9303, allocations: 4 kB / 1.096 GB, free: 0.5898 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 9.187e-06/0.9303, allocations: 0 / 1.096 GB, free: 0.5898 MB / 0.8575 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.001096/0.9314, allocations: 0.698 MB / 1.097 GB, free: 20 kB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.725e-05/0.9315, allocations: 13 kB / 1.097 GB, free: 16 kB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001318/0.9316, allocations: 50.61 kB / 1.097 GB, free: 15.98 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006457/0.9323, allocations: 372.6 kB / 1.097 GB, free: 15.68 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.984e-05/0.9323, allocations: 21.06 kB / 1.097 GB, free: 15.67 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.824e-05/0.9324, allocations: 21.97 kB / 1.097 GB, free: 15.66 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004774/0.9329, allocations: 200.1 kB / 1.098 GB, free: 15.57 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.531e-05/0.9329, allocations: 5.328 kB / 1.098 GB, free: 15.56 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.536e-05/0.9329, allocations: 9.781 kB / 1.098 GB, free: 15.55 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.177e-05/0.9329, allocations: 5.5 kB / 1.098 GB, free: 15.55 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004538/0.9334, allocations: 172.7 kB / 1.098 GB, free: 15.5 MB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001417/0.9348, allocations: 0.8577 MB / 1.099 GB, free: 14.9 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003435/0.9352, allocations: 169.2 kB / 1.099 GB, free: 14.82 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002369/0.9354, allocations: 108.8 kB / 1.099 GB, free: 14.77 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 1.852e-05/0.9355, allocations: 1.438 kB / 1.099 GB, free: 14.77 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.737e-05/0.9355, allocations: 36.83 kB / 1.099 GB, free: 14.73 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=18): time 1.373e-06/0.9355, allocations: 0 / 1.099 GB, free: 14.73 MB / 0.8731 GB Notification: Performance of matching and sorting (n=18): time 0.0006394/0.9362, allocations: 261.3 kB / 1.099 GB, free: 14.61 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.732e-05/0.9362, allocations: 53.09 kB / 1.099 GB, free: 14.55 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005606/0.9368, allocations: 418.9 kB / 1.1 GB, free: 14.35 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 2.735e-05/0.9368, allocations: 26.83 kB / 1.1 GB, free: 14.32 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001623/0.937, allocations: 210.8 kB / 1.1 GB, free: 14.14 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 7.058e-05/0.9371, allocations: 60.23 kB / 1.1 GB, free: 14.09 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.346e-05/0.9371, allocations: 31.5 kB / 1.1 GB, free: 14.07 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001476/0.9373, allocations: 351 kB / 1.1 GB, free: 13.74 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001556/0.9374, allocations: 56.86 kB / 1.1 GB, free: 13.72 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001469/0.9376, allocations: 55.25 kB / 1.1 GB, free: 13.7 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003033/0.9379, allocations: 131.3 kB / 1.1 GB, free: 13.65 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-06/0.9379, allocations: 0 / 1.1 GB, free: 13.65 MB / 0.8731 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.000442/0.9384, allocations: 218.4 kB / 1.101 GB, free: 13.54 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 2.029e-05/0.9384, allocations: 4.688 kB / 1.101 GB, free: 13.54 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.149e-06/0.9384, allocations: 1.344 kB / 1.101 GB, free: 13.54 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.998e-05/0.9384, allocations: 4.688 kB / 1.101 GB, free: 13.54 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002832/0.9387, allocations: 54.27 kB / 1.101 GB, free: 13.54 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.783e-06/0.9387, allocations: 0.9688 kB / 1.101 GB, free: 13.54 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001541/0.9389, allocations: 21.25 kB / 1.101 GB, free: 13.52 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.267e-05/0.9389, allocations: 3.25 kB / 1.101 GB, free: 13.52 MB / 0.8731 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.0001849/0.9391, allocations: 170 kB / 1.101 GB, free: 13.38 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.971e-05/0.9392, allocations: 36.47 kB / 1.101 GB, free: 13.36 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.134e-05/0.9393, allocations: 44 kB / 1.101 GB, free: 13.32 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.216e-06/0.9393, allocations: 2.188 kB / 1.101 GB, free: 13.32 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.565e-06/0.9393, allocations: 1.094 kB / 1.101 GB, free: 13.32 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.679e-06/0.9393, allocations: 1.266 kB / 1.101 GB, free: 13.32 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005275/0.9398, allocations: 375.4 kB / 1.101 GB, free: 13.04 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/0.9399, allocations: 0 / 1.101 GB, free: 13.04 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002756/0.9401, allocations: 59.36 kB / 1.101 GB, free: 13.04 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.005e-06/0.9401, allocations: 5 kB / 1.101 GB, free: 13.03 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.854e-05/0.9402, allocations: 5.844 kB / 1.101 GB, free: 13.03 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.886e-06/0.9402, allocations: 5.031 kB / 1.101 GB, free: 13.02 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.9402, allocations: 0 / 1.101 GB, free: 13.02 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006549/0.9408, allocations: 376.1 kB / 1.102 GB, free: 12.8 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001149/0.941, allocations: 122.7 kB / 1.102 GB, free: 12.67 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.878e-05/0.941, allocations: 6.172 kB / 1.102 GB, free: 12.67 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001592/0.9412, allocations: 14.75 kB / 1.102 GB, free: 12.66 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.801e-05/0.9413, allocations: 9.844 kB / 1.102 GB, free: 12.66 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.275e-05/0.9413, allocations: 7.672 kB / 1.102 GB, free: 12.66 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0003918/0.9417, allocations: 300 kB / 1.102 GB, free: 12.51 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.2e-07/0.9417, allocations: 0 / 1.102 GB, free: 12.51 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0003425/0.942, allocations: 76.38 kB / 1.102 GB, free: 12.5 MB / 0.8731 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.0001562/0.9422, allocations: 114.8 kB / 1.102 GB, free: 12.4 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0004194/0.9426, allocations: 147.8 kB / 1.103 GB, free: 12.35 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.9426, allocations: 0 / 1.103 GB, free: 12.35 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0001808/0.9428, allocations: 78.27 kB / 1.103 GB, free: 12.33 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005839/0.9434, allocations: 99.33 kB / 1.103 GB, free: 12.29 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001526/0.9449, allocations: 0.7836 MB / 1.103 GB, free: 11.79 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004719/0.9454, allocations: 0.7936 MB / 1.104 GB, free: 11.09 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.386e-05/0.9455, allocations: 25.06 kB / 1.104 GB, free: 11.08 MB / 0.8731 GB Notification: Performance of SimCode: time 2e-07/0.9455, allocations: 0.5938 kB / 1.104 GB, free: 11.08 MB / 0.8731 GB Notification: Performance of Templates: time 0.01079/0.9563, allocations: 4.389 MB / 1.109 GB, free: 10.57 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.makefile (rm -f Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.pipe ; mkfifo Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.pipe >> ../files/Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.sim & ./Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesOneUTube.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches