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.001129/0.001129, 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.001274/0.001274, allocations: 192.7 kB / 16.53 MB, free: 6.699 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.202/1.202, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.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.151/2.151, allocations: 390.3 MB / 0.6647 GB, free: 372 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001167/0.001167, allocations: 63.91 kB / 0.8127 GB, free: 14.29 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5149/0.5161, allocations: 140.4 MB / 0.9497 GB, free: 9.18 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube): time 0.003243/0.5194, allocations: 3.039 MB / 0.9527 GB, free: 6.793 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001813/0.5212, allocations: 2.148 MB / 0.9548 GB, free: 5.043 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001306/0.5214, allocations: 4.844 kB / 0.9548 GB, free: 5.043 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.001041/0.5224, allocations: 0.5017 MB / 0.9553 GB, free: 4.715 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001844/0.5226, allocations: 149.3 kB / 0.9555 GB, free: 4.59 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 8.534e-05/0.5227, allocations: 59.02 kB / 0.9555 GB, free: 4.539 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.00032/0.523, allocations: 442.7 kB / 0.9559 GB, free: 4.285 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001802/0.5232, allocations: 172.3 kB / 0.9561 GB, free: 4.18 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001366/0.5234, allocations: 150 kB / 0.9562 GB, free: 4.094 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001575/0.5235, allocations: 179.2 kB / 0.9564 GB, free: 3.973 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 4.347e-05/0.5236, allocations: 34.31 kB / 0.9564 GB, free: 3.973 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 5.743e-05/0.5236, allocations: 34.47 kB / 0.9565 GB, free: 3.973 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 7.72e-05/0.5237, allocations: 99.67 kB / 0.9566 GB, free: 3.895 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.000152/0.5239, allocations: 216.2 kB / 0.9568 GB, free: 3.75 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0003124/0.5242, allocations: 0.5401 MB / 0.9573 GB, free: 3.34 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.5242, allocations: 9.125 kB / 0.9573 GB, free: 3.332 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.082e-06/0.5242, allocations: 0 / 0.9573 GB, free: 3.332 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.172e-06/0.5242, allocations: 0 / 0.9573 GB, free: 3.332 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: 52 * Number of variables: 52 Notification: Performance of Generate backend data structure: time 0.0007541/0.525, allocations: 0.6944 MB / 0.958 GB, free: 2.723 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.121e-05/0.525, allocations: 9.312 kB / 0.958 GB, free: 2.723 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.187e-05/0.5251, allocations: 60.81 kB / 0.9581 GB, free: 2.66 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.696e-05/0.5251, allocations: 46.38 kB / 0.9581 GB, free: 2.637 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003244/0.5255, allocations: 372.5 kB / 0.9585 GB, free: 2.301 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.548e-05/0.5255, allocations: 16.94 kB / 0.9585 GB, free: 2.293 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.318e-05/0.5255, allocations: 21.89 kB / 0.9585 GB, free: 2.285 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003212/0.5258, allocations: 206.6 kB / 0.9587 GB, free: 2.156 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.094e-05/0.5259, allocations: 0 / 0.9587 GB, free: 2.156 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.698e-05/0.5259, allocations: 10.75 kB / 0.9587 GB, free: 2.148 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.263e-06/0.5259, allocations: 5.5 kB / 0.9587 GB, free: 2.148 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000319/0.5262, allocations: 166.8 kB / 0.9589 GB, free: 2.066 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008634/0.5271, allocations: 0.8688 MB / 0.9597 GB, free: 1.316 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000256/0.5274, allocations: 152.3 kB / 0.9599 GB, free: 1.23 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001855/0.5276, allocations: 112.7 kB / 0.96 GB, free: 1.172 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.302e-05/0.5276, allocations: 6.125 kB / 0.96 GB, free: 1.168 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.561e-05/0.5276, allocations: 36.34 kB / 0.96 GB, free: 1.125 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=18): time 1.223e-06/0.5276, allocations: 0 / 0.96 GB, free: 1.125 MB / 0.7169 GB Notification: Performance of matching and sorting (n=18): time 0.0005422/0.5281, allocations: 259.3 kB / 0.9603 GB, free: 0.9844 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.606e-05/0.5282, allocations: 57.59 kB / 0.9603 GB, free: 0.918 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003781/0.5286, allocations: 419.5 kB / 0.9607 GB, free: 0.668 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.134e-05/0.5286, allocations: 34.84 kB / 0.9607 GB, free: 0.6289 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 8.884e-05/0.5287, allocations: 200.8 kB / 0.9609 GB, free: 460 kB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 4.053e-05/0.5287, allocations: 66.81 kB / 0.961 GB, free: 400 kB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.637e-05/0.5288, allocations: 32.12 kB / 0.961 GB, free: 372 kB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.245e-05/0.5288, allocations: 352.1 kB / 0.9614 GB, free: 20 kB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001581/0.529, allocations: 56.28 kB / 0.9614 GB, free: 15.99 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001372/0.5292, allocations: 62.94 kB / 0.9615 GB, free: 15.96 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002812/0.5294, allocations: 133 kB / 0.9616 GB, free: 15.89 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.834e-06/0.5294, allocations: 0 / 0.9616 GB, free: 15.89 MB / 0.7325 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003654/0.5298, allocations: 204 kB / 0.9618 GB, free: 15.78 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.299e-05/0.5298, allocations: 10.22 kB / 0.9618 GB, free: 15.77 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.981e-06/0.5299, allocations: 3.938 kB / 0.9618 GB, free: 15.77 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.301e-05/0.5299, allocations: 1.469 kB / 0.9618 GB, free: 15.77 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002325/0.5301, allocations: 60.98 kB / 0.9619 GB, free: 15.75 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.931e-06/0.5301, allocations: 1.156 kB / 0.9619 GB, free: 15.75 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001274/0.5303, allocations: 13.94 kB / 0.9619 GB, free: 15.74 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.23e-05/0.5303, allocations: 7.406 kB / 0.9619 GB, free: 15.74 MB / 0.7325 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.0001446/0.5304, allocations: 165.5 kB / 0.962 GB, free: 15.59 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.603e-05/0.5305, allocations: 33.22 kB / 0.9621 GB, free: 15.57 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.735e-05/0.5306, allocations: 43.53 kB / 0.9621 GB, free: 15.54 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.757e-06/0.5306, allocations: 9.062 kB / 0.9621 GB, free: 15.53 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.05e-06/0.5306, allocations: 1.562 kB / 0.9621 GB, free: 15.53 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.439e-06/0.5306, allocations: 3.984 kB / 0.9621 GB, free: 15.52 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003627/0.5309, allocations: 377.9 kB / 0.9625 GB, free: 15.19 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.283e-06/0.531, allocations: 0 / 0.9625 GB, free: 15.19 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000229/0.5312, allocations: 49.59 kB / 0.9625 GB, free: 15.18 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.495e-06/0.5312, allocations: 1.562 kB / 0.9625 GB, free: 15.18 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.636e-05/0.5312, allocations: 13.23 kB / 0.9626 GB, free: 15.17 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.402e-06/0.5312, allocations: 0 / 0.9626 GB, free: 15.17 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.986e-06/0.5312, allocations: 1.156 kB / 0.9626 GB, free: 15.17 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005439/0.5318, allocations: 382 kB / 0.9629 GB, free: 14.91 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 9.86e-05/0.5319, allocations: 115.2 kB / 0.963 GB, free: 14.79 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.611e-05/0.5319, allocations: 9.062 kB / 0.963 GB, free: 14.78 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001496/0.5321, allocations: 9.828 kB / 0.9631 GB, free: 14.78 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.818e-05/0.5321, allocations: 13.3 kB / 0.9631 GB, free: 14.77 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.004e-06/0.5322, allocations: 6.844 kB / 0.9631 GB, free: 14.77 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0002722/0.5324, allocations: 305.1 kB / 0.9634 GB, free: 14.58 MB / 0.7325 GB Notification: Performance of sort global known variables: time 2.01e-07/0.5324, allocations: 0 / 0.9634 GB, free: 14.58 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002841/0.5327, allocations: 71.66 kB / 0.9634 GB, free: 14.57 MB / 0.7325 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.0008552/0.5336, allocations: 0.9255 MB / 0.9643 GB, free: 13.77 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0003603/0.534, allocations: 156.5 kB / 0.9645 GB, free: 13.7 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.534, allocations: 0 / 0.9645 GB, free: 13.7 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001614/0.5341, allocations: 76.75 kB / 0.9646 GB, free: 13.67 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005436/0.5347, allocations: 89.02 kB / 0.9646 GB, free: 13.62 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004229/0.5389, allocations: 3.553 MB / 0.9681 GB, free: 11.21 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003473/0.5393, allocations: 0.7935 MB / 0.9689 GB, free: 10.46 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001165/0.5394, allocations: 33.92 kB / 0.9689 GB, free: 10.45 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00015/0.5396, allocations: 121 kB / 0.969 GB, free: 10.35 MB / 0.7325 GB Notification: Performance of SimCode: time 2.21e-07/0.5396, allocations: 0 / 0.969 GB, free: 10.35 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.29/1.83, allocations: 7.844 MB / 0.9767 GB, free: 5.977 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.137/9.967, allocations: 4.812 kB / 0.9767 GB, free: 5.973 MB / 0.7325 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)