Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube,fileNamePrefix="Buildings_10_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesOneUTube",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube,fileNamePrefix="Buildings_10_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesOneUTube",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.00172/0.00172, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001971/0.001971, allocations: 193.9 kB / 16.53 MB, free: 6.664 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.349/1.349, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.609/2.609, allocations: 437.1 MB / 0.7104 GB, free: 5.074 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001547/0.001547, allocations: 63.91 kB / 0.8694 GB, free: 4.508 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7057/0.7073, allocations: 151.6 MB / 1.017 GB, free: 2.473 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube): time 0.004478/0.7118, allocations: 3.043 MB / 1.02 GB, free: 15.41 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.002893/0.7147, allocations: 2.154 MB / 1.023 GB, free: 13.25 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002739/0.715, allocations: 8 kB / 1.023 GB, free: 13.24 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.001501/0.7166, allocations: 0.4899 MB / 1.023 GB, free: 12.75 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0003882/0.717, allocations: 150.9 kB / 1.023 GB, free: 12.6 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001533/0.7171, allocations: 59.89 kB / 1.023 GB, free: 12.54 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0005592/0.7177, allocations: 449.7 kB / 1.024 GB, free: 12.11 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002417/0.718, allocations: 147.2 kB / 1.024 GB, free: 11.96 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002393/0.7182, allocations: 163.3 kB / 1.024 GB, free: 11.8 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002796/0.7185, allocations: 179.2 kB / 1.024 GB, free: 11.62 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 6.346e-05/0.7186, allocations: 35.94 kB / 1.024 GB, free: 11.59 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 8.712e-05/0.7187, allocations: 36 kB / 1.024 GB, free: 11.55 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001377/0.7188, allocations: 103.6 kB / 1.024 GB, free: 11.45 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0002403/0.7191, allocations: 214.9 kB / 1.024 GB, free: 11.24 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0006322/0.7197, allocations: 0.5411 MB / 1.025 GB, free: 10.7 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 7.784e-06/0.7197, allocations: 0 / 1.025 GB, free: 10.7 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.474e-06/0.7197, allocations: 0 / 1.025 GB, free: 10.7 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 2.672e-05/0.7198, allocations: 0 / 1.025 GB, free: 10.7 MB / 0.7794 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 52 * Number of variables: 52 Notification: Performance of Generate backend data structure: time 0.001353/0.7211, allocations: 0.6982 MB / 1.026 GB, free: 9.945 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 5.42e-05/0.7212, allocations: 16.03 kB / 1.026 GB, free: 9.93 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.202e-05/0.7213, allocations: 58.72 kB / 1.026 GB, free: 9.863 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001035/0.7214, allocations: 44.47 kB / 1.026 GB, free: 9.82 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005613/0.7219, allocations: 370.1 kB / 1.026 GB, free: 9.418 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.074e-05/0.722, allocations: 16.81 kB / 1.026 GB, free: 9.402 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.92e-05/0.722, allocations: 24.38 kB / 1.026 GB, free: 9.379 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004119/0.7225, allocations: 199.4 kB / 1.026 GB, free: 9.18 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.972e-05/0.7225, allocations: 7.906 kB / 1.026 GB, free: 9.172 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.228e-05/0.7225, allocations: 8 kB / 1.026 GB, free: 9.164 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.225e-05/0.7225, allocations: 8 kB / 1.026 GB, free: 9.156 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003974/0.7229, allocations: 165.7 kB / 1.027 GB, free: 8.992 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001274/0.7242, allocations: 0.8662 MB / 1.027 GB, free: 8.055 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002979/0.7245, allocations: 150.6 kB / 1.028 GB, free: 7.898 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002113/0.7247, allocations: 121.1 kB / 1.028 GB, free: 7.777 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.998e-05/0.7248, allocations: 3.906 kB / 1.028 GB, free: 7.773 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.238e-05/0.7248, allocations: 38.5 kB / 1.028 GB, free: 7.727 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=18): time 1.482e-06/0.7248, allocations: 0 / 1.028 GB, free: 7.727 MB / 0.7794 GB Notification: Performance of matching and sorting (n=18): time 0.0006086/0.7254, allocations: 254.2 kB / 1.028 GB, free: 7.473 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.237e-05/0.7255, allocations: 51.41 kB / 1.028 GB, free: 7.41 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004584/0.7259, allocations: 421.7 kB / 1.028 GB, free: 6.992 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.79e-05/0.726, allocations: 29.7 kB / 1.028 GB, free: 6.957 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001413/0.7261, allocations: 204.2 kB / 1.029 GB, free: 6.754 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 6.095e-05/0.7262, allocations: 67 kB / 1.029 GB, free: 6.688 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.548e-05/0.7262, allocations: 29.72 kB / 1.029 GB, free: 6.652 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001284/0.7264, allocations: 346.8 kB / 1.029 GB, free: 6.305 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001564/0.7265, allocations: 59.91 kB / 1.029 GB, free: 6.246 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001453/0.7267, allocations: 59.97 kB / 1.029 GB, free: 6.188 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002976/0.727, allocations: 130.5 kB / 1.029 GB, free: 6.059 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.507e-06/0.727, allocations: 4 kB / 1.029 GB, free: 6.055 MB / 0.7794 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0004038/0.7274, allocations: 210.8 kB / 1.029 GB, free: 5.844 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.058e-05/0.7274, allocations: 4 kB / 1.029 GB, free: 5.84 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.338e-06/0.7275, allocations: 7.938 kB / 1.029 GB, free: 5.832 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.543e-05/0.7275, allocations: 4 kB / 1.029 GB, free: 5.828 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002821/0.7278, allocations: 59.83 kB / 1.03 GB, free: 5.77 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.354e-06/0.7278, allocations: 0 / 1.03 GB, free: 5.77 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001517/0.7279, allocations: 19.84 kB / 1.03 GB, free: 5.75 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.377e-05/0.728, allocations: 7.984 kB / 1.03 GB, free: 5.742 MB / 0.7794 GB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (20): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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.0001692/0.7281, allocations: 163.4 kB / 1.03 GB, free: 5.574 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.789e-05/0.7282, allocations: 31.62 kB / 1.03 GB, free: 5.543 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.379e-05/0.7283, allocations: 47.53 kB / 1.03 GB, free: 5.492 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.392e-06/0.7283, allocations: 7.938 kB / 1.03 GB, free: 5.484 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.675e-06/0.7283, allocations: 3.984 kB / 1.03 GB, free: 5.48 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.819e-06/0.7283, allocations: 0 / 1.03 GB, free: 5.48 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004456/0.7288, allocations: 373.3 kB / 1.03 GB, free: 5.066 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.695e-06/0.7288, allocations: 0 / 1.03 GB, free: 5.066 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002695/0.7291, allocations: 59.95 kB / 1.03 GB, free: 5.008 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.547e-06/0.7291, allocations: 0 / 1.03 GB, free: 5.008 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.74e-05/0.7291, allocations: 3.938 kB / 1.03 GB, free: 5.004 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.014e-06/0.7291, allocations: 0 / 1.03 GB, free: 5.004 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.7291, allocations: 4 kB / 1.03 GB, free: 5 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006546/0.7298, allocations: 376.2 kB / 1.031 GB, free: 4.617 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001289/0.7299, allocations: 124.6 kB / 1.031 GB, free: 4.477 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.193e-05/0.73, allocations: 3.938 kB / 1.031 GB, free: 4.473 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001614/0.7302, allocations: 11.98 kB / 1.031 GB, free: 4.461 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.148e-05/0.7302, allocations: 16.05 kB / 1.031 GB, free: 4.445 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.309e-05/0.7302, allocations: 8 kB / 1.031 GB, free: 4.438 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0003705/0.7306, allocations: 299.1 kB / 1.031 GB, free: 4.148 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.6e-07/0.7306, allocations: 0 / 1.031 GB, free: 4.148 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003402/0.731, allocations: 71.84 kB / 1.031 GB, free: 4.078 MB / 0.7794 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (intRes1UTub.capFil1.T,intRes1UTub.capFil2.T) * 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 (18): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * 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.0009923/0.732, allocations: 0.9238 MB / 1.032 GB, free: 3.125 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0004119/0.7324, allocations: 150.1 kB / 1.032 GB, free: 2.98 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 3.406e-06/0.7324, allocations: 0 / 1.032 GB, free: 2.98 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001758/0.7326, allocations: 77.31 kB / 1.032 GB, free: 2.906 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007065/0.7333, allocations: 98.98 kB / 1.032 GB, free: 2.812 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004922/0.7382, allocations: 3.561 MB / 1.036 GB, free: 15.17 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004681/0.7387, allocations: 0.7912 MB / 1.037 GB, free: 14.36 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.000142/0.7389, allocations: 38.95 kB / 1.037 GB, free: 14.32 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001645/0.7391, allocations: 119.4 kB / 1.037 GB, free: 14.2 MB / 0.795 GB Notification: Performance of SimCode: time 5.91e-07/0.7391, allocations: 0 / 1.037 GB, free: 14.2 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02904/0.7681, allocations: 7.829 MB / 1.044 GB, free: 6.633 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.563/8.331, allocations: 8.766 kB / 1.044 GB, free: 6.625 MB / 0.795 GB (rm -f Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.pipe ; mkfifo Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.pipe >> ../files/Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube_res.mat --tempDir=temp_Buildings_10_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesOneUTube_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesOneUTube.fmu > Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.pipe 2>&1)