Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.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.InternalResistancesTwoUTube,fileNamePrefix="Buildings_9_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesTwoUTube",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube,fileNamePrefix="Buildings_9_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesTwoUTube",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.0007879/0.0007879, allocations: 86.95 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.0008321/0.0008322, 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.346/1.346, allocations: 223.3 MB / 240 MB, free: 5.434 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.462/2.462, allocations: 390.4 MB / 0.6655 GB, free: 2.98 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003293/0.0003293, allocations: 12 kB / 0.8149 GB, free: 14.11 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6828/0.6832, allocations: 142.3 MB / 0.9539 GB, free: 8.086 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube): time 0.003203/0.6864, allocations: 3.591 MB / 0.9574 GB, free: 5.273 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002334/0.6888, allocations: 2.204 MB / 0.9595 GB, free: 3.477 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002272/0.689, allocations: 10.88 kB / 0.9596 GB, free: 3.477 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0009891/0.69, allocations: 455.8 kB / 0.96 GB, free: 3.184 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0003349/0.6904, allocations: 219.5 kB / 0.9602 GB, free: 3 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001512/0.6905, allocations: 79 kB / 0.9603 GB, free: 2.934 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0006071/0.6911, allocations: 0.756 MB / 0.961 GB, free: 2.484 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003359/0.6915, allocations: 260.4 kB / 0.9613 GB, free: 2.316 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002539/0.6917, allocations: 228.1 kB / 0.9615 GB, free: 2.203 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000274/0.692, allocations: 280.5 kB / 0.9617 GB, free: 2.027 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 6.305e-05/0.6921, allocations: 34.59 kB / 0.9618 GB, free: 2.027 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 8.971e-05/0.6922, allocations: 34.47 kB / 0.9618 GB, free: 2.027 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0001077/0.6923, allocations: 124 kB / 0.9619 GB, free: 1.934 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001217/0.6924, allocations: 164.3 kB / 0.9621 GB, free: 1.832 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0005151/0.6929, allocations: 0.7855 MB / 0.9629 GB, free: 1.215 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.29e-06/0.693, allocations: 0 / 0.9629 GB, free: 1.215 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.685e-06/0.693, allocations: 5 kB / 0.9629 GB, free: 1.211 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 8.496e-06/0.693, allocations: 3.938 kB / 0.9629 GB, free: 1.207 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: 122 * Number of variables: 122 Notification: Performance of Generate backend data structure: time 0.001062/0.694, allocations: 0.8438 MB / 0.9637 GB, free: 0.5156 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.063e-05/0.6941, allocations: 10.03 kB / 0.9637 GB, free: 0.5156 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.633e-05/0.6942, allocations: 86.64 kB / 0.9638 GB, free: 448 kB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001002/0.6943, allocations: 74.95 kB / 0.9639 GB, free: 408 kB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004847/0.6948, allocations: 441 kB / 0.9643 GB, free: 8 kB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.497e-05/0.6948, allocations: 36.3 kB / 0.9643 GB, free: 15.99 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.039e-05/0.6949, allocations: 50.44 kB / 0.9644 GB, free: 15.97 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007507/0.6957, allocations: 428.7 kB / 0.9648 GB, free: 15.72 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.936e-05/0.6957, allocations: 7.844 kB / 0.9648 GB, free: 15.71 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.721e-05/0.6958, allocations: 16.94 kB / 0.9648 GB, free: 15.7 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.076e-05/0.6958, allocations: 12.19 kB / 0.9648 GB, free: 15.7 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006782/0.6964, allocations: 381.8 kB / 0.9652 GB, free: 15.52 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002006/0.6985, allocations: 1.541 MB / 0.9667 GB, free: 14.32 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005462/0.699, allocations: 337.8 kB / 0.967 GB, free: 14.14 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005382/0.6996, allocations: 359.5 kB / 0.9673 GB, free: 13.98 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.589e-05/0.6996, allocations: 8.062 kB / 0.9673 GB, free: 13.98 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.546e-05/0.6996, allocations: 40.72 kB / 0.9674 GB, free: 13.93 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=42): time 1.984e-06/0.6997, allocations: 0 / 0.9674 GB, free: 13.93 MB / 0.7325 GB Notification: Performance of matching and sorting (n=42): time 0.00098/0.7006, allocations: 0.5017 MB / 0.9679 GB, free: 13.68 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.374e-05/0.7007, allocations: 55.38 kB / 0.9679 GB, free: 13.62 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005736/0.7013, allocations: 486.7 kB / 0.9684 GB, free: 13.34 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.796e-05/0.7013, allocations: 35.8 kB / 0.9684 GB, free: 13.3 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001875/0.7015, allocations: 274.8 kB / 0.9687 GB, free: 13.05 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001172/0.7016, allocations: 142.4 kB / 0.9688 GB, free: 12.93 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.773e-05/0.7016, allocations: 9.656 kB / 0.9688 GB, free: 12.92 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001433/0.7018, allocations: 367.3 kB / 0.9692 GB, free: 12.56 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002506/0.7021, allocations: 120.5 kB / 0.9693 GB, free: 12.5 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002512/0.7023, allocations: 140.5 kB / 0.9694 GB, free: 12.43 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002593/0.7026, allocations: 143.4 kB / 0.9696 GB, free: 12.36 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.955e-06/0.7026, allocations: 0 / 0.9696 GB, free: 12.36 MB / 0.7325 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006526/0.7032, allocations: 399.8 kB / 0.9699 GB, free: 12.16 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.833e-05/0.7033, allocations: 5.125 kB / 0.9699 GB, free: 12.16 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.851e-06/0.7033, allocations: 0 / 0.9699 GB, free: 12.16 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.597e-05/0.7033, allocations: 6.031 kB / 0.97 GB, free: 12.16 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000496/0.7038, allocations: 126.4 kB / 0.9701 GB, free: 12.13 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.177e-06/0.7038, allocations: 5.109 kB / 0.9701 GB, free: 12.13 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002843/0.7041, allocations: 56.17 kB / 0.9701 GB, free: 12.09 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.939e-05/0.7041, allocations: 11.12 kB / 0.9701 GB, free: 12.09 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 (46): * Single equations (assignments): 46 * 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.0002162/0.7044, allocations: 201.2 kB / 0.9703 GB, free: 11.92 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.677e-05/0.7044, allocations: 51.23 kB / 0.9704 GB, free: 11.89 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000114/0.7046, allocations: 67.19 kB / 0.9704 GB, free: 11.84 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.841e-06/0.7046, allocations: 4.406 kB / 0.9705 GB, free: 11.84 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.747e-06/0.7046, allocations: 1.062 kB / 0.9705 GB, free: 11.84 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.419e-06/0.7046, allocations: 0 / 0.9705 GB, free: 11.84 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006475/0.7053, allocations: 0.5783 MB / 0.971 GB, free: 11.36 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.456e-06/0.7053, allocations: 8 kB / 0.971 GB, free: 11.35 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005012/0.7058, allocations: 126.7 kB / 0.9711 GB, free: 11.32 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.747e-06/0.7058, allocations: 1.438 kB / 0.9711 GB, free: 11.32 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.23e-05/0.7058, allocations: 6.5 kB / 0.9712 GB, free: 11.32 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.857e-06/0.7058, allocations: 2.031 kB / 0.9712 GB, free: 11.32 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.7058, allocations: 0 / 0.9712 GB, free: 11.32 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009625/0.7068, allocations: 0.6721 MB / 0.9718 GB, free: 10.91 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001197/0.7069, allocations: 132.4 kB / 0.9719 GB, free: 10.78 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.072e-05/0.707, allocations: 10.75 kB / 0.972 GB, free: 10.77 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002205/0.7072, allocations: 23.02 kB / 0.972 GB, free: 10.76 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.06e-05/0.7073, allocations: 27.36 kB / 0.972 GB, free: 10.74 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.892e-05/0.7073, allocations: 11.28 kB / 0.972 GB, free: 10.74 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0004095/0.7077, allocations: 352.3 kB / 0.9723 GB, free: 10.53 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7077, allocations: 0 / 0.9723 GB, free: 10.53 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0004553/0.7082, allocations: 144 kB / 0.9725 GB, free: 10.5 MB / 0.7325 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (intRes2UTub.capFil1.T,intRes2UTub.capFil2.T,intRes2UTub.capFil3.T,intRes2UTub.capFil4.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 (42): * Single equations (assignments): 42 * 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.001266/0.7095, allocations: 1.219 MB / 0.9737 GB, free: 9.559 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0005967/0.7101, allocations: 338.3 kB / 0.974 GB, free: 9.41 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 6.232e-06/0.7101, allocations: 9.031 kB / 0.974 GB, free: 9.402 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.000289/0.7104, allocations: 182.8 kB / 0.9742 GB, free: 9.324 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007148/0.7111, allocations: 120.8 kB / 0.9743 GB, free: 9.262 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004985/0.7161, allocations: 3.32 MB / 0.9775 GB, free: 7.18 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004103/0.7165, allocations: 0.8663 MB / 0.9784 GB, free: 6.402 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0002022/0.7168, allocations: 54.42 kB / 0.9784 GB, free: 6.379 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002421/0.717, allocations: 194.9 kB / 0.9786 GB, free: 6.215 MB / 0.7325 GB Notification: Performance of SimCode: time 7.41e-07/0.717, allocations: 0 / 0.9786 GB, free: 6.215 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02146/0.7385, allocations: 10.33 MB / 0.9887 GB, free: 12.33 MB / 0.7481 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001994/0.7387, allocations: 253.3 kB / 0.9889 GB, free: 12 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.814/2.553, allocations: 0 / 0.9889 GB, free: 12 MB / 0.7481 GB (rm -f Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe ; mkfifo Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe >> ../files/Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesTwoUTube_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesTwoUTube.fmu > Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube_res.mat does not exist to compare? outputFormat=mat