Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ExchangeValues.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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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.Boreholes.BaseClasses.Examples.ExchangeValues,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y",fileNamePrefix="Buildings_10_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ExchangeValues") translateModel(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ExchangeValues,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y",fileNamePrefix="Buildings_10_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ExchangeValues") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001384/0.001384, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001647/0.001647, allocations: 193.5 kB / 16.14 MB, free: 6.691 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.426/1.426, allocations: 222.9 MB / 239.8 MB, free: 4.633 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.544/2.544, allocations: 437 MB / 0.7099 GB, free: 5.332 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.00129/0.00129, allocations: 71.88 kB / 0.8686 GB, free: 5.219 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5423/0.5436, allocations: 151.6 MB / 1.017 GB, free: 2.832 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ExchangeValues): time 0.002002/0.5456, allocations: 0.6128 MB / 1.017 GB, free: 2.219 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0002619/0.5459, allocations: 115.7 kB / 1.017 GB, free: 2.105 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.527e-05/0.5459, allocations: 0 / 1.017 GB, free: 2.105 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 9.128e-05/0.546, allocations: 7.938 kB / 1.017 GB, free: 2.098 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 5.217e-05/0.5461, allocations: 0 / 1.017 GB, free: 2.098 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.000153/0.5463, allocations: 31.97 kB / 1.017 GB, free: 2.066 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 5.243e-05/0.5463, allocations: 27.97 kB / 1.017 GB, free: 2.039 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 3.61e-05/0.5464, allocations: 0 / 1.017 GB, free: 2.039 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 3.081e-05/0.5464, allocations: 19.98 kB / 1.017 GB, free: 2.02 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 4.126e-05/0.5465, allocations: 8 kB / 1.017 GB, free: 2.012 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.813e-05/0.5465, allocations: 0 / 1.017 GB, free: 2.012 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 4.959e-05/0.5465, allocations: 15.98 kB / 1.017 GB, free: 1.996 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 1.161e-05/0.5466, allocations: 0 / 1.017 GB, free: 1.996 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 3.365e-05/0.5466, allocations: 15.92 kB / 1.017 GB, free: 1.98 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 9.069e-05/0.5467, allocations: 27.95 kB / 1.017 GB, free: 1.953 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.5467, allocations: 0 / 1.017 GB, free: 1.953 MB / 0.7637 GB Notification: Performance of FrontEnd: time 1.001e-06/0.5467, allocations: 0 / 1.017 GB, free: 1.953 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 3.947e-06/0.5467, allocations: 0 / 1.017 GB, free: 1.953 MB / 0.7637 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0003432/0.5471, allocations: 361.2 kB / 1.018 GB, free: 1.543 MB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 3.726e-05/0.5471, allocations: 8.031 kB / 1.018 GB, free: 1.535 MB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.333e-05/0.5471, allocations: 8.875 kB / 1.018 GB, free: 1.527 MB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001138/0.5473, allocations: 160.4 kB / 1.018 GB, free: 1.332 MB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.63e-05/0.5473, allocations: 12.3 kB / 1.018 GB, free: 1.32 MB / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.577e-05/0.5473, allocations: 4.375 kB / 1.018 GB, free: 1.316 MB / 0.7637 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001305/0.5474, allocations: 54.23 kB / 1.018 GB, free: 1.258 MB / 0.7637 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.858e-06/0.5475, allocations: 8.109 kB / 1.018 GB, free: 1.25 MB / 0.7637 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.445e-05/0.5475, allocations: 7.938 kB / 1.018 GB, free: 1.242 MB / 0.7637 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.298e-06/0.5475, allocations: 4 kB / 1.018 GB, free: 1.238 MB / 0.7637 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.949e-05/0.5475, allocations: 11.98 kB / 1.018 GB, free: 1.227 MB / 0.7637 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001329/0.5477, allocations: 149.7 kB / 1.018 GB, free: 1.031 MB / 0.7637 GB Notification: Performance of preOpt comSubExp (simulation): time 6.233e-05/0.5477, allocations: 30.55 kB / 1.018 GB, free: 0.9922 MB / 0.7637 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.841e-05/0.5478, allocations: 20.91 kB / 1.018 GB, free: 0.9688 MB / 0.7637 GB Notification: Performance of preOpt evalFunc (simulation): time 6.893e-06/0.5478, allocations: 0 / 1.018 GB, free: 0.9688 MB / 0.7637 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.36e-05/0.5478, allocations: 30.56 kB / 1.018 GB, free: 0.9297 MB / 0.7637 GB Notification: Performance of pre-optimization done (n=1): time 9.02e-07/0.5478, allocations: 4 kB / 1.018 GB, free: 0.9258 MB / 0.7637 GB Notification: Performance of matching and sorting (n=1): time 0.0002435/0.5481, allocations: 111.3 kB / 1.018 GB, free: 0.8047 MB / 0.7637 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.561e-05/0.5481, allocations: 81.05 kB / 1.018 GB, free: 0.707 MB / 0.7637 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.187e-05/0.5482, allocations: 97.84 kB / 1.019 GB, free: 0.6016 MB / 0.7637 GB Notification: Performance of collectPreVariables (initialization): time 2.27e-05/0.5482, allocations: 29.7 kB / 1.019 GB, free: 0.5664 MB / 0.7637 GB Notification: Performance of collectInitialEqns (initialization): time 2.734e-05/0.5483, allocations: 80.14 kB / 1.019 GB, free: 496 kB / 0.7637 GB Notification: Performance of collectInitialBindings (initialization): time 2.715e-05/0.5483, allocations: 3.906 kB / 1.019 GB, free: 492 kB / 0.7637 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.244e-05/0.5484, allocations: 25.97 kB / 1.019 GB, free: 460 kB / 0.7637 GB Notification: Performance of setup shared object (initialization): time 9.549e-05/0.5485, allocations: 314.8 kB / 1.019 GB, free: 136 kB / 0.7637 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.055e-05/0.5485, allocations: 12 kB / 1.019 GB, free: 124 kB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.962e-05/0.5485, allocations: 11.98 kB / 1.019 GB, free: 112 kB / 0.7637 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.191e-05/0.5486, allocations: 80.27 kB / 1.019 GB, free: 16 kB / 0.7637 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.5486, allocations: 0 / 1.019 GB, free: 16 kB / 0.7637 GB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001662/0.5488, allocations: 95.38 kB / 1.019 GB, free: 15.91 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 3.849e-05/0.5488, allocations: 29.7 kB / 1.019 GB, free: 15.88 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.955e-06/0.5489, allocations: 11.97 kB / 1.019 GB, free: 15.86 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.126e-05/0.5489, allocations: 0 / 1.019 GB, free: 15.86 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.32e-07/0.5489, allocations: 4 kB / 1.019 GB, free: 15.86 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.191e-06/0.5489, allocations: 3.984 kB / 1.019 GB, free: 15.86 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001381/0.549, allocations: 8 kB / 1.019 GB, free: 15.85 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.676e-05/0.5491, allocations: 8 kB / 1.019 GB, free: 15.84 MB / 0.7794 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: 1 * 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 9.235e-05/0.5492, allocations: 142 kB / 1.019 GB, free: 15.69 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.843e-05/0.5492, allocations: 4 kB / 1.019 GB, free: 15.68 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.449e-05/0.5492, allocations: 11.06 kB / 1.019 GB, free: 15.67 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.533e-06/0.5492, allocations: 3.938 kB / 1.019 GB, free: 15.67 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.286e-06/0.5492, allocations: 0 / 1.019 GB, free: 15.67 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.034e-06/0.5492, allocations: 0 / 1.019 GB, free: 15.67 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.205e-05/0.5493, allocations: 153.7 kB / 1.02 GB, free: 15.47 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.213e-06/0.5493, allocations: 0 / 1.02 GB, free: 15.47 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.51e-07/0.5493, allocations: 0 / 1.02 GB, free: 15.47 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.208e-06/0.5493, allocations: 4 kB / 1.02 GB, free: 15.46 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.297e-05/0.5494, allocations: 7.922 kB / 1.02 GB, free: 15.46 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.222e-06/0.5494, allocations: 0 / 1.02 GB, free: 15.46 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/0.5494, allocations: 7.938 kB / 1.02 GB, free: 15.45 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001619/0.5495, allocations: 126.8 kB / 1.02 GB, free: 15.3 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.072e-05/0.5496, allocations: 77.11 kB / 1.02 GB, free: 15.21 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.03e-05/0.5496, allocations: 7.938 kB / 1.02 GB, free: 15.2 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001067/0.5497, allocations: 4 kB / 1.02 GB, free: 15.2 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.115e-05/0.5497, allocations: 7.984 kB / 1.02 GB, free: 15.19 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.254e-06/0.5498, allocations: 0 / 1.02 GB, free: 15.19 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 4.22e-05/0.5498, allocations: 87.31 kB / 1.02 GB, free: 15.1 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.31e-07/0.5498, allocations: 0 / 1.02 GB, free: 15.1 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002072/0.55, allocations: 12 kB / 1.02 GB, free: 15.09 MB / 0.7794 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 (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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.0002024/0.5502, allocations: 120 kB / 1.02 GB, free: 14.97 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0001439/0.5504, allocations: 83.47 kB / 1.02 GB, free: 14.88 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.245e-06/0.5504, allocations: 4.062 kB / 1.02 GB, free: 14.88 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 5.937e-05/0.5505, allocations: 71.39 kB / 1.02 GB, free: 14.79 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001506/0.5506, allocations: 4 kB / 1.02 GB, free: 14.79 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002904/0.5509, allocations: 114.5 kB / 1.02 GB, free: 14.65 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002128/0.5511, allocations: 0.6731 MB / 1.021 GB, free: 13.95 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 7.578e-05/0.5512, allocations: 4 kB / 1.021 GB, free: 13.95 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.04e-05/0.5512, allocations: 7.438 kB / 1.021 GB, free: 13.94 MB / 0.7794 GB Notification: Performance of SimCode: time 2.51e-07/0.5512, allocations: 4.062 kB / 1.021 GB, free: 13.93 MB / 0.7794 GB Notification: Performance of Templates: time 0.003288/0.5545, allocations: 1.047 MB / 1.022 GB, free: 12.89 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ExchangeValues.makefile (rm -f Buildings_10_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ExchangeValues.pipe ; mkfifo Buildings_10_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ExchangeValues.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ExchangeValues.pipe >> ../files/Buildings_10_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ExchangeValues.sim & ./Buildings_10_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ExchangeValues -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ExchangeValues.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ExchangeValues_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_ExchangeValues.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ExchangeValues.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches