Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_SmallScaleValidation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation,fileNamePrefix="BuildingSystems_BuildingSystems_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001131/0.001131, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001139/0.001139, allocations: 192 kB / 16.14 MB, free: 6.707 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.191/1.191, allocations: 222.9 MB / 239.8 MB, free: 4.609 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001936/0.001936, allocations: 290.2 kB / 290.2 MB, free: 2.215 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.854/0.854, allocations: 169.2 MB / 0.4977 GB, free: 14.13 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001522/0.001522, allocations: 95.17 kB / 0.5947 GB, free: 28.32 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1214/0.1229, allocations: 86.97 MB / 0.6796 GB, free: 1.059 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.002447/0.1254, allocations: 1.8 MB / 0.6813 GB, free: 15.25 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.006473/0.1319, allocations: 5.664 MB / 0.6869 GB, free: 9.57 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.068e-05/0.1319, allocations: 11.88 kB / 0.6869 GB, free: 9.559 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008657/0.1328, allocations: 346.7 kB / 0.6872 GB, free: 9.219 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 8.47e-05/0.1329, allocations: 55.72 kB / 0.6873 GB, free: 9.164 MB / 494.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Math/Random.mo:1057:5-1146:31:writable] Warning: Pure function ‘Modelica.Math.Random.Utilities.initializeImpureRandom‘ contains a call to impure function ‘Modelica.Math.Random.Utilities.initializeImpureRandom.setInternalState‘. Notification: Performance of NFTyping.typeClassSections: time 0.002168/0.1351, allocations: 1.173 MB / 0.6884 GB, free: 7.992 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001946/0.1353, allocations: 209.9 kB / 0.6886 GB, free: 7.789 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.782e-05/0.1353, allocations: 13.55 kB / 0.6886 GB, free: 7.777 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.994e-05/0.1354, allocations: 63.72 kB / 0.6887 GB, free: 7.715 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000183/0.1356, allocations: 172.8 kB / 0.6889 GB, free: 7.547 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 4.093e-05/0.1356, allocations: 16 kB / 0.6889 GB, free: 7.531 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002364/0.138, allocations: 2.18 MB / 0.691 GB, free: 5.348 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001797/0.1382, allocations: 283.8 kB / 0.6913 GB, free: 5.07 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002157/0.1384, allocations: 306.1 kB / 0.6916 GB, free: 4.77 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002023/0.1404, allocations: 2.229 MB / 0.6937 GB, free: 2.531 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.236e-06/0.1405, allocations: 0 / 0.6937 GB, free: 2.531 MB / 494.1 MB Notification: Performance of FrontEnd: time 6.81e-07/0.1405, allocations: 0 / 0.6937 GB, free: 2.531 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.19e-06/0.1405, allocations: 0 / 0.6937 GB, free: 2.531 MB / 494.1 MB 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.007179/0.1477, allocations: 1.374 MB / 0.6951 GB, free: 1.105 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.072e-05/0.1477, allocations: 8.031 kB / 0.6951 GB, free: 1.098 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.117e-05/0.1477, allocations: 34.73 kB / 0.6951 GB, free: 1.055 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003378/0.1481, allocations: 95.59 kB / 0.6952 GB, free: 0.9609 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003776/0.1485, allocations: 406.3 kB / 0.6956 GB, free: 0.5156 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.456e-06/0.1485, allocations: 4.312 kB / 0.6956 GB, free: 0.5117 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.568e-05/0.1485, allocations: 12.38 kB / 0.6956 GB, free: 0.5 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003537/0.1489, allocations: 391.3 kB / 0.696 GB, free: 108 kB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.324e-06/0.1489, allocations: 4 kB / 0.696 GB, free: 104 kB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.075e-05/0.1489, allocations: 0 / 0.696 GB, free: 104 kB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.397e-06/0.1489, allocations: 0 / 0.696 GB, free: 104 kB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003788/0.1493, allocations: 439.7 kB / 0.6964 GB, free: 15.67 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005032/0.1498, allocations: 0.6615 MB / 0.6971 GB, free: 14.96 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004343/0.1503, allocations: 0.5633 MB / 0.6976 GB, free: 14.38 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002693/0.1505, allocations: 333.7 kB / 0.6979 GB, free: 14.05 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008625/0.1514, allocations: 1.04 MB / 0.6989 GB, free: 12.79 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003454/0.1518, allocations: 400.8 kB / 0.6993 GB, free: 12.38 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=8): time 1.162e-06/0.1518, allocations: 0 / 0.6993 GB, free: 12.38 MB / 0.4981 GB Notification: Performance of matching and sorting (n=8): time 0.001126/0.1529, allocations: 1.297 MB / 0.7006 GB, free: 11.07 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.253e-05/0.1529, allocations: 81.09 kB / 0.7007 GB, free: 10.97 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001019/0.154, allocations: 1.293 MB / 0.7019 GB, free: 9.668 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 3.465e-05/0.154, allocations: 29.64 kB / 0.702 GB, free: 9.633 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.000175/0.1542, allocations: 297.2 kB / 0.7022 GB, free: 9.336 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.729e-05/0.1542, allocations: 19.75 kB / 0.7023 GB, free: 9.316 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002751/0.1545, allocations: 351.6 kB / 0.7026 GB, free: 8.969 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 8.697e-05/0.1546, allocations: 322.1 kB / 0.7029 GB, free: 8.648 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001052/0.1557, allocations: 1.377 MB / 0.7042 GB, free: 7.27 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001129/0.1568, allocations: 1.497 MB / 0.7057 GB, free: 5.762 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006367/0.1632, allocations: 3.568 MB / 0.7092 GB, free: 2.102 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.444e-06/0.1632, allocations: 0 / 0.7092 GB, free: 2.102 MB / 0.4981 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.00357/0.1668, allocations: 4.01 MB / 0.7131 GB, free: 14.05 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.429e-05/0.1668, allocations: 10.33 kB / 0.7131 GB, free: 14.05 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.305e-05/0.1668, allocations: 4 kB / 0.7131 GB, free: 14.04 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.979e-06/0.1668, allocations: 0 / 0.7131 GB, free: 14.04 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001176/0.1669, allocations: 12 kB / 0.7131 GB, free: 14.03 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.038e-05/0.167, allocations: 12.02 kB / 0.7131 GB, free: 14.02 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003947/0.1674, allocations: 232.3 kB / 0.7134 GB, free: 13.79 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.54e-05/0.1674, allocations: 23.98 kB / 0.7134 GB, free: 13.77 MB / 0.5137 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 (cluSiz[1],labels[1],gFun2,$PRE.gFun2,gFun1,$PRE.gFun1,t2,$PRE.t2,t1,$PRE.t1,k,$PRE.k,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 13 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 2 * 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 0.0002525/0.1677, allocations: 246.3 kB / 0.7136 GB, free: 13.52 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.559e-05/0.1677, allocations: 78.62 kB / 0.7137 GB, free: 13.44 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002498/0.168, allocations: 79.81 kB / 0.7138 GB, free: 13.35 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.035e-06/0.168, allocations: 0 / 0.7138 GB, free: 13.35 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.45e-06/0.168, allocations: 4 kB / 0.7138 GB, free: 13.35 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.737e-06/0.168, allocations: 3.984 kB / 0.7138 GB, free: 13.34 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003678/0.1684, allocations: 0.518 MB / 0.7143 GB, free: 12.78 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.695e-06/0.1684, allocations: 3.938 kB / 0.7143 GB, free: 12.78 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.486e-05/0.1685, allocations: 7.938 kB / 0.7143 GB, free: 12.77 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.853e-06/0.1685, allocations: 0 / 0.7143 GB, free: 12.77 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.349e-05/0.1685, allocations: 7.984 kB / 0.7143 GB, free: 12.76 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.403e-06/0.1685, allocations: 0 / 0.7143 GB, free: 12.76 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.1685, allocations: 32 / 0.7143 GB, free: 12.76 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007762/0.1693, allocations: 1.006 MB / 0.7153 GB, free: 11.73 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 9.735e-05/0.1694, allocations: 171.6 kB / 0.7155 GB, free: 11.55 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.674e-05/0.1695, allocations: 4 kB / 0.7155 GB, free: 11.54 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001402/0.1696, allocations: 4 kB / 0.7155 GB, free: 11.54 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.001e-05/0.1696, allocations: 15.97 kB / 0.7155 GB, free: 11.52 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.338e-05/0.1697, allocations: 7.984 kB / 0.7155 GB, free: 11.52 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0006623/0.1703, allocations: 0.7299 MB / 0.7162 GB, free: 10.78 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.3e-07/0.1704, allocations: 0 / 0.7162 GB, free: 10.78 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.00116/0.1715, allocations: 0.5896 MB / 0.7168 GB, free: 10.19 MB / 0.5137 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 (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.002458/0.174, allocations: 2.151 MB / 0.7189 GB, free: 8.023 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.001938/0.1759, allocations: 2.545 MB / 0.7214 GB, free: 5.465 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.1759, allocations: 0 / 0.7214 GB, free: 5.465 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.000286/0.1762, allocations: 347.8 kB / 0.7217 GB, free: 5.125 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000337/0.1766, allocations: 56.66 kB / 0.7217 GB, free: 5.07 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01296/0.1895, allocations: 15.28 MB / 0.7367 GB, free: 5.613 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004392/0.19, allocations: 0.988 MB / 0.7376 GB, free: 4.602 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.000167/0.1902, allocations: 41.42 kB / 0.7377 GB, free: 4.562 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002782/0.1905, allocations: 287.3 kB / 0.7379 GB, free: 4.281 MB / 0.5294 GB Notification: Performance of SimCode: time 5.01e-07/0.1905, allocations: 0 / 0.7379 GB, free: 4.281 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.279/1.47, allocations: 23.49 MB / 0.7609 GB, free: 13.05 MB / 0.5606 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002745/1.47, allocations: 349.2 kB / 0.7612 GB, free: 12.67 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.34/3.811, allocations: 0 / 0.7612 GB, free: 12.67 MB / 0.5606 GB (rm -f BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_SmallScaleValidation_fmu --startTime=0 --stopTime=1.8e+12 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_SmallScaleValidation.fmu > BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe 2>&1)