Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 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.Boreholes.BaseClasses.Examples.ExchangeValues,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y",fileNamePrefix="Buildings_9_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_9_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.001481/0.001481, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001732/0.001732, allocations: 194.7 kB / 16.53 MB, free: 6.391 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.415/1.415, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.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.42/2.42, allocations: 390.2 MB / 0.6646 GB, free: 432 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001449/0.001449, allocations: 63.91 kB / 0.8125 GB, free: 14.43 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.638/0.6394, allocations: 140.4 MB / 0.9496 GB, free: 9.23 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ExchangeValues): time 0.002112/0.6416, allocations: 0.5468 MB / 0.9501 GB, free: 8.816 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0002274/0.6418, allocations: 109.8 kB / 0.9502 GB, free: 8.734 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.712e-05/0.6419, allocations: 0 / 0.9502 GB, free: 8.734 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001089/0.642, allocations: 5.375 kB / 0.9502 GB, free: 8.73 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.147e-05/0.6421, allocations: 9.281 kB / 0.9502 GB, free: 8.723 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001466/0.6422, allocations: 27.95 kB / 0.9503 GB, free: 8.707 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 8.819e-05/0.6423, allocations: 31.77 kB / 0.9503 GB, free: 8.691 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 4.985e-05/0.6424, allocations: 1.344 kB / 0.9503 GB, free: 8.691 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 2.887e-05/0.6424, allocations: 24.62 kB / 0.9503 GB, free: 8.676 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 4.242e-05/0.6425, allocations: 9.375 kB / 0.9503 GB, free: 8.672 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.14e-05/0.6425, allocations: 1.531 kB / 0.9503 GB, free: 8.672 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 4.652e-05/0.6425, allocations: 6.312 kB / 0.9503 GB, free: 8.672 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.111e-05/0.6425, allocations: 3.984 kB / 0.9503 GB, free: 8.668 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.351e-05/0.6426, allocations: 13.86 kB / 0.9504 GB, free: 8.66 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 9.648e-05/0.6427, allocations: 33.92 kB / 0.9504 GB, free: 8.637 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.611e-06/0.6427, allocations: 0 / 0.9504 GB, free: 8.637 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.863e-06/0.6427, allocations: 1.344 kB / 0.9504 GB, free: 8.637 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 1.105e-05/0.6427, allocations: 0 / 0.9504 GB, free: 8.637 MB / 0.7169 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.0002758/0.643, allocations: 356.6 kB / 0.9507 GB, free: 8.242 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.567e-05/0.643, allocations: 12.97 kB / 0.9507 GB, free: 8.238 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.372e-05/0.6431, allocations: 8.312 kB / 0.9507 GB, free: 8.234 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.872e-05/0.6432, allocations: 165.6 kB / 0.9509 GB, free: 8.035 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.415e-05/0.6432, allocations: 5.641 kB / 0.9509 GB, free: 8.031 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.545e-05/0.6432, allocations: 4.656 kB / 0.9509 GB, free: 8.031 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001207/0.6433, allocations: 51.95 kB / 0.951 GB, free: 7.988 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.236e-06/0.6434, allocations: 192 / 0.951 GB, free: 7.988 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.402e-05/0.6434, allocations: 5.781 kB / 0.951 GB, free: 7.984 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.349e-06/0.6434, allocations: 7.938 kB / 0.951 GB, free: 7.977 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.173e-05/0.6434, allocations: 15.88 kB / 0.951 GB, free: 7.969 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001268/0.6436, allocations: 152.2 kB / 0.9511 GB, free: 7.773 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 6.062e-05/0.6436, allocations: 28.27 kB / 0.9512 GB, free: 7.746 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.698e-05/0.6437, allocations: 17.38 kB / 0.9512 GB, free: 7.734 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 9.428e-06/0.6437, allocations: 0 / 0.9512 GB, free: 7.734 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.948e-05/0.6437, allocations: 32.31 kB / 0.9512 GB, free: 7.695 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=1): time 9.02e-07/0.6437, allocations: 4 kB / 0.9512 GB, free: 7.691 MB / 0.7169 GB Notification: Performance of matching and sorting (n=1): time 0.0002382/0.644, allocations: 113.8 kB / 0.9513 GB, free: 7.602 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.785e-05/0.644, allocations: 79.52 kB / 0.9514 GB, free: 7.508 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.317e-05/0.6441, allocations: 100.6 kB / 0.9515 GB, free: 7.402 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.195e-05/0.6441, allocations: 30.98 kB / 0.9515 GB, free: 7.367 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 1.532e-05/0.6441, allocations: 80.14 kB / 0.9516 GB, free: 7.285 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.632e-05/0.6441, allocations: 2.344 kB / 0.9516 GB, free: 7.285 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.072e-05/0.6442, allocations: 26.5 kB / 0.9516 GB, free: 7.262 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.398e-05/0.6442, allocations: 316 kB / 0.9519 GB, free: 6.945 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.408e-05/0.6443, allocations: 7.156 kB / 0.9519 GB, free: 6.945 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.129e-05/0.6443, allocations: 14.45 kB / 0.9519 GB, free: 6.938 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.841e-05/0.6444, allocations: 82.64 kB / 0.952 GB, free: 6.855 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.6444, allocations: 0 / 0.952 GB, free: 6.855 MB / 0.7169 GB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001248/0.6445, allocations: 99.41 kB / 0.9521 GB, free: 6.773 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.797e-05/0.6446, allocations: 32.14 kB / 0.9522 GB, free: 6.742 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.921e-06/0.6446, allocations: 8.031 kB / 0.9522 GB, free: 6.734 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.577e-05/0.6446, allocations: 1.25 kB / 0.9522 GB, free: 6.734 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.563e-06/0.6446, allocations: 3.984 kB / 0.9522 GB, free: 6.73 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.012e-06/0.6446, allocations: 1.219 kB / 0.9522 GB, free: 6.73 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001474/0.6448, allocations: 7.5 kB / 0.9522 GB, free: 6.727 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.277e-05/0.6448, allocations: 3.219 kB / 0.9522 GB, free: 6.727 MB / 0.7169 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 6.807e-05/0.6449, allocations: 143.1 kB / 0.9523 GB, free: 6.578 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.992e-05/0.6449, allocations: 4.594 kB / 0.9523 GB, free: 6.578 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.223e-05/0.6449, allocations: 15.06 kB / 0.9523 GB, free: 6.562 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.754e-06/0.6449, allocations: 0 / 0.9523 GB, free: 6.562 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.418e-06/0.6449, allocations: 1.312 kB / 0.9523 GB, free: 6.562 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.455e-06/0.6449, allocations: 0 / 0.9523 GB, free: 6.562 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.034e-05/0.645, allocations: 152.8 kB / 0.9525 GB, free: 6.367 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-06/0.645, allocations: 0 / 0.9525 GB, free: 6.367 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.71e-07/0.645, allocations: 1.25 kB / 0.9525 GB, free: 6.367 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.653e-06/0.645, allocations: 0 / 0.9525 GB, free: 6.367 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.327e-05/0.645, allocations: 10.67 kB / 0.9525 GB, free: 6.359 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.655e-06/0.645, allocations: 5.312 kB / 0.9525 GB, free: 6.355 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.333e-06/0.645, allocations: 0 / 0.9525 GB, free: 6.355 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001427/0.6452, allocations: 126.2 kB / 0.9526 GB, free: 6.238 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.478e-05/0.6452, allocations: 77.11 kB / 0.9527 GB, free: 6.145 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.871e-05/0.6452, allocations: 6.719 kB / 0.9527 GB, free: 6.141 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001103/0.6453, allocations: 4.438 kB / 0.9527 GB, free: 6.141 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.226e-05/0.6454, allocations: 5.078 kB / 0.9527 GB, free: 6.137 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.057e-05/0.6454, allocations: 7.312 kB / 0.9527 GB, free: 6.133 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.028e-05/0.6454, allocations: 85.44 kB / 0.9528 GB, free: 6.051 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.3e-07/0.6454, allocations: 0 / 0.9528 GB, free: 6.051 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002061/0.6456, allocations: 12.06 kB / 0.9528 GB, free: 6.051 MB / 0.7169 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.0002168/0.6458, allocations: 111.3 kB / 0.9529 GB, free: 5.965 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001409/0.646, allocations: 92.75 kB / 0.953 GB, free: 5.883 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 3.487e-06/0.646, allocations: 4.062 kB / 0.953 GB, free: 5.879 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 5.142e-05/0.6461, allocations: 71.83 kB / 0.9531 GB, free: 5.809 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001557/0.6462, allocations: 5.281 kB / 0.9531 GB, free: 5.809 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002813/0.6465, allocations: 103.2 kB / 0.9532 GB, free: 5.703 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001019/0.6466, allocations: 0.6777 MB / 0.9538 GB, free: 5 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 7.747e-05/0.6467, allocations: 4.062 kB / 0.9538 GB, free: 5 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.123e-05/0.6467, allocations: 7.438 kB / 0.9538 GB, free: 4.992 MB / 0.7169 GB Notification: Performance of SimCode: time 3.41e-07/0.6467, allocations: 4.062 kB / 0.9539 GB, free: 4.988 MB / 0.7169 GB Notification: Performance of Templates: time 0.003412/0.6502, allocations: 1.105 MB / 0.9549 GB, free: 4.402 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ExchangeValues.makefile (rm -f Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ExchangeValues.pipe ; mkfifo Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ExchangeValues.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ExchangeValues.pipe >> ../files/Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ExchangeValues.sim & ./Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ExchangeValues -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ExchangeValues.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ExchangeValues_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_ExchangeValues.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ExchangeValues.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches