Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.ShaGFunction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.ShaGFunction,fileNamePrefix="Buildings_9_Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_ShaGFunction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.ShaGFunction,fileNamePrefix="Buildings_9_Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_ShaGFunction",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.272/2.272, allocations: 387.4 MB / 394.9 MB, free: 13.35 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.001149/0.001149, allocations: 172.8 kB / 487.4 MB, free: 5.047 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.464/1.464, allocations: 221.5 MB / 0.7824 GB, free: 0.9961 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009187/0.0009189, allocations: 97.38 kB / 0.9219 GB, free: 2.23 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 2.207e-05/2.21e-05, allocations: 4 kB / 1.067 GB, free: 185.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2667/0.2668, allocations: 142.4 MB / 1.206 GB, free: 43.84 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.887/1.154, allocations: 150.2 MB / 1.353 GB, free: 18.18 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002441/1.154, allocations: 107.4 kB / 1.353 GB, free: 18.17 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.005249/1.159, allocations: 2.04 MB / 1.355 GB, free: 33.81 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.243e-06/1.159, allocations: 4 kB / 1.355 GB, free: 33.8 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 1.196e-05/1.159, allocations: 0 / 1.355 GB, free: 33.8 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0002536/1.16, allocations: 325.2 kB / 1.355 GB, free: 33.46 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.227e-05/1.16, allocations: 8.266 kB / 1.355 GB, free: 33.46 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.442e-05/1.16, allocations: 0 / 1.355 GB, free: 33.46 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001118/1.16, allocations: 173.9 kB / 1.355 GB, free: 33.26 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.575e-05/1.16, allocations: 0.6094 kB / 1.355 GB, free: 33.26 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.117e-05/1.16, allocations: 0 / 1.355 GB, free: 33.26 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 4.901e-05/1.16, allocations: 7.75 kB / 1.355 GB, free: 33.25 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 6.306e-05/1.16, allocations: 30.41 kB / 1.355 GB, free: 33.22 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.002e-05/1.16, allocations: 0.6562 kB / 1.355 GB, free: 33.22 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.016e-05/1.16, allocations: 0 / 1.355 GB, free: 33.22 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.32e-06/1.16, allocations: 0 / 1.355 GB, free: 33.22 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004372/1.161, allocations: 448 kB / 1.356 GB, free: 32.74 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 9.404e-05/1.161, allocations: 165.7 kB / 1.356 GB, free: 32.57 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.787e-05/1.161, allocations: 84.14 kB / 1.356 GB, free: 32.48 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 3.322e-05/1.161, allocations: 79.22 kB / 1.356 GB, free: 32.41 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.374e-05/1.161, allocations: 113.8 kB / 1.356 GB, free: 32.29 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=0): time 9.72e-07/1.161, allocations: 0 / 1.356 GB, free: 32.29 MB / 0.8386 GB Notification: Performance of matching and sorting (n=0): time 7.083e-05/1.161, allocations: 27.8 kB / 1.356 GB, free: 32.26 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.999e-05/1.161, allocations: 52.72 kB / 1.356 GB, free: 32.2 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.855e-05/1.161, allocations: 93.91 kB / 1.356 GB, free: 32.11 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 8.056e-06/1.161, allocations: 25.7 kB / 1.356 GB, free: 32.07 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 5.317e-05/1.161, allocations: 91.56 kB / 1.357 GB, free: 31.99 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.104e-06/1.161, allocations: 0 / 1.357 GB, free: 31.99 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.535e-06/1.161, allocations: 0 / 1.357 GB, free: 31.99 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001455/1.161, allocations: 315.5 kB / 1.357 GB, free: 31.67 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.674e-06/1.161, allocations: 0 / 1.357 GB, free: 31.67 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.207e-06/1.161, allocations: 0 / 1.357 GB, free: 31.67 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.924e-05/1.161, allocations: 5.875 kB / 1.357 GB, free: 31.67 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.864e-06/1.161, allocations: 4 kB / 1.357 GB, free: 31.67 MB / 0.8386 GB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001272/1.161, allocations: 43.3 kB / 1.357 GB, free: 31.63 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.637e-05/1.161, allocations: 13.25 kB / 1.357 GB, free: 31.63 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.781e-06/1.162, allocations: 0.8438 kB / 1.357 GB, free: 31.63 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.586e-05/1.162, allocations: 0.8906 kB / 1.357 GB, free: 31.63 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.596e-05/1.162, allocations: 0 / 1.357 GB, free: 31.63 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.338e-06/1.162, allocations: 0 / 1.357 GB, free: 31.63 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.51e-05/1.162, allocations: 0.7031 kB / 1.357 GB, free: 31.63 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.023e-06/1.162, allocations: 0 / 1.357 GB, free: 31.63 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: 1 (cmp) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 1 * 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 0.0001124/1.162, allocations: 189.1 kB / 1.357 GB, free: 31.44 MB / 0.8386 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 7.095e-05/1.162, allocations: 133.5 kB / 1.357 GB, free: 31.3 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.132e-05/1.162, allocations: 105.8 kB / 1.357 GB, free: 31.2 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.643e-05/1.162, allocations: 113 kB / 1.357 GB, free: 31.07 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.712e-05/1.162, allocations: 181.7 kB / 1.358 GB, free: 30.89 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.584e-05/1.162, allocations: 180.8 kB / 1.358 GB, free: 30.71 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.859e-05/1.162, allocations: 184.9 kB / 1.358 GB, free: 30.53 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001785/1.162, allocations: 387.8 kB / 1.358 GB, free: 30.11 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.219e-05/1.162, allocations: 105.7 kB / 1.358 GB, free: 30 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.195e-05/1.162, allocations: 102 kB / 1.358 GB, free: 29.89 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.06e-05/1.162, allocations: 181.2 kB / 1.359 GB, free: 29.71 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.293e-05/1.163, allocations: 181 kB / 1.359 GB, free: 29.53 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.872e-05/1.163, allocations: 176.8 kB / 1.359 GB, free: 29.35 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.833e-05/1.163, allocations: 188.4 kB / 1.359 GB, free: 29.16 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001174/1.163, allocations: 305.9 kB / 1.359 GB, free: 28.85 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 6.311e-05/1.163, allocations: 191 kB / 1.36 GB, free: 28.64 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.7e-05/1.163, allocations: 178.5 kB / 1.36 GB, free: 28.46 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.478e-05/1.163, allocations: 105.5 kB / 1.36 GB, free: 28.36 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.909e-05/1.163, allocations: 181.9 kB / 1.36 GB, free: 28.17 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.813e-05/1.163, allocations: 101.6 kB / 1.36 GB, free: 28.07 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 4.265e-05/1.163, allocations: 80.14 kB / 1.36 GB, free: 27.99 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.3e-07/1.163, allocations: 0 / 1.36 GB, free: 27.99 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002914/1.163, allocations: 32.19 kB / 1.36 GB, free: 27.98 MB / 0.8386 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (0): * Single equations (assignments): 0 * 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.000614/1.164, allocations: 0.8731 MB / 1.361 GB, free: 27.15 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 4.535e-05/1.164, allocations: 3.844 kB / 1.361 GB, free: 27.15 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/1.164, allocations: 0 / 1.361 GB, free: 27.15 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 1.462e-06/1.164, allocations: 3.938 kB / 1.361 GB, free: 27.14 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000291/1.164, allocations: 0.5268 MB / 1.362 GB, free: 26.62 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002948/1.167, allocations: 1.076 MB / 1.363 GB, free: 26.4 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002567/1.168, allocations: 0.6755 MB / 1.363 GB, free: 25.71 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 2.846e-05/1.168, allocations: 14.52 kB / 1.363 GB, free: 25.7 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.694e-05/1.168, allocations: 7.438 kB / 1.363 GB, free: 25.69 MB / 0.8386 GB Notification: Performance of SimCode: time 4.71e-07/1.168, allocations: 0 / 1.363 GB, free: 25.69 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01939/1.187, allocations: 0.9815 MB / 1.364 GB, free: 25.61 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001962/1.187, allocations: 250 kB / 1.365 GB, free: 25.32 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.603/2.79, allocations: 0 / 1.365 GB, free: 25.32 MB / 0.8386 GB (rm -f Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.ShaGFunction.pipe ; mkfifo Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.ShaGFunction.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.ShaGFunction.pipe >> ../files/Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.ShaGFunction.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.ShaGFunction_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_ShaGFunction_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_ShaGFunction.fmu > Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.ShaGFunction.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.ShaGFunction_res.mat does not exist to compare? outputFormat=mat