Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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_latest_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_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.348/2.348, allocations: 390.5 MB / 398 MB, free: 10.96 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001202/0.001202, allocations: 176.9 kB / 491.2 MB, free: 1.621 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.656/1.656, allocations: 221.5 MB / 0.7868 GB, free: 13.28 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009646/0.0009646, allocations: 92.62 kB / 0.9269 GB, free: 13.77 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 1.787e-05/1.788e-05, allocations: 4 kB / 1.073 GB, free: 182 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.309/0.309, allocations: 143 MB / 1.212 GB, free: 39.49 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.131/1.44, allocations: 157.9 MB / 1.367 GB, free: 17.59 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002788/1.44, allocations: 110.4 kB / 1.367 GB, free: 17.59 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.0424/1.483, allocations: 17.99 MB / 1.384 GB, free: 30.38 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.934e-06/1.483, allocations: 0 / 1.384 GB, free: 30.38 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 1.164e-05/1.483, allocations: 7.75 kB / 1.384 GB, free: 30.38 MB / 0.8386 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.00068/1.484, allocations: 0.5765 MB / 1.385 GB, free: 29.89 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.524e-05/1.484, allocations: 11.38 kB / 1.385 GB, free: 29.89 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.004e-05/1.484, allocations: 42.41 kB / 1.385 GB, free: 29.87 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004228/1.484, allocations: 352 kB / 1.385 GB, free: 29.61 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.515e-05/1.484, allocations: 7.531 kB / 1.385 GB, free: 29.61 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.743e-05/1.484, allocations: 11.22 kB / 1.385 GB, free: 29.61 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002289/1.484, allocations: 132.5 kB / 1.385 GB, free: 29.59 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002581/1.485, allocations: 150.6 kB / 1.385 GB, free: 29.54 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.712e-05/1.485, allocations: 4.344 kB / 1.385 GB, free: 29.54 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.918e-05/1.485, allocations: 3.953 kB / 1.385 GB, free: 29.54 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.899e-06/1.485, allocations: 3.844 kB / 1.385 GB, free: 29.54 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001023/1.486, allocations: 0.8133 MB / 1.386 GB, free: 29.02 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002155/1.486, allocations: 134.7 kB / 1.386 GB, free: 28.99 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001272/1.486, allocations: 103.5 kB / 1.387 GB, free: 28.97 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.17e-05/1.486, allocations: 3.938 kB / 1.387 GB, free: 28.97 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.535e-05/1.486, allocations: 34.28 kB / 1.387 GB, free: 28.93 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=18): time 1.393e-06/1.486, allocations: 0 / 1.387 GB, free: 28.93 MB / 0.8386 GB Notification: Performance of matching and sorting (n=18): time 0.000313/1.487, allocations: 156.1 kB / 1.387 GB, free: 28.87 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.748e-05/1.487, allocations: 55.31 kB / 1.387 GB, free: 28.81 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003885/1.487, allocations: 331 kB / 1.387 GB, free: 28.68 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 3.135e-05/1.487, allocations: 29.64 kB / 1.387 GB, free: 28.65 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.000139/1.487, allocations: 214.5 kB / 1.387 GB, free: 28.52 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 5.177e-05/1.487, allocations: 58.27 kB / 1.387 GB, free: 28.48 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.725e-06/1.487, allocations: 0 / 1.387 GB, free: 28.48 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.000148/1.487, allocations: 344.3 kB / 1.388 GB, free: 28.15 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.585e-05/1.488, allocations: 39.91 kB / 1.388 GB, free: 28.15 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6e-05/1.488, allocations: 41.58 kB / 1.388 GB, free: 28.15 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.87e-05/1.488, allocations: 50.39 kB / 1.388 GB, free: 28.14 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.814e-06/1.488, allocations: 0 / 1.388 GB, free: 28.14 MB / 0.8386 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002116/1.488, allocations: 164.3 kB / 1.388 GB, free: 28.09 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.97e-05/1.488, allocations: 7.844 kB / 1.388 GB, free: 28.08 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.232e-06/1.488, allocations: 0 / 1.388 GB, free: 28.08 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.652e-05/1.488, allocations: 0 / 1.388 GB, free: 28.08 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002711/1.488, allocations: 61.66 kB / 1.388 GB, free: 28.07 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.793e-06/1.488, allocations: 3.984 kB / 1.388 GB, free: 28.07 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001512/1.488, allocations: 19.28 kB / 1.388 GB, free: 28.06 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.162e-05/1.488, allocations: 7.875 kB / 1.388 GB, free: 28.05 MB / 0.8386 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.969e-05/1.489, allocations: 112.9 kB / 1.388 GB, free: 27.94 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.742e-05/1.489, allocations: 35.09 kB / 1.388 GB, free: 27.92 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.326e-05/1.489, allocations: 37.53 kB / 1.388 GB, free: 27.9 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.074e-06/1.489, allocations: 0 / 1.388 GB, free: 27.9 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.089e-06/1.489, allocations: 3.75 kB / 1.388 GB, free: 27.9 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.85e-06/1.489, allocations: 0 / 1.388 GB, free: 27.9 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003008/1.489, allocations: 328.8 kB / 1.389 GB, free: 27.68 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.414e-06/1.489, allocations: 3.953 kB / 1.389 GB, free: 27.68 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002403/1.489, allocations: 54.41 kB / 1.389 GB, free: 27.67 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.255e-06/1.489, allocations: 0 / 1.389 GB, free: 27.67 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.606e-05/1.489, allocations: 6.859 kB / 1.389 GB, free: 27.66 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.463e-06/1.489, allocations: 3.969 kB / 1.389 GB, free: 27.66 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/1.489, allocations: 0 / 1.389 GB, free: 27.66 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000344/1.49, allocations: 323.2 kB / 1.389 GB, free: 27.5 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 6.977e-05/1.49, allocations: 120 kB / 1.389 GB, free: 27.38 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.877e-05/1.49, allocations: 3.719 kB / 1.389 GB, free: 27.38 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001555/1.49, allocations: 11.33 kB / 1.389 GB, free: 27.37 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.103e-05/1.49, allocations: 10.73 kB / 1.389 GB, free: 27.37 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.837e-06/1.49, allocations: 3.625 kB / 1.389 GB, free: 27.37 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0002341/1.49, allocations: 270.2 kB / 1.389 GB, free: 27.26 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.6e-07/1.49, allocations: 3.906 kB / 1.389 GB, free: 27.26 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002976/1.491, allocations: 72.97 kB / 1.389 GB, free: 27.25 MB / 0.8386 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003917/1.491, allocations: 270.2 kB / 1.39 GB, free: 27.11 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0002048/1.491, allocations: 107.8 kB / 1.39 GB, free: 27.1 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/1.491, allocations: 0 / 1.39 GB, free: 27.1 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 7.778e-05/1.491, allocations: 65.91 kB / 1.39 GB, free: 27.1 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004332/1.492, allocations: 71.52 kB / 1.39 GB, free: 27.07 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009044/1.493, allocations: 0.5194 MB / 1.39 GB, free: 26.77 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003965/1.493, allocations: 0.8062 MB / 1.391 GB, free: 26.02 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0001078/1.493, allocations: 34.8 kB / 1.391 GB, free: 26 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.169e-05/1.493, allocations: 26.97 kB / 1.391 GB, free: 25.99 MB / 0.8386 GB Notification: Performance of SimCode: time 2.5e-07/1.493, allocations: 3.938 kB / 1.391 GB, free: 25.99 MB / 0.8386 GB Notification: Performance of Templates: time 0.006974/1.5, allocations: 3.554 MB / 1.395 GB, free: 24.27 MB / 0.8386 GB make -j1 -f Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.makefile (rm -f Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.pipe >> ../files/Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.sim & ./Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesOneUTube.csv","../files/Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches