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.001576/0.001576, 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.001795/0.001795, allocations: 198 kB / 16.14 MB, free: 6.648 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.351/1.351, allocations: 222.9 MB / 239.8 MB, free: 4.602 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.626/2.626, allocations: 461.9 MB / 0.7342 GB, free: 15.07 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00118/0.00118, allocations: 65.7 kB / 0.8984 GB, free: 37.25 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2458/0.247, allocations: 157.4 MB / 1.052 GB, free: 8.836 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ExchangeValues): time 0.001762/0.2488, allocations: 0.6074 MB / 1.053 GB, free: 8.223 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0002529/0.249, allocations: 123.6 kB / 1.053 GB, free: 8.102 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.119e-05/0.2491, allocations: 0 / 1.053 GB, free: 8.102 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 7.789e-05/0.2491, allocations: 8 kB / 1.053 GB, free: 8.094 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 3.965e-05/0.2492, allocations: 3.938 kB / 1.053 GB, free: 8.09 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001254/0.2493, allocations: 35.95 kB / 1.053 GB, free: 8.055 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 4.143e-05/0.2494, allocations: 19.98 kB / 1.053 GB, free: 8.035 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 3.548e-05/0.2494, allocations: 8 kB / 1.053 GB, free: 8.027 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 2.507e-05/0.2494, allocations: 15.92 kB / 1.053 GB, free: 8.012 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 3.439e-05/0.2495, allocations: 11.98 kB / 1.053 GB, free: 8 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.002e-05/0.2495, allocations: 4 kB / 1.053 GB, free: 7.996 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 3.909e-05/0.2495, allocations: 8 kB / 1.053 GB, free: 7.988 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 8.566e-06/0.2496, allocations: 0 / 1.053 GB, free: 7.988 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 3.443e-05/0.2496, allocations: 23.91 kB / 1.053 GB, free: 7.965 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 7.701e-05/0.2497, allocations: 15.98 kB / 1.053 GB, free: 7.949 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 6.021e-06/0.2497, allocations: 7.984 kB / 1.053 GB, free: 7.941 MB / 0.8106 GB Notification: Performance of FrontEnd: time 6.71e-07/0.2497, allocations: 0 / 1.053 GB, free: 7.941 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.166e-06/0.2497, allocations: 0 / 1.053 GB, free: 7.941 MB / 0.8106 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.0002999/0.25, allocations: 357.2 kB / 1.053 GB, free: 7.535 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.104e-05/0.25, allocations: 12.03 kB / 1.053 GB, free: 7.523 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.183e-05/0.2501, allocations: 0.9375 kB / 1.053 GB, free: 7.523 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000124/0.2502, allocations: 172.4 kB / 1.053 GB, free: 7.316 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.063e-05/0.2502, allocations: 384 / 1.053 GB, free: 7.316 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.41e-05/0.2503, allocations: 12.3 kB / 1.054 GB, free: 7.305 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001019/0.2504, allocations: 58.22 kB / 1.054 GB, free: 7.242 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.542e-06/0.2504, allocations: 4.188 kB / 1.054 GB, free: 7.238 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.25e-05/0.2504, allocations: 3.938 kB / 1.054 GB, free: 7.234 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.808e-06/0.2504, allocations: 0 / 1.054 GB, free: 7.234 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.742e-05/0.2504, allocations: 11.94 kB / 1.054 GB, free: 7.223 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001231/0.2506, allocations: 153.7 kB / 1.054 GB, free: 7.023 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 5.393e-05/0.2506, allocations: 26.59 kB / 1.054 GB, free: 6.988 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.468e-05/0.2507, allocations: 24.91 kB / 1.054 GB, free: 6.961 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 3.977e-06/0.2507, allocations: 0 / 1.054 GB, free: 6.961 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.201e-05/0.2507, allocations: 34.56 kB / 1.054 GB, free: 6.918 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=1): time 7.92e-07/0.2507, allocations: 0 / 1.054 GB, free: 6.918 MB / 0.8106 GB Notification: Performance of matching and sorting (n=1): time 0.0002146/0.2509, allocations: 111.2 kB / 1.054 GB, free: 6.797 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.432e-05/0.251, allocations: 81.11 kB / 1.054 GB, free: 6.699 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.834e-05/0.2511, allocations: 93.84 kB / 1.054 GB, free: 6.598 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.441e-05/0.2511, allocations: 29.95 kB / 1.054 GB, free: 6.562 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 3.396e-05/0.2511, allocations: 88.14 kB / 1.054 GB, free: 6.473 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.306e-05/0.2511, allocations: 7.906 kB / 1.054 GB, free: 6.465 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.655e-05/0.2512, allocations: 17.72 kB / 1.054 GB, free: 6.441 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 9.7e-05/0.2513, allocations: 314.8 kB / 1.055 GB, free: 6.125 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.121e-05/0.2513, allocations: 11.98 kB / 1.055 GB, free: 6.113 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.642e-05/0.2514, allocations: 8 kB / 1.055 GB, free: 6.105 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.422e-05/0.2514, allocations: 80.31 kB / 1.055 GB, free: 6.012 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.453e-06/0.2515, allocations: 11.88 kB / 1.055 GB, free: 6 MB / 0.8106 GB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001305/0.2516, allocations: 95.38 kB / 1.055 GB, free: 5.895 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 3.083e-05/0.2516, allocations: 37.7 kB / 1.055 GB, free: 5.852 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.538e-06/0.2516, allocations: 3.938 kB / 1.055 GB, free: 5.848 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.062e-05/0.2517, allocations: 0 / 1.055 GB, free: 5.848 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.32e-07/0.2517, allocations: 0 / 1.055 GB, free: 5.848 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.897e-06/0.2517, allocations: 0 / 1.055 GB, free: 5.848 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001378/0.2518, allocations: 11.98 kB / 1.055 GB, free: 5.836 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.194e-05/0.2518, allocations: 4 kB / 1.055 GB, free: 5.832 MB / 0.8106 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 8.259e-05/0.2519, allocations: 141.4 kB / 1.055 GB, free: 5.68 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.686e-05/0.2519, allocations: 4 kB / 1.055 GB, free: 5.676 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.197e-06/0.2519, allocations: 11.05 kB / 1.055 GB, free: 5.668 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.224e-06/0.252, allocations: 0 / 1.055 GB, free: 5.668 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.136e-06/0.252, allocations: 7.938 kB / 1.055 GB, free: 5.66 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.844e-06/0.252, allocations: 0 / 1.055 GB, free: 5.66 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.041e-05/0.2521, allocations: 153.7 kB / 1.055 GB, free: 5.461 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.02e-07/0.2521, allocations: 0 / 1.055 GB, free: 5.461 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.31e-07/0.2521, allocations: 0 / 1.055 GB, free: 5.461 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.905e-06/0.2521, allocations: 4 kB / 1.055 GB, free: 5.457 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.188e-05/0.2521, allocations: 7.938 kB / 1.055 GB, free: 5.449 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.31e-07/0.2521, allocations: 0 / 1.055 GB, free: 5.449 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/0.2521, allocations: 3.938 kB / 1.055 GB, free: 5.445 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001508/0.2523, allocations: 118.8 kB / 1.055 GB, free: 5.305 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.023e-05/0.2523, allocations: 89.03 kB / 1.055 GB, free: 5.199 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.709e-05/0.2523, allocations: 3.938 kB / 1.055 GB, free: 5.195 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001076/0.2524, allocations: 8.031 kB / 1.055 GB, free: 5.188 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.471e-05/0.2525, allocations: 4 kB / 1.055 GB, free: 5.184 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.506e-06/0.2525, allocations: 4 kB / 1.055 GB, free: 5.18 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 3.223e-05/0.2525, allocations: 83.27 kB / 1.055 GB, free: 5.098 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2525, allocations: 0 / 1.055 GB, free: 5.098 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.000207/0.2527, allocations: 12 kB / 1.055 GB, free: 5.086 MB / 0.8106 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.0001836/0.2529, allocations: 111.6 kB / 1.056 GB, free: 4.969 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0001278/0.253, allocations: 87.31 kB / 1.056 GB, free: 4.871 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.2531, allocations: 0 / 1.056 GB, free: 4.871 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 6.504e-05/0.2531, allocations: 75.33 kB / 1.056 GB, free: 4.785 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001382/0.2533, allocations: 11.25 kB / 1.056 GB, free: 4.777 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002388/0.2535, allocations: 110.6 kB / 1.056 GB, free: 4.641 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002095/0.2537, allocations: 0.681 MB / 1.056 GB, free: 3.934 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 5.679e-05/0.2538, allocations: 4 kB / 1.056 GB, free: 3.93 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.997e-06/0.2538, allocations: 7.438 kB / 1.056 GB, free: 3.922 MB / 0.8106 GB Notification: Performance of SimCode: time 2.71e-07/0.2538, allocations: 0 / 1.056 GB, free: 3.922 MB / 0.8106 GB Notification: Performance of Templates: time 0.002875/0.2567, allocations: 1.055 MB / 1.057 GB, free: 2.875 MB / 0.8106 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/jenkins/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