Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.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.1-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-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: "" <> buildModelFMU(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters,fileNamePrefix="Buildings_9_Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_1borehole_5meters",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters,fileNamePrefix="Buildings_9_Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_1borehole_5meters",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001282/0.001282, allocations: 99.47 kB / 15.05 MB, free: 1.105 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.001559/0.001559, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.442/1.442, allocations: 223.2 MB / 239.9 MB, free: 5.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.615/2.615, allocations: 390.3 MB / 0.6653 GB, free: 2.941 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003423/0.0003425, allocations: 16 kB / 0.8147 GB, free: 14.11 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7461/0.7464, allocations: 142.3 MB / 0.9536 GB, free: 8.164 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters): time 0.001397/0.7479, allocations: 1.102 MB / 0.9547 GB, free: 7.285 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.003954/0.7518, allocations: 2.782 MB / 0.9574 GB, free: 5.148 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.674e-05/0.7519, allocations: 0 / 0.9574 GB, free: 5.148 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001196/0.7521, allocations: 12.83 kB / 0.9574 GB, free: 5.137 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.000196/0.7523, allocations: 21.47 kB / 0.9575 GB, free: 5.121 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.002382/0.7547, allocations: 0.7185 MB / 0.9582 GB, free: 4.645 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001065/0.7548, allocations: 60.75 kB / 0.9582 GB, free: 4.605 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 4.709e-05/0.7548, allocations: 2.5 kB / 0.9582 GB, free: 4.605 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 6.658e-05/0.7549, allocations: 36.59 kB / 0.9583 GB, free: 4.586 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000209/0.7551, allocations: 142.2 kB / 0.9584 GB, free: 4.52 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 4.224e-05/0.7552, allocations: 12.75 kB / 0.9584 GB, free: 4.52 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002063/0.7572, allocations: 1.263 MB / 0.9596 GB, free: 3.871 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0002266/0.7575, allocations: 247.1 kB / 0.9599 GB, free: 3.75 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001342/0.7576, allocations: 112.2 kB / 0.96 GB, free: 3.668 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.001509/0.7591, allocations: 0.9762 MB / 0.9609 GB, free: 3.145 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.716e-06/0.7592, allocations: 1.344 kB / 0.9609 GB, free: 3.145 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.565e-06/0.7592, allocations: 0 / 0.9609 GB, free: 3.145 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.073e-05/0.7592, allocations: 0 / 0.9609 GB, free: 3.145 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.01/0.7692, allocations: 1.163 MB / 0.9621 GB, free: 2.203 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.871e-05/0.7693, allocations: 13.44 kB / 0.9621 GB, free: 2.199 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.149e-05/0.7693, allocations: 39.61 kB / 0.9621 GB, free: 2.152 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003621/0.7697, allocations: 87.33 kB / 0.9622 GB, free: 2.09 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004824/0.7702, allocations: 354.7 kB / 0.9625 GB, free: 1.773 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.605e-05/0.7702, allocations: 4 kB / 0.9625 GB, free: 1.77 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.026e-05/0.7703, allocations: 11.34 kB / 0.9626 GB, free: 1.766 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00047/0.7707, allocations: 391.5 kB / 0.9629 GB, free: 1.641 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.268e-06/0.7708, allocations: 0.8438 kB / 0.9629 GB, free: 1.641 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.371e-05/0.7708, allocations: 0.9688 kB / 0.9629 GB, free: 1.641 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.831e-06/0.7708, allocations: 1 kB / 0.9629 GB, free: 1.641 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005573/0.7713, allocations: 433.7 kB / 0.9633 GB, free: 1.57 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005671/0.7719, allocations: 0.6388 MB / 0.964 GB, free: 1.07 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000562/0.7725, allocations: 0.5655 MB / 0.9645 GB, free: 0.9297 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008893/0.7734, allocations: 1.037 MB / 0.9655 GB, free: 15.76 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004982/0.7739, allocations: 418.5 kB / 0.9659 GB, free: 15.61 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=8): time 1.884e-06/0.7739, allocations: 0 / 0.9659 GB, free: 15.61 MB / 0.7325 GB Notification: Performance of matching and sorting (n=8): time 0.001413/0.7753, allocations: 1.283 MB / 0.9672 GB, free: 15.32 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.524e-05/0.7754, allocations: 84.02 kB / 0.9673 GB, free: 15.22 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001308/0.7767, allocations: 1.2 MB / 0.9684 GB, free: 14.52 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 4.192e-05/0.7768, allocations: 31.92 kB / 0.9685 GB, free: 14.48 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001896/0.777, allocations: 255.7 kB / 0.9687 GB, free: 14.25 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 3.815e-05/0.777, allocations: 32.06 kB / 0.9687 GB, free: 14.23 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.258e-05/0.777, allocations: 0 / 0.9687 GB, free: 14.23 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001942/0.7772, allocations: 418.6 kB / 0.9691 GB, free: 13.84 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001348/0.7786, allocations: 1.363 MB / 0.9705 GB, free: 13.27 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001444/0.78, allocations: 1.488 MB / 0.9719 GB, free: 12.6 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001686/0.7817, allocations: 1.896 MB / 0.9738 GB, free: 10.93 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.026e-06/0.7817, allocations: 0 / 0.9738 GB, free: 10.93 MB / 0.7325 GB Notification: Performance of matching and sorting (n=317) (initialization): time 0.004211/0.786, allocations: 3.945 MB / 0.9776 GB, free: 6.953 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 2.032e-05/0.786, allocations: 4 kB / 0.9776 GB, free: 6.949 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.627e-05/0.786, allocations: 0 / 0.9776 GB, free: 6.949 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.759e-05/0.786, allocations: 4 kB / 0.9776 GB, free: 6.945 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001325/0.7862, allocations: 19.98 kB / 0.9777 GB, free: 6.926 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.103e-06/0.7862, allocations: 0 / 0.9777 GB, free: 6.926 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006775/0.7869, allocations: 224.3 kB / 0.9779 GB, free: 6.703 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.106e-05/0.7869, allocations: 27.94 kB / 0.9779 GB, free: 6.676 MB / 0.7325 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition1,$PRE.k,k,$PRE.t1,t1,$PRE.t2,t2,$PRE.gFun1,gFun1,$PRE.gFun2,gFun2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 13 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 1 * 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 0.000333/0.7873, allocations: 241.6 kB / 0.9781 GB, free: 6.43 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.473e-05/0.7873, allocations: 70.77 kB / 0.9782 GB, free: 6.359 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002685/0.7876, allocations: 70.89 kB / 0.9783 GB, free: 6.277 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.801e-06/0.7876, allocations: 4 kB / 0.9783 GB, free: 6.273 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.412e-06/0.7876, allocations: 0 / 0.9783 GB, free: 6.273 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.036e-06/0.7876, allocations: 0 / 0.9783 GB, free: 6.273 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004719/0.7881, allocations: 0.4967 MB / 0.9788 GB, free: 5.73 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.746e-06/0.7881, allocations: 4 kB / 0.9788 GB, free: 5.727 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.056e-05/0.7882, allocations: 15.92 kB / 0.9788 GB, free: 5.711 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.345e-06/0.7882, allocations: 0 / 0.9788 GB, free: 5.711 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.274e-05/0.7882, allocations: 3.938 kB / 0.9788 GB, free: 5.707 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.813e-06/0.7882, allocations: 7.938 kB / 0.9788 GB, free: 5.699 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.7883, allocations: 0 / 0.9788 GB, free: 5.699 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009283/0.7892, allocations: 1.012 MB / 0.9798 GB, free: 4.66 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001141/0.7893, allocations: 151.9 kB / 0.9799 GB, free: 4.492 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.986e-05/0.7894, allocations: 0 / 0.9799 GB, free: 4.492 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001417/0.7895, allocations: 11.98 kB / 0.9799 GB, free: 4.48 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.703e-05/0.7896, allocations: 7.984 kB / 0.9799 GB, free: 4.473 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.11e-05/0.7896, allocations: 19.92 kB / 0.98 GB, free: 4.453 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0007358/0.7904, allocations: 0.6531 MB / 0.9806 GB, free: 3.789 MB / 0.7325 GB Notification: Performance of sort global known variables: time 2.2e-07/0.7904, allocations: 4 kB / 0.9806 GB, free: 3.785 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.001278/0.7917, allocations: 395.8 kB / 0.981 GB, free: 3.398 MB / 0.7325 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,k,t1,t2,gFun1,gFun2) * Number of discrete states: 2 (k,t2) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.002717/0.7944, allocations: 1.994 MB / 0.9829 GB, free: 1.367 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.00234/0.7967, allocations: 2.5 MB / 0.9854 GB, free: 14.86 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.7967, allocations: 0 / 0.9854 GB, free: 14.86 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0003232/0.7971, allocations: 343.7 kB / 0.9857 GB, free: 14.52 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002596/0.7973, allocations: 40.38 kB / 0.9857 GB, free: 14.48 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003204/0.8006, allocations: 2.568 MB / 0.9882 GB, free: 11.86 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005198/0.8011, allocations: 0.9837 MB / 0.9892 GB, free: 10.84 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 0.0001749/0.8013, allocations: 36.55 kB / 0.9892 GB, free: 10.8 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000301/0.8016, allocations: 263.3 kB / 0.9895 GB, free: 10.55 MB / 0.7481 GB Notification: Performance of SimCode: time 5.71e-07/0.8016, allocations: 0 / 0.9895 GB, free: 10.55 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03284/0.8344, allocations: 16.45 MB / 1.006 GB, free: 10.33 MB / 0.7637 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002105/0.8347, allocations: 267 kB / 1.006 GB, free: 9.977 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.37/3.204, allocations: 0 / 1.006 GB, free: 9.977 MB / 0.7637 GB (rm -f Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe ; mkfifo Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe >> ../files/Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_1borehole_5meters_fmu --startTime=0 --stopTime=4.12e+08 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_1borehole_5meters.fmu > Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters_res.mat does not exist to compare? outputFormat=mat