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.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.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.001023/0.001023, allocations: 99.7 kB / 15.05 MB, free: 1.105 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.001104/0.001104, allocations: 177.3 kB / 15.95 MB, free: 216 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.456/1.456, allocations: 223.2 MB / 239.9 MB, free: 5.445 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.463/2.463, allocations: 390.3 MB / 0.6653 GB, free: 2.969 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.000395/0.0003951, allocations: 8 kB / 0.8147 GB, free: 14.16 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8215/0.8219, allocations: 142.3 MB / 0.9536 GB, free: 8.121 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube): time 0.002715/0.8247, allocations: 2.416 MB / 0.956 GB, free: 6.258 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002298/0.827, allocations: 1.911 MB / 0.9579 GB, free: 4.738 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001677/0.8272, allocations: 9.031 kB / 0.9579 GB, free: 4.734 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.001135/0.8284, allocations: 444.2 kB / 0.9583 GB, free: 4.441 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0002578/0.8286, allocations: 148.2 kB / 0.9584 GB, free: 4.316 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 9.619e-05/0.8287, allocations: 38.86 kB / 0.9585 GB, free: 4.285 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0003933/0.8291, allocations: 319.2 kB / 0.9588 GB, free: 4.098 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002154/0.8294, allocations: 116.2 kB / 0.9589 GB, free: 4.023 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001858/0.8296, allocations: 141.3 kB / 0.959 GB, free: 3.945 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001764/0.8297, allocations: 145 kB / 0.9592 GB, free: 3.855 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.915e-05/0.8298, allocations: 23.25 kB / 0.9592 GB, free: 3.852 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 5.901e-05/0.8299, allocations: 17.88 kB / 0.9592 GB, free: 3.852 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 9.461e-05/0.83, allocations: 79.23 kB / 0.9593 GB, free: 3.793 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 9.521e-05/0.8301, allocations: 107.7 kB / 0.9594 GB, free: 3.719 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0003536/0.8304, allocations: 437.6 kB / 0.9598 GB, free: 3.387 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.086e-06/0.8304, allocations: 3.938 kB / 0.9598 GB, free: 3.383 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.685e-06/0.8304, allocations: 0 / 0.9598 GB, free: 3.383 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 1.183e-05/0.8305, allocations: 3.938 kB / 0.9598 GB, free: 3.379 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.0009298/0.8314, allocations: 0.6534 MB / 0.9604 GB, free: 2.797 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.823e-05/0.8314, allocations: 9.406 kB / 0.9604 GB, free: 2.797 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.651e-05/0.8315, allocations: 56.31 kB / 0.9605 GB, free: 2.738 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.629e-05/0.8316, allocations: 41.88 kB / 0.9605 GB, free: 2.719 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004356/0.832, allocations: 358.2 kB / 0.9609 GB, free: 2.395 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.012e-05/0.8321, allocations: 21.06 kB / 0.9609 GB, free: 2.383 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.275e-05/0.8321, allocations: 17.94 kB / 0.9609 GB, free: 2.379 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003742/0.8325, allocations: 203.5 kB / 0.9611 GB, free: 2.254 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.493e-05/0.8325, allocations: 4.938 kB / 0.9611 GB, free: 2.25 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.882e-05/0.8325, allocations: 10 kB / 0.9611 GB, free: 2.242 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.726e-06/0.8326, allocations: 8.984 kB / 0.9611 GB, free: 2.238 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003712/0.8329, allocations: 171.7 kB / 0.9613 GB, free: 2.164 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001034/0.834, allocations: 0.8737 MB / 0.9622 GB, free: 1.414 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002867/0.8343, allocations: 165.9 kB / 0.9623 GB, free: 1.32 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.69e-05/0.8343, allocations: 1.375 kB / 0.9623 GB, free: 1.32 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.819e-05/0.8343, allocations: 40 kB / 0.9624 GB, free: 1.273 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=18): time 1.443e-06/0.8343, allocations: 0 / 0.9624 GB, free: 1.273 MB / 0.7169 GB Notification: Performance of matching and sorting (n=18): time 0.0006071/0.8349, allocations: 264.4 kB / 0.9626 GB, free: 1.141 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.706e-05/0.835, allocations: 56.69 kB / 0.9627 GB, free: 1.074 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004666/0.8354, allocations: 417.6 kB / 0.9631 GB, free: 0.8203 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.406e-05/0.8355, allocations: 26.77 kB / 0.9631 GB, free: 0.7891 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001113/0.8356, allocations: 208.2 kB / 0.9633 GB, free: 0.6016 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 5.034e-05/0.8356, allocations: 63.38 kB / 0.9633 GB, free: 0.5469 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.614e-06/0.8357, allocations: 8 kB / 0.9633 GB, free: 0.5391 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 8.478e-05/0.8357, allocations: 352.2 kB / 0.9637 GB, free: 200 kB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001451/0.8359, allocations: 56.69 kB / 0.9637 GB, free: 176 kB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001235/0.836, allocations: 63.31 kB / 0.9638 GB, free: 148 kB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000163/0.8362, allocations: 73.16 kB / 0.9639 GB, free: 112 kB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.8362, allocations: 0 / 0.9639 GB, free: 112 kB / 0.7169 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003865/0.8366, allocations: 212.5 kB / 0.9641 GB, free: 15.99 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.562e-05/0.8366, allocations: 10.44 kB / 0.9641 GB, free: 15.99 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.789e-06/0.8366, allocations: 1.406 kB / 0.9641 GB, free: 15.99 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.409e-05/0.8367, allocations: 1.438 kB / 0.9641 GB, free: 15.99 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000255/0.8369, allocations: 59.3 kB / 0.9641 GB, free: 15.97 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.763e-06/0.8369, allocations: 1.531 kB / 0.9641 GB, free: 15.97 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001702/0.8371, allocations: 26.92 kB / 0.9642 GB, free: 15.96 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.192e-05/0.8371, allocations: 10.42 kB / 0.9642 GB, free: 15.95 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001615/0.8373, allocations: 164.9 kB / 0.9643 GB, free: 15.81 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.268e-05/0.8374, allocations: 39.89 kB / 0.9644 GB, free: 15.79 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.882e-05/0.8374, allocations: 43.8 kB / 0.9644 GB, free: 15.75 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.037e-06/0.8375, allocations: 2.281 kB / 0.9644 GB, free: 15.75 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.74e-06/0.8375, allocations: 0 / 0.9644 GB, free: 15.75 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.337e-06/0.8375, allocations: 0 / 0.9644 GB, free: 15.75 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004352/0.8379, allocations: 375.1 kB / 0.9648 GB, free: 15.41 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.843e-06/0.8379, allocations: 0 / 0.9648 GB, free: 15.41 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002695/0.8382, allocations: 63.64 kB / 0.9648 GB, free: 15.39 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.927e-06/0.8382, allocations: 1.031 kB / 0.9648 GB, free: 15.39 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.64e-05/0.8382, allocations: 5 kB / 0.9648 GB, free: 15.39 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.374e-06/0.8382, allocations: 1 kB / 0.9648 GB, free: 15.39 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.8383, allocations: 1.188 kB / 0.9648 GB, free: 15.39 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000659/0.8389, allocations: 401.9 kB / 0.9652 GB, free: 15.12 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001112/0.839, allocations: 119.2 kB / 0.9653 GB, free: 15 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.601e-05/0.8391, allocations: 4 kB / 0.9653 GB, free: 15 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000167/0.8393, allocations: 14.72 kB / 0.9654 GB, free: 14.99 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.104e-05/0.8393, allocations: 15.59 kB / 0.9654 GB, free: 14.98 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.796e-06/0.8393, allocations: 3.906 kB / 0.9654 GB, free: 14.98 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0003512/0.8397, allocations: 297.8 kB / 0.9657 GB, free: 14.8 MB / 0.7325 GB Notification: Performance of sort global known variables: time 3.31e-07/0.8397, allocations: 3.938 kB / 0.9657 GB, free: 14.8 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0003399/0.84, allocations: 72.53 kB / 0.9657 GB, free: 14.79 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 (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.0009823/0.841, allocations: 0.9334 MB / 0.9666 GB, free: 14 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0003823/0.8414, allocations: 156.2 kB / 0.9668 GB, free: 13.93 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 5.09e-06/0.8414, allocations: 0 / 0.9668 GB, free: 13.93 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001792/0.8416, allocations: 89.72 kB / 0.9669 GB, free: 13.89 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005292/0.8422, allocations: 77.81 kB / 0.967 GB, free: 13.86 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00368/0.8459, allocations: 2.185 MB / 0.9691 GB, free: 12.45 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003495/0.8462, allocations: 0.8059 MB / 0.9699 GB, free: 11.7 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001369/0.8464, allocations: 30.62 kB / 0.9699 GB, free: 11.69 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001504/0.8465, allocations: 119.5 kB / 0.97 GB, free: 11.59 MB / 0.7325 GB Notification: Performance of SimCode: time 6.41e-07/0.8465, allocations: 0 / 0.97 GB, free: 11.59 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02004/0.8666, allocations: 7.165 MB / 0.977 GB, free: 8.031 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002057/0.8668, allocations: 245.5 kB / 0.9772 GB, free: 7.719 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.747/2.614, allocations: 0 / 0.9772 GB, free: 7.719 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/linux/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) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube_res.mat does not exist to compare? outputFormat=mat