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.0009581/0.0009581, allocations: 90.83 kB / 15.36 MB, free: 0.7383 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.007333/0.007333, allocations: 169.6 kB / 16.26 MB, free: 6.613 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.405/1.405, allocations: 223.3 MB / 240.3 MB, free: 5.336 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.376/2.376, allocations: 390.9 MB / 0.6663 GB, free: 2.34 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0005131/0.000513, allocations: 8 kB / 0.816 GB, free: 13.23 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6741/0.6747, allocations: 142.4 MB / 0.9551 GB, free: 7.664 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ExchangeValues): time 0.000848/0.6755, allocations: 280.3 kB / 0.9553 GB, free: 7.461 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0002768/0.6759, allocations: 112.1 kB / 0.9554 GB, free: 7.379 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.325e-05/0.6759, allocations: 0 / 0.9554 GB, free: 7.379 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 9.097e-05/0.676, allocations: 1.562 kB / 0.9554 GB, free: 7.379 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.887e-05/0.676, allocations: 1.562 kB / 0.9554 GB, free: 7.379 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001444/0.6762, allocations: 44.58 kB / 0.9555 GB, free: 7.348 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 5.786e-05/0.6763, allocations: 21.27 kB / 0.9555 GB, free: 7.34 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 4.878e-05/0.6763, allocations: 1.312 kB / 0.9555 GB, free: 7.34 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 3.339e-05/0.6763, allocations: 20.36 kB / 0.9555 GB, free: 7.328 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 4.358e-05/0.6764, allocations: 17.59 kB / 0.9555 GB, free: 7.316 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.884e-05/0.6764, allocations: 1.625 kB / 0.9555 GB, free: 7.316 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 4.436e-05/0.6765, allocations: 6.406 kB / 0.9555 GB, free: 7.316 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.07e-05/0.6765, allocations: 4 kB / 0.9555 GB, free: 7.312 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.477e-05/0.6765, allocations: 34.83 kB / 0.9556 GB, free: 7.277 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 9.457e-05/0.6766, allocations: 34.42 kB / 0.9556 GB, free: 7.254 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.6766, allocations: 0 / 0.9556 GB, free: 7.254 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.393e-06/0.6766, allocations: 0 / 0.9556 GB, free: 7.254 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.228e-06/0.6767, allocations: 1.406 kB / 0.9556 GB, free: 7.254 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.0002625/0.6769, allocations: 341.5 kB / 0.9559 GB, free: 6.867 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.212e-05/0.677, allocations: 9.906 kB / 0.9559 GB, free: 6.867 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.874e-05/0.677, allocations: 8.156 kB / 0.9559 GB, free: 6.863 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.986e-05/0.6771, allocations: 168.4 kB / 0.9561 GB, free: 6.66 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.19e-05/0.6772, allocations: 2.75 kB / 0.9561 GB, free: 6.66 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.991e-05/0.6772, allocations: 8.016 kB / 0.9561 GB, free: 6.656 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001182/0.6773, allocations: 56.05 kB / 0.9562 GB, free: 6.609 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.898e-06/0.6773, allocations: 192 / 0.9562 GB, free: 6.609 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.621e-05/0.6773, allocations: 6.406 kB / 0.9562 GB, free: 6.605 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.099e-06/0.6773, allocations: 0 / 0.9562 GB, free: 6.605 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.909e-05/0.6774, allocations: 11.17 kB / 0.9562 GB, free: 6.602 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001256/0.6775, allocations: 153.3 kB / 0.9563 GB, free: 6.406 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 5.539e-05/0.6776, allocations: 31.02 kB / 0.9564 GB, free: 6.375 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.753e-05/0.6776, allocations: 21.36 kB / 0.9564 GB, free: 6.359 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.034e-05/0.6776, allocations: 5.406 kB / 0.9564 GB, free: 6.355 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.241e-05/0.6777, allocations: 32.03 kB / 0.9564 GB, free: 6.316 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=1): time 1.212e-06/0.6777, allocations: 0 / 0.9564 GB, free: 6.316 MB / 0.7169 GB Notification: Performance of matching and sorting (n=1): time 0.0002545/0.6779, allocations: 108.7 kB / 0.9565 GB, free: 6.23 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.827e-05/0.678, allocations: 83.27 kB / 0.9566 GB, free: 6.133 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.503e-05/0.6781, allocations: 96.88 kB / 0.9567 GB, free: 6.031 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.581e-05/0.6781, allocations: 31.67 kB / 0.9567 GB, free: 5.996 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 1.89e-05/0.6781, allocations: 84.14 kB / 0.9568 GB, free: 5.91 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.823e-05/0.6781, allocations: 2.969 kB / 0.9568 GB, free: 5.91 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.652e-05/0.6782, allocations: 11.56 kB / 0.9568 GB, free: 5.895 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.108e-05/0.6782, allocations: 310.8 kB / 0.9571 GB, free: 5.582 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.311e-05/0.6783, allocations: 19.2 kB / 0.9571 GB, free: 5.57 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.82e-05/0.6783, allocations: 15.84 kB / 0.9572 GB, free: 5.562 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.232e-05/0.6784, allocations: 82.03 kB / 0.9572 GB, free: 5.48 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.845e-06/0.6784, allocations: 1.156 kB / 0.9572 GB, free: 5.48 MB / 0.7169 GB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001338/0.6785, allocations: 94.62 kB / 0.9573 GB, free: 5.402 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 3.202e-05/0.6786, allocations: 32.8 kB / 0.9574 GB, free: 5.371 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.294e-06/0.6786, allocations: 4.906 kB / 0.9574 GB, free: 5.367 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.517e-05/0.6786, allocations: 0 / 0.9574 GB, free: 5.367 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.132e-06/0.6786, allocations: 0.9688 kB / 0.9574 GB, free: 5.367 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.911e-06/0.6786, allocations: 0 / 0.9574 GB, free: 5.367 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001451/0.6788, allocations: 17.61 kB / 0.9574 GB, free: 5.355 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.328e-05/0.6788, allocations: 2.156 kB / 0.9574 GB, free: 5.355 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 8.091e-05/0.6789, allocations: 144 kB / 0.9575 GB, free: 5.207 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.449e-05/0.6789, allocations: 6.719 kB / 0.9575 GB, free: 5.203 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.407e-05/0.6789, allocations: 8.125 kB / 0.9575 GB, free: 5.195 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.594e-06/0.6789, allocations: 3.984 kB / 0.9575 GB, free: 5.191 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.13e-06/0.6789, allocations: 1.125 kB / 0.9575 GB, free: 5.191 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.715e-06/0.6789, allocations: 0 / 0.9575 GB, free: 5.191 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.679e-05/0.679, allocations: 149.5 kB / 0.9577 GB, free: 5 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.253e-06/0.679, allocations: 4 kB / 0.9577 GB, free: 4.996 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.493e-06/0.679, allocations: 4 kB / 0.9577 GB, free: 4.992 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.974e-06/0.679, allocations: 1.469 kB / 0.9577 GB, free: 4.992 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.416e-05/0.6791, allocations: 10.72 kB / 0.9577 GB, free: 4.984 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.223e-06/0.6791, allocations: 0 / 0.9577 GB, free: 4.984 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.582e-06/0.6791, allocations: 0 / 0.9577 GB, free: 4.984 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001472/0.6792, allocations: 117.9 kB / 0.9578 GB, free: 4.875 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.405e-05/0.6793, allocations: 86.03 kB / 0.9579 GB, free: 4.773 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.138e-05/0.6793, allocations: 9.844 kB / 0.9579 GB, free: 4.766 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001076/0.6794, allocations: 4.531 kB / 0.9579 GB, free: 4.766 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.15e-05/0.6794, allocations: 1.906 kB / 0.9579 GB, free: 4.766 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.095e-05/0.6794, allocations: 2.938 kB / 0.9579 GB, free: 4.766 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.446e-05/0.6795, allocations: 85.2 kB / 0.958 GB, free: 4.684 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6795, allocations: 3.938 kB / 0.958 GB, free: 4.68 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002092/0.6797, allocations: 13.19 kB / 0.958 GB, free: 4.68 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.0002321/0.6799, allocations: 119.8 kB / 0.9581 GB, free: 4.582 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001365/0.6801, allocations: 88.88 kB / 0.9582 GB, free: 4.504 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.6801, allocations: 0 / 0.9582 GB, free: 4.504 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 4.576e-05/0.6801, allocations: 67.95 kB / 0.9583 GB, free: 4.438 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001601/0.6803, allocations: 10.7 kB / 0.9583 GB, free: 4.434 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002974/0.6806, allocations: 106.1 kB / 0.9584 GB, free: 4.32 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001121/0.6807, allocations: 0.6752 MB / 0.959 GB, free: 3.621 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 7.798e-05/0.6808, allocations: 3.281 kB / 0.959 GB, free: 3.621 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.157e-05/0.6808, allocations: 8.625 kB / 0.9591 GB, free: 3.613 MB / 0.7169 GB Notification: Performance of SimCode: time 1.133e-06/0.6808, allocations: 0 / 0.9591 GB, free: 3.613 MB / 0.7169 GB Notification: Performance of Templates: time 0.00341/0.6842, allocations: 1.049 MB / 0.9601 GB, free: 3.055 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