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.0009901/0.0009901, allocations: 87.03 kB / 15.06 MB, free: 1.09 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.001181/0.001181, allocations: 168.7 kB / 15.95 MB, free: 204 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.355/1.355, allocations: 223.2 MB / 240 MB, free: 5.422 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.383/2.383, allocations: 390.4 MB / 0.6655 GB, free: 2.926 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003702/0.0003703, allocations: 8 kB / 0.8149 GB, free: 14.07 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7464/0.7468, allocations: 142.3 MB / 0.9539 GB, free: 8.07 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube): time 0.002763/0.7496, allocations: 2.588 MB / 0.9564 GB, free: 6.051 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002308/0.7519, allocations: 1.946 MB / 0.9583 GB, free: 4.48 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001622/0.7521, allocations: 5.531 kB / 0.9583 GB, free: 4.48 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.001054/0.7532, allocations: 431.2 kB / 0.9587 GB, free: 4.207 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0002279/0.7534, allocations: 130.1 kB / 0.9589 GB, free: 4.102 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 9.17e-05/0.7535, allocations: 33.56 kB / 0.9589 GB, free: 4.074 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0004193/0.7539, allocations: 430.2 kB / 0.9593 GB, free: 3.82 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001948/0.7541, allocations: 123.2 kB / 0.9594 GB, free: 3.738 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001545/0.7543, allocations: 134.5 kB / 0.9596 GB, free: 3.668 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001849/0.7545, allocations: 164 kB / 0.9597 GB, free: 3.566 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.208e-05/0.7545, allocations: 19.25 kB / 0.9597 GB, free: 3.566 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 5.295e-05/0.7546, allocations: 17.88 kB / 0.9597 GB, free: 3.566 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 8.15e-05/0.7547, allocations: 80.3 kB / 0.9598 GB, free: 3.508 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 7.385e-05/0.7547, allocations: 108 kB / 0.9599 GB, free: 3.434 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002983/0.7551, allocations: 439.1 kB / 0.9603 GB, free: 3.102 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/0.7551, allocations: 0 / 0.9603 GB, free: 3.102 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.753e-06/0.7551, allocations: 5.375 kB / 0.9603 GB, free: 3.098 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.152e-06/0.7551, allocations: 0 / 0.9603 GB, free: 3.098 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.0007843/0.7559, allocations: 0.6466 MB / 0.961 GB, free: 2.52 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.63e-05/0.7559, allocations: 13.5 kB / 0.961 GB, free: 2.516 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.692e-05/0.756, allocations: 57.38 kB / 0.961 GB, free: 2.457 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.077e-05/0.7561, allocations: 42.03 kB / 0.9611 GB, free: 2.438 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003973/0.7565, allocations: 358.4 kB / 0.9614 GB, free: 2.113 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.686e-05/0.7565, allocations: 16.22 kB / 0.9614 GB, free: 2.105 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.781e-05/0.7565, allocations: 22.25 kB / 0.9615 GB, free: 2.098 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003923/0.7569, allocations: 205.7 kB / 0.9617 GB, free: 1.973 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.169e-05/0.7569, allocations: 4 kB / 0.9617 GB, free: 1.969 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.057e-05/0.757, allocations: 6.812 kB / 0.9617 GB, free: 1.965 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.059e-05/0.757, allocations: 9.234 kB / 0.9617 GB, free: 1.961 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003792/0.7574, allocations: 171.1 kB / 0.9618 GB, free: 1.887 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001031/0.7584, allocations: 0.8855 MB / 0.9627 GB, free: 1.125 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002888/0.7587, allocations: 157 kB / 0.9629 GB, free: 1.039 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002149/0.7589, allocations: 118.6 kB / 0.963 GB, free: 0.9805 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.743e-05/0.759, allocations: 5.875 kB / 0.963 GB, free: 0.9766 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.177e-05/0.759, allocations: 36.62 kB / 0.963 GB, free: 0.9336 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=18): time 1.312e-06/0.759, allocations: 0 / 0.963 GB, free: 0.9336 MB / 0.7169 GB Notification: Performance of matching and sorting (n=18): time 0.0005944/0.7596, allocations: 271.5 kB / 0.9633 GB, free: 0.793 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.482e-05/0.7596, allocations: 53.88 kB / 0.9633 GB, free: 0.7305 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004619/0.7601, allocations: 417.9 kB / 0.9637 GB, free: 488 kB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.38e-05/0.7601, allocations: 25.7 kB / 0.9637 GB, free: 456 kB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001236/0.7602, allocations: 205.5 kB / 0.9639 GB, free: 268 kB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 5.073e-05/0.7603, allocations: 61.69 kB / 0.964 GB, free: 212 kB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.286e-06/0.7603, allocations: 5.5 kB / 0.964 GB, free: 208 kB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 0.0001477/0.7605, allocations: 355.7 kB / 0.9643 GB, free: 15.86 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001611/0.7606, allocations: 57.09 kB / 0.9644 GB, free: 15.83 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001486/0.7608, allocations: 58.16 kB / 0.9645 GB, free: 15.81 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001725/0.761, allocations: 73.45 kB / 0.9645 GB, free: 15.77 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.893e-06/0.761, allocations: 1.125 kB / 0.9645 GB, free: 15.77 MB / 0.7325 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0004208/0.7614, allocations: 216.1 kB / 0.9647 GB, free: 15.66 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.799e-05/0.7614, allocations: 7.344 kB / 0.9647 GB, free: 15.66 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.602e-06/0.7614, allocations: 0 / 0.9647 GB, free: 15.66 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.42e-05/0.7615, allocations: 4 kB / 0.9647 GB, free: 15.65 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002492/0.7617, allocations: 57.33 kB / 0.9648 GB, free: 15.64 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.672e-06/0.7617, allocations: 0 / 0.9648 GB, free: 15.64 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001613/0.7619, allocations: 32.56 kB / 0.9648 GB, free: 15.62 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.129e-05/0.7619, allocations: 3.594 kB / 0.9648 GB, free: 15.62 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.0001933/0.7621, allocations: 164.4 kB / 0.965 GB, free: 15.47 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.983e-05/0.7622, allocations: 35.66 kB / 0.965 GB, free: 15.45 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.773e-05/0.7623, allocations: 43.64 kB / 0.9651 GB, free: 15.42 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.359e-06/0.7623, allocations: 1.25 kB / 0.9651 GB, free: 15.42 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.145e-06/0.7623, allocations: 0.75 kB / 0.9651 GB, free: 15.42 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.242e-06/0.7623, allocations: 0.9688 kB / 0.9651 GB, free: 15.42 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000553/0.7629, allocations: 378 kB / 0.9654 GB, free: 15.08 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.187e-06/0.7629, allocations: 3.984 kB / 0.9654 GB, free: 15.07 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002707/0.7632, allocations: 59.47 kB / 0.9655 GB, free: 15.06 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.372e-06/0.7632, allocations: 5.25 kB / 0.9655 GB, free: 15.05 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.755e-05/0.7632, allocations: 4.969 kB / 0.9655 GB, free: 15.05 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.027e-06/0.7632, allocations: 1.156 kB / 0.9655 GB, free: 15.05 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.7632, allocations: 5.312 kB / 0.9655 GB, free: 15.05 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007066/0.764, allocations: 398.5 kB / 0.9659 GB, free: 14.79 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001076/0.7641, allocations: 115 kB / 0.966 GB, free: 14.66 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.58e-05/0.7641, allocations: 6.25 kB / 0.966 GB, free: 14.66 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001588/0.7643, allocations: 15.8 kB / 0.966 GB, free: 14.65 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.207e-05/0.7643, allocations: 17.05 kB / 0.966 GB, free: 14.64 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.133e-05/0.7644, allocations: 3.312 kB / 0.966 GB, free: 14.64 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0003736/0.7647, allocations: 303.6 kB / 0.9663 GB, free: 14.46 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7648, allocations: 0 / 0.9663 GB, free: 14.46 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0003385/0.7651, allocations: 71.75 kB / 0.9664 GB, free: 14.45 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.001013/0.7661, allocations: 0.9353 MB / 0.9673 GB, free: 13.66 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0003739/0.7665, allocations: 150.2 kB / 0.9674 GB, free: 13.6 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.7665, allocations: 1.031 kB / 0.9674 GB, free: 13.6 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.000173/0.7667, allocations: 85.41 kB / 0.9675 GB, free: 13.56 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006126/0.7673, allocations: 89.67 kB / 0.9676 GB, free: 13.51 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003644/0.771, allocations: 2.209 MB / 0.9698 GB, free: 12.11 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003652/0.7713, allocations: 0.7964 MB / 0.9705 GB, free: 11.36 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001464/0.7715, allocations: 39.27 kB / 0.9706 GB, free: 11.34 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001628/0.7717, allocations: 117.7 kB / 0.9707 GB, free: 11.24 MB / 0.7325 GB Notification: Performance of SimCode: time 2.4e-07/0.7717, allocations: 0 / 0.9707 GB, free: 11.24 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01919/0.7909, allocations: 7.181 MB / 0.9777 GB, free: 7.586 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002043/0.7911, allocations: 257 kB / 0.978 GB, free: 7.246 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.787/2.578, allocations: 2.062 kB / 0.978 GB, free: 7.246 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