Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube,fileNamePrefix="Buildings_9_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_9_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.008333/0.008333, allocations: 106.3 kB / 15.74 MB, free: 6.004 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.001464/0.001464, allocations: 196.5 kB / 16.68 MB, free: 5.93 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.338/1.338, allocations: 222.9 MB / 240.4 MB, free: 15.11 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.203/2.203, allocations: 390.3 MB / 0.6648 GB, free: 0.6406 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.00144/0.001441, allocations: 67.89 kB / 0.9504 GB, free: 8.094 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8157/0.8171, allocations: 140.4 MB / 1.088 GB, free: 5.27 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube): time 0.004003/0.8212, allocations: 3.042 MB / 1.09 GB, free: 3.145 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.002648/0.8239, allocations: 2.145 MB / 1.093 GB, free: 1.586 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002081/0.8241, allocations: 5.5 kB / 1.093 GB, free: 1.586 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.001383/0.8255, allocations: 0.5 MB / 1.093 GB, free: 1.355 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0002636/0.8258, allocations: 153.3 kB / 1.093 GB, free: 1.254 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001253/0.8259, allocations: 55.92 kB / 1.093 GB, free: 1.219 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0004646/0.8264, allocations: 442.4 kB / 1.094 GB, free: 1 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002482/0.8266, allocations: 161.6 kB / 1.094 GB, free: 0.9141 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002143/0.8268, allocations: 158 kB / 1.094 GB, free: 0.8359 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002304/0.8271, allocations: 186.9 kB / 1.094 GB, free: 0.7383 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 6.248e-05/0.8272, allocations: 34.34 kB / 1.094 GB, free: 0.7383 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 7.223e-05/0.8272, allocations: 34.62 kB / 1.094 GB, free: 0.7383 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001265/0.8274, allocations: 94.52 kB / 1.094 GB, free: 0.6836 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0002003/0.8276, allocations: 221 kB / 1.095 GB, free: 0.5469 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0006295/0.8282, allocations: 0.5437 MB / 1.095 GB, free: 360 kB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.498e-06/0.8282, allocations: 4.844 kB / 1.095 GB, free: 356 kB / 0.8575 GB Notification: Performance of FrontEnd: time 1.212e-06/0.8282, allocations: 0 / 1.095 GB, free: 356 kB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.238e-05/0.8282, allocations: 0 / 1.095 GB, free: 356 kB / 0.8575 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.001088/0.8293, allocations: 0.6976 MB / 1.096 GB, free: 15.78 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 4.525e-05/0.8294, allocations: 17.62 kB / 1.096 GB, free: 15.77 MB / 0.8731 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.504e-05/0.8295, allocations: 55.2 kB / 1.096 GB, free: 15.72 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001326/0.8296, allocations: 46.69 kB / 1.096 GB, free: 15.7 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005706/0.8302, allocations: 375.4 kB / 1.096 GB, free: 15.39 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.389e-05/0.8302, allocations: 21.78 kB / 1.096 GB, free: 15.38 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.807e-05/0.8303, allocations: 17.59 kB / 1.096 GB, free: 15.37 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004328/0.8307, allocations: 205 kB / 1.096 GB, free: 15.27 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.41e-05/0.8307, allocations: 0 / 1.096 GB, free: 15.27 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.207e-05/0.8308, allocations: 14.64 kB / 1.096 GB, free: 15.26 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.128e-06/0.8308, allocations: 5.531 kB / 1.096 GB, free: 15.26 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004336/0.8312, allocations: 161 kB / 1.097 GB, free: 15.21 MB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001354/0.8326, allocations: 0.869 MB / 1.097 GB, free: 14.6 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003374/0.8329, allocations: 148.2 kB / 1.098 GB, free: 14.54 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002305/0.8332, allocations: 114.7 kB / 1.098 GB, free: 14.49 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 1.831e-05/0.8332, allocations: 2.406 kB / 1.098 GB, free: 14.49 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.468e-05/0.8332, allocations: 32.52 kB / 1.098 GB, free: 14.45 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=18): time 1.383e-06/0.8332, allocations: 4 kB / 1.098 GB, free: 14.45 MB / 0.8731 GB Notification: Performance of matching and sorting (n=18): time 0.0006394/0.8339, allocations: 255 kB / 1.098 GB, free: 14.33 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.093e-05/0.834, allocations: 57.94 kB / 1.098 GB, free: 14.27 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005272/0.8345, allocations: 418.2 kB / 1.098 GB, free: 14.07 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 2.249e-05/0.8345, allocations: 30.8 kB / 1.098 GB, free: 14.03 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.000156/0.8347, allocations: 202.8 kB / 1.099 GB, free: 13.86 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 6.906e-05/0.8348, allocations: 64.55 kB / 1.099 GB, free: 13.81 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.035e-05/0.8348, allocations: 34.23 kB / 1.099 GB, free: 13.79 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001442/0.835, allocations: 347.4 kB / 1.099 GB, free: 13.46 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001556/0.8351, allocations: 53.42 kB / 1.099 GB, free: 13.44 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001453/0.8353, allocations: 59.16 kB / 1.099 GB, free: 13.42 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002999/0.8356, allocations: 136.1 kB / 1.099 GB, free: 13.36 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.8356, allocations: 4 kB / 1.099 GB, free: 13.36 MB / 0.8731 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0004082/0.836, allocations: 206.3 kB / 1.1 GB, free: 13.26 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.891e-05/0.8361, allocations: 5.734 kB / 1.1 GB, free: 13.26 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.995e-06/0.8361, allocations: 3.938 kB / 1.1 GB, free: 13.26 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.53e-05/0.8361, allocations: 4.719 kB / 1.1 GB, free: 13.25 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002698/0.8364, allocations: 59.03 kB / 1.1 GB, free: 13.25 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.143e-06/0.8364, allocations: 5.797 kB / 1.1 GB, free: 13.24 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001606/0.8366, allocations: 19.98 kB / 1.1 GB, free: 13.23 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.363e-05/0.8366, allocations: 11.22 kB / 1.1 GB, free: 13.22 MB / 0.8731 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.0001741/0.8368, allocations: 162 kB / 1.1 GB, free: 13.08 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.281e-05/0.8368, allocations: 39.52 kB / 1.1 GB, free: 13.06 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.416e-05/0.8369, allocations: 44.66 kB / 1.1 GB, free: 13.02 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.437e-06/0.8369, allocations: 2.844 kB / 1.1 GB, free: 13.02 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.522e-06/0.8369, allocations: 0.6094 kB / 1.1 GB, free: 13.02 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.16e-06/0.8369, allocations: 1.359 kB / 1.1 GB, free: 13.02 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004957/0.8374, allocations: 379.2 kB / 1.1 GB, free: 12.74 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.414e-06/0.8375, allocations: 5.219 kB / 1.1 GB, free: 12.74 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002559/0.8377, allocations: 54.16 kB / 1.1 GB, free: 12.73 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.267e-06/0.8377, allocations: 1.703 kB / 1.1 GB, free: 12.73 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.827e-05/0.8377, allocations: 9.062 kB / 1.1 GB, free: 12.73 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.846e-06/0.8378, allocations: 1.922 kB / 1.1 GB, free: 12.73 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.8378, allocations: 0 / 1.1 GB, free: 12.73 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006514/0.8384, allocations: 373.1 kB / 1.101 GB, free: 12.5 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001214/0.8385, allocations: 115.8 kB / 1.101 GB, free: 12.38 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.132e-05/0.8386, allocations: 9.125 kB / 1.101 GB, free: 12.38 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001599/0.8388, allocations: 10.03 kB / 1.101 GB, free: 12.37 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.542e-05/0.8388, allocations: 9.906 kB / 1.101 GB, free: 12.37 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.01e-05/0.8388, allocations: 7.516 kB / 1.101 GB, free: 12.37 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0003534/0.8392, allocations: 305.1 kB / 1.101 GB, free: 12.22 MB / 0.8731 GB Notification: Performance of sort global known variables: time 2.31e-07/0.8392, allocations: 0 / 1.101 GB, free: 12.22 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0003305/0.8395, allocations: 75.72 kB / 1.101 GB, free: 12.2 MB / 0.8731 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.0009659/0.8405, allocations: 0.9203 MB / 1.102 GB, free: 11.44 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0003921/0.8409, allocations: 144.3 kB / 1.102 GB, free: 11.4 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.8409, allocations: 0 / 1.102 GB, free: 11.4 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.000179/0.8411, allocations: 82.03 kB / 1.102 GB, free: 11.37 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000573/0.8417, allocations: 100.8 kB / 1.102 GB, free: 11.32 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005884/0.8476, allocations: 3.479 MB / 1.106 GB, free: 9.258 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005186/0.8482, allocations: 0.8026 MB / 1.107 GB, free: 8.543 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0001904/0.8484, allocations: 34.48 kB / 1.107 GB, free: 8.535 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000187/0.8485, allocations: 119.1 kB / 1.107 GB, free: 8.445 MB / 0.8731 GB Notification: Performance of SimCode: time 1.052e-06/0.8486, allocations: 0 / 1.107 GB, free: 8.445 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03653/0.8851, allocations: 7.992 MB / 1.115 GB, free: 7.586 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.883/8.768, allocations: 7.938 kB / 1.115 GB, free: 7.586 MB / 0.8731 GB (rm -f Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.pipe ; mkfifo Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.pipe >> ../files/Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesOneUTube_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesOneUTube.fmu > Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.pipe 2>&1)