Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.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: "" <> buildModelFMU(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation,fileNamePrefix="Buildings_latest_Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_SmallScaleValidation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation,fileNamePrefix="Buildings_latest_Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_SmallScaleValidation",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.276/2.276, allocations: 393.5 MB / 408.4 MB, free: 11 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.001463/0.001463, allocations: 177.5 kB / 0.4901 GB, free: 2.23 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.53/1.53, allocations: 223.1 MB / 0.7992 GB, free: 15.68 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.0009316/0.0009313, allocations: 105.6 kB / 0.9396 GB, free: 2.836 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004686/0.0004687, allocations: 9.75 kB / 1.09 GB, free: 212.7 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3362/0.3367, allocations: 143 MB / 1.229 GB, free: 85.3 MB / 0.8073 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2266/0.5633, allocations: 178 MB / 1.403 GB, free: 3.004 MB / 0.9011 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003351/0.5637, allocations: 123.9 kB / 1.403 GB, free: 2.883 MB / 0.9011 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/Utilities/Clustering/KMeans.mo:96:7-96:35:writable] Warning: inertia was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. Notification: Performance of FrontEnd - DAE generated: time 0.7798/1.344, allocations: 38.5 MB / 1.441 GB, free: 166.6 MB / 0.9011 GB Notification: Performance of FrontEnd: time 2.584e-06/1.344, allocations: 0 / 1.441 GB, free: 166.6 MB / 0.9011 GB Notification: Performance of Transformations before backend: time 4.641e-05/1.344, allocations: 14.94 kB / 1.441 GB, free: 166.6 MB / 0.9011 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.003409/1.347, allocations: 1.309 MB / 1.442 GB, free: 165.6 MB / 0.9011 GB Notification: Performance of prepare preOptimizeDAE: time 5.681e-05/1.347, allocations: 22.23 kB / 1.442 GB, free: 165.5 MB / 0.9011 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.244e-05/1.347, allocations: 39.56 kB / 1.442 GB, free: 165.5 MB / 0.9011 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004073/1.348, allocations: 108.6 kB / 1.442 GB, free: 165.4 MB / 0.9011 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007988/1.348, allocations: 476.1 kB / 1.443 GB, free: 165.1 MB / 0.9011 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.842e-05/1.348, allocations: 20.19 kB / 1.443 GB, free: 165.1 MB / 0.9011 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.748e-05/1.349, allocations: 38.77 kB / 1.443 GB, free: 165.1 MB / 0.9011 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005714/1.349, allocations: 386.6 kB / 1.443 GB, free: 165 MB / 0.9011 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.008e-05/1.349, allocations: 0 / 1.443 GB, free: 165 MB / 0.9011 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.215e-05/1.349, allocations: 0.9375 kB / 1.443 GB, free: 165 MB / 0.9011 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.316e-06/1.349, allocations: 5.047 kB / 1.443 GB, free: 165 MB / 0.9011 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000636/1.35, allocations: 442 kB / 1.444 GB, free: 164.9 MB / 0.9011 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001004/1.351, allocations: 0.7744 MB / 1.444 GB, free: 164.4 MB / 0.9011 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005222/1.351, allocations: 0.5703 MB / 1.445 GB, free: 164.3 MB / 0.9011 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007472/1.352, allocations: 1.032 MB / 1.446 GB, free: 163.1 MB / 0.9011 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003295/1.352, allocations: 408.6 kB / 1.446 GB, free: 163 MB / 0.9011 GB Notification: Performance of pre-optimization done (n=8): time 1.213e-06/1.352, allocations: 0 / 1.446 GB, free: 163 MB / 0.9011 GB Notification: Performance of matching and sorting (n=8): time 0.001187/1.354, allocations: 1.302 MB / 1.448 GB, free: 162.7 MB / 0.9011 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.387e-05/1.354, allocations: 85.2 kB / 1.448 GB, free: 162.6 MB / 0.9011 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001058/1.355, allocations: 1.133 MB / 1.449 GB, free: 162.2 MB / 0.9011 GB Notification: Performance of collectPreVariables (initialization): time 6.19e-05/1.355, allocations: 41.36 kB / 1.449 GB, free: 162.2 MB / 0.9011 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001967/1.355, allocations: 310.1 kB / 1.449 GB, free: 162 MB / 0.9011 GB Notification: Performance of collectInitialBindings (initialization): time 3.349e-05/1.355, allocations: 23.61 kB / 1.449 GB, free: 162 MB / 0.9011 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.758e-05/1.355, allocations: 19.67 kB / 1.449 GB, free: 162 MB / 0.9011 GB Notification: Performance of setup shared object (initialization): time 0.000146/1.355, allocations: 426.6 kB / 1.45 GB, free: 161.6 MB / 0.9011 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001192/1.357, allocations: 1.222 MB / 1.451 GB, free: 161.5 MB / 0.9011 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001251/1.358, allocations: 1.376 MB / 1.452 GB, free: 160.8 MB / 0.9011 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001278/1.359, allocations: 1.622 MB / 1.454 GB, free: 159.2 MB / 0.9011 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.577e-06/1.359, allocations: 0 / 1.454 GB, free: 159.2 MB / 0.9011 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.003462/1.363, allocations: 3.493 MB / 1.457 GB, free: 155.7 MB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 2.521e-05/1.363, allocations: 13.44 kB / 1.457 GB, free: 155.6 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.248e-05/1.363, allocations: 4 kB / 1.457 GB, free: 155.6 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.109e-05/1.363, allocations: 0 / 1.457 GB, free: 155.6 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005862/1.363, allocations: 147.8 kB / 1.457 GB, free: 155.5 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.266e-05/1.363, allocations: 8 kB / 1.457 GB, free: 155.5 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005637/1.364, allocations: 240.3 kB / 1.458 GB, free: 155.3 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.738e-05/1.364, allocations: 63.94 kB / 1.458 GB, free: 155.2 MB / 0.9011 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 13 ($whenCondition1,$PRE.k,k,$PRE.t1,t1,$PRE.t2,t2,$PRE.gFun1,gFun1,$PRE.gFun2,gFun2,labels[1],cluSiz[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (92): * Single equations (assignments): 89 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 2 * 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.0002925/1.364, allocations: 266.2 kB / 1.458 GB, free: 154.9 MB / 0.9011 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.702e-05/1.364, allocations: 70.69 kB / 1.458 GB, free: 154.9 MB / 0.9011 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008005/1.365, allocations: 0.9564 MB / 1.459 GB, free: 153.9 MB / 0.9011 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.599e-06/1.365, allocations: 0 / 1.459 GB, free: 153.9 MB / 0.9011 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.624e-06/1.365, allocations: 0 / 1.459 GB, free: 153.9 MB / 0.9011 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.56e-06/1.365, allocations: 4 kB / 1.459 GB, free: 153.9 MB / 0.9011 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003996/1.366, allocations: 0.514 MB / 1.459 GB, free: 153.3 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.826e-06/1.366, allocations: 8.031 kB / 1.459 GB, free: 153.3 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.807e-05/1.366, allocations: 4 kB / 1.459 GB, free: 153.3 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.525e-06/1.366, allocations: 3.938 kB / 1.459 GB, free: 153.3 MB / 0.9011 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.605e-05/1.366, allocations: 11.98 kB / 1.459 GB, free: 153.3 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.733e-06/1.366, allocations: 80 / 1.459 GB, free: 153.3 MB / 0.9011 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/1.366, allocations: 3.984 kB / 1.459 GB, free: 153.3 MB / 0.9011 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006707/1.366, allocations: 1.017 MB / 1.46 GB, free: 152.2 MB / 0.9011 GB Notification: Performance of postOpt removeConstants (simulation): time 8.47e-05/1.366, allocations: 167.7 kB / 1.461 GB, free: 152.1 MB / 0.9011 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.013e-05/1.366, allocations: 4 kB / 1.461 GB, free: 152.1 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001468/1.367, allocations: 4 kB / 1.461 GB, free: 152.1 MB / 0.9011 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.106e-05/1.367, allocations: 7.984 kB / 1.461 GB, free: 152 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.955e-05/1.367, allocations: 7.984 kB / 1.461 GB, free: 152 MB / 0.9011 GB Notification: Performance of sorting global known variables: time 0.000616/1.367, allocations: 0.7221 MB / 1.461 GB, free: 151.3 MB / 0.9011 GB Notification: Performance of sort global known variables: time 1.2e-07/1.367, allocations: 0 / 1.461 GB, free: 151.3 MB / 0.9011 GB Notification: Performance of remove unused functions: time 0.002732/1.37, allocations: 0.7139 MB / 1.462 GB, free: 150.6 MB / 0.9011 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.003355/1.373, allocations: 2.42 MB / 1.464 GB, free: 148.2 MB / 0.9011 GB Notification: Performance of simCode: created initialization part: time 0.001755/1.375, allocations: 2.42 MB / 1.467 GB, free: 145.7 MB / 0.9011 GB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/1.375, allocations: 0 / 1.467 GB, free: 145.7 MB / 0.9011 GB Notification: Performance of simCode: created simulation system equations: time 0.0002437/1.375, allocations: 343.7 kB / 1.467 GB, free: 145.4 MB / 0.9011 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002996/1.376, allocations: 56.61 kB / 1.467 GB, free: 145.3 MB / 0.9011 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003082/1.379, allocations: 2.934 MB / 1.47 GB, free: 142.3 MB / 0.9011 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003538/1.379, allocations: 1.016 MB / 1.471 GB, free: 141.3 MB / 0.9011 GB Notification: Performance of simCode: alias equations: time 0.0001975/1.379, allocations: 54.97 kB / 1.471 GB, free: 141.2 MB / 0.9011 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002627/1.38, allocations: 299.3 kB / 1.471 GB, free: 141 MB / 0.9011 GB Notification: Performance of SimCode: time 1.072e-06/1.38, allocations: 0 / 1.471 GB, free: 141 MB / 0.9011 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03987/1.42, allocations: 23.29 MB / 1.494 GB, free: 117.9 MB / 0.9011 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001695/1.42, allocations: 315.9 kB / 1.494 GB, free: 117.5 MB / 0.9011 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.034/4.454, allocations: 3.938 kB / 1.494 GB, free: 117.5 MB / 0.9011 GB (rm -f Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe >> ../files/Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_SmallScaleValidation_fmu --startTime=0 --stopTime=1.8e+12 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_SmallScaleValidation.fmu > Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation_res.mat does not exist to compare? outputFormat=mat