Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.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: translateModel(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ExchangeValues,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y",fileNamePrefix="Buildings_latest_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_latest_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.001659/0.001659, allocations: 106.7 kB / 16.41 MB, free: 6.453 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.001821/0.001821, allocations: 192.2 kB / 17.34 MB, free: 5.719 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.445/1.445, allocations: 222.9 MB / 241 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.722/2.722, allocations: 461.9 MB / 0.7355 GB, free: 11.06 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001497/0.001497, allocations: 63.89 kB / 1.055 GB, free: 7.703 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9154/0.9169, allocations: 157.4 MB / 1.208 GB, free: 13.79 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ExchangeValues): time 0.001934/0.9189, allocations: 0.553 MB / 1.209 GB, free: 13.25 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.000281/0.9192, allocations: 107.7 kB / 1.209 GB, free: 13.14 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.14e-05/0.9193, allocations: 8 kB / 1.209 GB, free: 13.13 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 9.858e-05/0.9194, allocations: 0 / 1.209 GB, free: 13.13 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 5.108e-05/0.9194, allocations: 0 / 1.209 GB, free: 13.13 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001618/0.9196, allocations: 39.89 kB / 1.209 GB, free: 13.09 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 9.472e-05/0.9197, allocations: 27.97 kB / 1.209 GB, free: 13.07 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 5.306e-05/0.9198, allocations: 4 kB / 1.209 GB, free: 13.06 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 3.25e-05/0.9198, allocations: 19.92 kB / 1.209 GB, free: 13.04 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 6.14e-05/0.9199, allocations: 15.98 kB / 1.209 GB, free: 13.03 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 2.346e-05/0.9199, allocations: 4 kB / 1.209 GB, free: 13.02 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 5.112e-05/0.92, allocations: 7.984 kB / 1.209 GB, free: 13.02 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 1.165e-05/0.92, allocations: 0 / 1.209 GB, free: 13.02 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 4.677e-05/0.92, allocations: 15.94 kB / 1.209 GB, free: 13 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0001112/0.9201, allocations: 27.95 kB / 1.209 GB, free: 12.97 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.9202, allocations: 3.938 kB / 1.209 GB, free: 12.97 MB / 0.9356 GB Notification: Performance of FrontEnd: time 2.315e-06/0.9202, allocations: 0 / 1.209 GB, free: 12.97 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 6.622e-06/0.9202, allocations: 4 kB / 1.209 GB, free: 12.96 MB / 0.9356 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.0003698/0.9205, allocations: 353.3 kB / 1.21 GB, free: 12.57 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.278e-05/0.9206, allocations: 12.03 kB / 1.21 GB, free: 12.55 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.168e-05/0.9206, allocations: 12.86 kB / 1.21 GB, free: 12.54 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001325/0.9208, allocations: 160.4 kB / 1.21 GB, free: 12.35 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.558e-05/0.9208, allocations: 4.375 kB / 1.21 GB, free: 12.34 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.662e-05/0.9208, allocations: 4.375 kB / 1.21 GB, free: 12.34 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001399/0.921, allocations: 54.23 kB / 1.21 GB, free: 12.28 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.044e-05/0.921, allocations: 3.938 kB / 1.21 GB, free: 12.28 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.289e-05/0.921, allocations: 0 / 1.21 GB, free: 12.28 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.689e-06/0.921, allocations: 0 / 1.21 GB, free: 12.28 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.706e-05/0.9211, allocations: 15.98 kB / 1.21 GB, free: 12.26 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001542/0.9212, allocations: 153.7 kB / 1.21 GB, free: 12.06 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 6.512e-05/0.9213, allocations: 30.53 kB / 1.21 GB, free: 12.02 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.401e-05/0.9213, allocations: 16.92 kB / 1.21 GB, free: 12 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 7.384e-06/0.9213, allocations: 0 / 1.21 GB, free: 12 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.144e-05/0.9214, allocations: 34.56 kB / 1.21 GB, free: 11.96 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=1): time 1.052e-06/0.9214, allocations: 7.938 kB / 1.21 GB, free: 11.95 MB / 0.9356 GB Notification: Performance of matching and sorting (n=1): time 0.0002517/0.9216, allocations: 115.2 kB / 1.21 GB, free: 11.83 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.519e-05/0.9217, allocations: 81.11 kB / 1.21 GB, free: 11.73 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.437e-05/0.9218, allocations: 93.77 kB / 1.21 GB, free: 11.63 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 1.756e-05/0.9218, allocations: 29.7 kB / 1.21 GB, free: 11.59 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 4.393e-05/0.9219, allocations: 80.14 kB / 1.21 GB, free: 11.51 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 3.12e-05/0.9219, allocations: 8 kB / 1.21 GB, free: 11.5 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.335e-05/0.9219, allocations: 25.95 kB / 1.21 GB, free: 11.47 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.000124/0.9221, allocations: 318.8 kB / 1.211 GB, free: 11.15 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.178e-05/0.9221, allocations: 11.98 kB / 1.211 GB, free: 11.14 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.522e-05/0.9221, allocations: 8 kB / 1.211 GB, free: 11.13 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.674e-05/0.9222, allocations: 80.25 kB / 1.211 GB, free: 11.04 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.9222, allocations: 0 / 1.211 GB, free: 11.04 MB / 0.9356 GB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001389/0.9224, allocations: 95.33 kB / 1.211 GB, free: 10.93 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 3.84e-05/0.9224, allocations: 43.5 kB / 1.211 GB, free: 10.89 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.799e-06/0.9224, allocations: 96 / 1.211 GB, free: 10.89 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.231e-05/0.9225, allocations: 4 kB / 1.211 GB, free: 10.88 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.413e-06/0.9225, allocations: 0 / 1.211 GB, free: 10.88 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.069e-06/0.9225, allocations: 0 / 1.211 GB, free: 10.88 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001385/0.9226, allocations: 4 kB / 1.211 GB, free: 10.88 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.692e-05/0.9227, allocations: 11.98 kB / 1.211 GB, free: 10.87 MB / 0.9356 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.189e-05/0.9228, allocations: 135.5 kB / 1.211 GB, free: 10.72 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.884e-05/0.9228, allocations: 7.938 kB / 1.211 GB, free: 10.71 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.317e-05/0.9228, allocations: 7.125 kB / 1.211 GB, free: 10.7 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.365e-06/0.9228, allocations: 7.984 kB / 1.211 GB, free: 10.7 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.418e-06/0.9228, allocations: 4 kB / 1.211 GB, free: 10.69 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.134e-06/0.9228, allocations: 0 / 1.211 GB, free: 10.69 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001084/0.9229, allocations: 157.7 kB / 1.211 GB, free: 10.49 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.322e-06/0.9229, allocations: 3.938 kB / 1.211 GB, free: 10.48 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.41e-07/0.9229, allocations: 0 / 1.211 GB, free: 10.48 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.156e-06/0.923, allocations: 3.938 kB / 1.211 GB, free: 10.48 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.101e-05/0.923, allocations: 4 kB / 1.211 GB, free: 10.48 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.012e-06/0.923, allocations: 0 / 1.211 GB, free: 10.48 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.923, allocations: 0 / 1.211 GB, free: 10.48 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001695/0.9232, allocations: 134.7 kB / 1.211 GB, free: 10.32 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 3.72e-05/0.9232, allocations: 78.94 kB / 1.212 GB, free: 10.23 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.907e-05/0.9232, allocations: 7.875 kB / 1.212 GB, free: 10.22 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001117/0.9233, allocations: 11.98 kB / 1.212 GB, free: 10.21 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.717e-05/0.9234, allocations: 0 / 1.212 GB, free: 10.21 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.567e-06/0.9234, allocations: 4 kB / 1.212 GB, free: 10.2 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 4.687e-05/0.9234, allocations: 83.31 kB / 1.212 GB, free: 10.12 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.3e-07/0.9234, allocations: 0 / 1.212 GB, free: 10.12 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002029/0.9236, allocations: 12 kB / 1.212 GB, free: 10.11 MB / 0.9356 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.0002269/0.9239, allocations: 116.6 kB / 1.212 GB, free: 9.988 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0001575/0.924, allocations: 79.39 kB / 1.212 GB, free: 9.898 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 6.552e-06/0.9241, allocations: 4.156 kB / 1.212 GB, free: 9.895 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 6.395e-05/0.9241, allocations: 79.33 kB / 1.212 GB, free: 9.805 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001509/0.9243, allocations: 4 kB / 1.212 GB, free: 9.801 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003205/0.9246, allocations: 130.6 kB / 1.212 GB, free: 9.641 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002772/0.9249, allocations: 0.669 MB / 1.213 GB, free: 8.945 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.49e-05/0.9249, allocations: 7.438 kB / 1.213 GB, free: 8.941 MB / 0.9356 GB Notification: Performance of SimCode: time 2.1e-07/0.9249, allocations: 4 kB / 1.213 GB, free: 8.938 MB / 0.9356 GB Notification: Performance of Templates: time 0.002493/0.9274, allocations: 0.8834 MB / 1.214 GB, free: 8.055 MB / 0.9356 GB make -j1 -f Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ExchangeValues.makefile (rm -f Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ExchangeValues.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ExchangeValues.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ExchangeValues.pipe >> ../files/Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ExchangeValues.sim & ./Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ExchangeValues -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ExchangeValues.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ExchangeValues_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_ExchangeValues.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ExchangeValues.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches