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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001148/0.001148, allocations: 91.84 kB / 15.06 MB, free: 1.098 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.001584/0.001583, allocations: 172.7 kB / 15.95 MB, free: 208 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.315/1.315, allocations: 223.2 MB / 240 MB, free: 5.316 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.306/2.306, allocations: 390.4 MB / 0.6655 GB, free: 2.816 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.000303/0.000303, allocations: 8 kB / 0.8149 GB, free: 14.05 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6043/0.6047, allocations: 142.3 MB / 0.9539 GB, free: 8.09 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.ShaGFunction): time 0.0005891/0.6053, allocations: 292.5 kB / 0.9542 GB, free: 7.879 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0009774/0.6063, allocations: 0.9694 MB / 0.9551 GB, free: 7.094 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.943e-05/0.6063, allocations: 4 kB / 0.9551 GB, free: 7.09 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.105e-05/0.6063, allocations: 3.938 kB / 0.9551 GB, free: 7.086 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0005614/0.6069, allocations: 72.98 kB / 0.9552 GB, free: 7.043 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 3.126e-05/0.6069, allocations: 3.781 kB / 0.9552 GB, free: 7.043 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 3.445e-05/0.607, allocations: 7.016 kB / 0.9552 GB, free: 7.039 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 3.923e-05/0.607, allocations: 0 / 0.9552 GB, free: 7.039 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 1.699e-05/0.6071, allocations: 10.77 kB / 0.9552 GB, free: 7.031 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001983/0.6073, allocations: 32.7 kB / 0.9552 GB, free: 7.016 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 9.397e-06/0.6073, allocations: 3.984 kB / 0.9552 GB, free: 7.012 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001415/0.6074, allocations: 66.38 kB / 0.9553 GB, free: 6.98 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 7.174e-06/0.6074, allocations: 4 kB / 0.9553 GB, free: 6.977 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 1.399e-05/0.6075, allocations: 27.27 kB / 0.9553 GB, free: 6.945 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 9.196e-05/0.6075, allocations: 46.53 kB / 0.9554 GB, free: 6.922 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.446e-06/0.6076, allocations: 0 / 0.9554 GB, free: 6.922 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.213e-06/0.6076, allocations: 0 / 0.9554 GB, free: 6.922 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.092e-06/0.6076, allocations: 0 / 0.9554 GB, free: 6.922 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.0001879/0.6078, allocations: 324 kB / 0.9557 GB, free: 6.566 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.418e-05/0.6078, allocations: 10.44 kB / 0.9557 GB, free: 6.566 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.063e-05/0.6078, allocations: 38.5 kB / 0.9557 GB, free: 6.52 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.796e-05/0.6079, allocations: 11.86 kB / 0.9557 GB, free: 6.508 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.53e-05/0.6079, allocations: 162 kB / 0.9559 GB, free: 6.312 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.905e-06/0.6079, allocations: 0 / 0.9559 GB, free: 6.312 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.325e-06/0.608, allocations: 7.922 kB / 0.9559 GB, free: 6.305 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 6.307e-05/0.608, allocations: 32.41 kB / 0.9559 GB, free: 6.27 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.771e-06/0.608, allocations: 0 / 0.9559 GB, free: 6.27 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.51e-06/0.608, allocations: 0 / 0.9559 GB, free: 6.27 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.416e-06/0.6081, allocations: 1.375 kB / 0.9559 GB, free: 6.27 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.577e-05/0.6081, allocations: 5.047 kB / 0.9559 GB, free: 6.266 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002456/0.6083, allocations: 462.8 kB / 0.9564 GB, free: 5.75 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 3.494e-05/0.6084, allocations: 174.4 kB / 0.9566 GB, free: 5.57 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.217e-05/0.6084, allocations: 80.14 kB / 0.9566 GB, free: 5.488 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 8.516e-06/0.6084, allocations: 76.34 kB / 0.9567 GB, free: 5.414 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.701e-05/0.6084, allocations: 110.9 kB / 0.9568 GB, free: 5.297 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=0): time 9.01e-07/0.6084, allocations: 0 / 0.9568 GB, free: 5.297 MB / 0.7169 GB Notification: Performance of matching and sorting (n=0): time 5.53e-05/0.6085, allocations: 35.91 kB / 0.9568 GB, free: 5.258 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.564e-05/0.6085, allocations: 127.8 kB / 0.957 GB, free: 5.121 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.975e-05/0.6086, allocations: 102.4 kB / 0.9571 GB, free: 5.016 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 4.248e-06/0.6086, allocations: 25.7 kB / 0.9571 GB, free: 4.984 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 1.535e-05/0.6086, allocations: 81.27 kB / 0.9572 GB, free: 4.902 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.633e-06/0.6086, allocations: 0 / 0.9572 GB, free: 4.902 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.214e-06/0.6086, allocations: 5.125 kB / 0.9572 GB, free: 4.898 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.467e-05/0.6087, allocations: 314.8 kB / 0.9575 GB, free: 4.582 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.432e-06/0.6087, allocations: 1.281 kB / 0.9575 GB, free: 4.582 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.52e-06/0.6087, allocations: 1.125 kB / 0.9575 GB, free: 4.582 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 1.533e-05/0.6087, allocations: 6.375 kB / 0.9575 GB, free: 4.578 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.202e-06/0.6087, allocations: 0 / 0.9575 GB, free: 4.578 MB / 0.7169 GB Notification: Performance of matching and sorting (n=1) (initialization): time 7.571e-05/0.6088, allocations: 31.33 kB / 0.9575 GB, free: 4.547 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.135e-05/0.6088, allocations: 4.719 kB / 0.9575 GB, free: 4.547 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.557e-06/0.6088, allocations: 9.188 kB / 0.9575 GB, free: 4.539 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.818e-06/0.6088, allocations: 3.953 kB / 0.9575 GB, free: 4.535 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.393e-05/0.6088, allocations: 5.094 kB / 0.9575 GB, free: 4.531 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.207e-06/0.6089, allocations: 0 / 0.9575 GB, free: 4.531 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.406e-05/0.6089, allocations: 5.016 kB / 0.9575 GB, free: 4.527 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.899e-06/0.6089, allocations: 3.938 kB / 0.9575 GB, free: 4.523 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: 1 (cmp) * Number of discrete states: 0 () * Number of clocked 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 4.381e-05/0.6089, allocations: 191.2 kB / 0.9577 GB, free: 4.328 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.37e-05/0.609, allocations: 106.1 kB / 0.9578 GB, free: 4.219 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.921e-05/0.609, allocations: 116.9 kB / 0.9579 GB, free: 4.098 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.881e-05/0.609, allocations: 181.3 kB / 0.9581 GB, free: 3.914 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.129e-05/0.609, allocations: 185.5 kB / 0.9583 GB, free: 3.727 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.955e-05/0.6091, allocations: 184.2 kB / 0.9585 GB, free: 3.539 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001185/0.6092, allocations: 399.7 kB / 0.9588 GB, free: 3.094 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.404e-05/0.6092, allocations: 110.2 kB / 0.9589 GB, free: 2.98 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.33e-05/0.6092, allocations: 106.1 kB / 0.959 GB, free: 2.871 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.094e-05/0.6093, allocations: 177.4 kB / 0.9592 GB, free: 2.691 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.393e-05/0.6093, allocations: 180.4 kB / 0.9594 GB, free: 2.508 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.928e-05/0.6093, allocations: 177.4 kB / 0.9596 GB, free: 2.328 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.033e-05/0.6093, allocations: 185.4 kB / 0.9597 GB, free: 2.141 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.993e-05/0.6094, allocations: 312 kB / 0.96 GB, free: 1.816 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.227e-05/0.6094, allocations: 183.1 kB / 0.9602 GB, free: 1.613 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.248e-05/0.6095, allocations: 186.4 kB / 0.9604 GB, free: 1.426 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.394e-05/0.6095, allocations: 101 kB / 0.9605 GB, free: 1.32 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.948e-05/0.6096, allocations: 185.3 kB / 0.9607 GB, free: 1.133 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.381e-05/0.6096, allocations: 102 kB / 0.9608 GB, free: 1.027 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.598e-05/0.6096, allocations: 86.81 kB / 0.9608 GB, free: 0.9453 MB / 0.7169 GB Notification: Performance of sort global known variables: time 2.21e-07/0.6096, allocations: 1.031 kB / 0.9608 GB, free: 0.9453 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002631/0.6099, allocations: 21.72 kB / 0.9609 GB, free: 0.9375 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 (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.0004051/0.6103, allocations: 0.8659 MB / 0.9617 GB, free: 96 kB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 4.737e-05/0.6104, allocations: 5.188 kB / 0.9617 GB, free: 92 kB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.764e-06/0.6104, allocations: 1.031 kB / 0.9617 GB, free: 92 kB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 1.302e-06/0.6104, allocations: 0 / 0.9617 GB, free: 92 kB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003343/0.6107, allocations: 0.5282 MB / 0.9622 GB, free: 15.56 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004683/0.6112, allocations: 235 kB / 0.9625 GB, free: 15.31 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002078/0.6114, allocations: 0.6704 MB / 0.9631 GB, free: 14.62 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 2.727e-05/0.6114, allocations: 10.33 kB / 0.9631 GB, free: 14.61 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.641e-05/0.6115, allocations: 8.688 kB / 0.9631 GB, free: 14.6 MB / 0.7325 GB Notification: Performance of SimCode: time 2.41e-07/0.6115, allocations: 0 / 0.9631 GB, free: 14.6 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01077/0.6222, allocations: 1.306 MB / 0.9644 GB, free: 14.05 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002096/0.6225, allocations: 310.4 kB / 0.9647 GB, free: 13.69 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.691/2.313, allocations: 0 / 0.9647 GB, free: 13.69 MB / 0.7325 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