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.0009272/0.0009272, allocations: 99.62 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.0009445/0.0009447, 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.478/1.478, allocations: 223.2 MB / 239.9 MB, free: 5.379 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.486/2.486, allocations: 390.3 MB / 0.6653 GB, free: 2.977 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003457/0.0003457, allocations: 11.98 kB / 0.8147 GB, free: 14.18 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7733/0.7737, allocations: 142.3 MB / 0.9536 GB, free: 8.074 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube): time 0.00366/0.7774, allocations: 3.277 MB / 0.9568 GB, free: 5.547 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002786/0.7802, allocations: 2.187 MB / 0.959 GB, free: 3.793 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002731/0.7805, allocations: 13.62 kB / 0.959 GB, free: 3.789 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.001087/0.7816, allocations: 476.9 kB / 0.9594 GB, free: 3.469 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0003884/0.782, allocations: 247 kB / 0.9597 GB, free: 3.258 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001696/0.7822, allocations: 88.23 kB / 0.9598 GB, free: 3.184 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0006287/0.7828, allocations: 0.5607 MB / 0.9603 GB, free: 2.84 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000388/0.7832, allocations: 244.8 kB / 0.9605 GB, free: 2.688 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002809/0.7835, allocations: 236.2 kB / 0.9608 GB, free: 2.566 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002716/0.7838, allocations: 264.4 kB / 0.961 GB, free: 2.398 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 6.823e-05/0.7839, allocations: 34.59 kB / 0.961 GB, free: 2.398 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 9.686e-05/0.784, allocations: 35.38 kB / 0.9611 GB, free: 2.398 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0001179/0.7841, allocations: 122.1 kB / 0.9612 GB, free: 2.305 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001407/0.7842, allocations: 156.6 kB / 0.9613 GB, free: 2.211 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.000565/0.7848, allocations: 0.7852 MB / 0.9621 GB, free: 1.59 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.575e-06/0.7848, allocations: 1.156 kB / 0.9621 GB, free: 1.59 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.244e-06/0.7848, allocations: 0 / 0.9621 GB, free: 1.59 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 8.476e-06/0.7848, allocations: 0 / 0.9621 GB, free: 1.59 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.001215/0.7861, allocations: 0.8562 MB / 0.9629 GB, free: 0.8867 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 5.346e-05/0.7861, allocations: 9 kB / 0.963 GB, free: 0.8867 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.17e-05/0.7862, allocations: 86.17 kB / 0.963 GB, free: 0.8086 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000115/0.7863, allocations: 79.73 kB / 0.9631 GB, free: 0.7656 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005412/0.7869, allocations: 440.3 kB / 0.9635 GB, free: 384 kB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.386e-05/0.7869, allocations: 32.19 kB / 0.9636 GB, free: 372 kB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.814e-05/0.787, allocations: 47.53 kB / 0.9636 GB, free: 356 kB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007039/0.7877, allocations: 426.2 kB / 0.964 GB, free: 100 kB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.996e-05/0.7878, allocations: 3.906 kB / 0.964 GB, free: 96 kB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.804e-05/0.7878, allocations: 19.56 kB / 0.964 GB, free: 80 kB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.269e-05/0.7878, allocations: 17.44 kB / 0.9641 GB, free: 76 kB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007247/0.7886, allocations: 371.6 kB / 0.9644 GB, free: 15.9 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002152/0.7907, allocations: 1.541 MB / 0.9659 GB, free: 14.7 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000543/0.7913, allocations: 338.9 kB / 0.9662 GB, free: 14.52 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.5e-05/0.7913, allocations: 8.25 kB / 0.9662 GB, free: 14.51 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.068e-05/0.7913, allocations: 37.25 kB / 0.9663 GB, free: 14.47 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=42): time 1.583e-06/0.7913, allocations: 0 / 0.9663 GB, free: 14.47 MB / 0.7325 GB Notification: Performance of matching and sorting (n=42): time 0.001004/0.7924, allocations: 0.5089 MB / 0.9668 GB, free: 14.21 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001245/0.7925, allocations: 55.66 kB / 0.9668 GB, free: 14.14 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006686/0.7932, allocations: 486.9 kB / 0.9673 GB, free: 13.86 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 3.055e-05/0.7932, allocations: 31.02 kB / 0.9673 GB, free: 13.83 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002579/0.7935, allocations: 278.3 kB / 0.9676 GB, free: 13.58 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001468/0.7936, allocations: 147 kB / 0.9677 GB, free: 13.45 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.677e-05/0.7936, allocations: 5.969 kB / 0.9677 GB, free: 13.45 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0002151/0.7939, allocations: 367.1 kB / 0.9681 GB, free: 13.09 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002581/0.7941, allocations: 125.1 kB / 0.9682 GB, free: 13.03 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002478/0.7944, allocations: 127 kB / 0.9683 GB, free: 12.97 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002965/0.7947, allocations: 150.5 kB / 0.9685 GB, free: 12.89 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.278e-06/0.7947, allocations: 3.953 kB / 0.9685 GB, free: 12.89 MB / 0.7325 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006981/0.7954, allocations: 406.7 kB / 0.9689 GB, free: 12.68 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 2.154e-05/0.7954, allocations: 5.375 kB / 0.9689 GB, free: 12.68 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.953e-06/0.7954, allocations: 4 kB / 0.9689 GB, free: 12.68 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.189e-05/0.7955, allocations: 6 kB / 0.9689 GB, free: 12.67 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005187/0.796, allocations: 126 kB / 0.969 GB, free: 12.64 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.776e-06/0.796, allocations: 2 kB / 0.969 GB, free: 12.64 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002876/0.7963, allocations: 55.78 kB / 0.9691 GB, free: 12.61 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.289e-05/0.7963, allocations: 11.28 kB / 0.9691 GB, free: 12.61 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.0003144/0.7967, allocations: 193.2 kB / 0.9692 GB, free: 12.44 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.973e-05/0.7967, allocations: 52.75 kB / 0.9693 GB, free: 12.41 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001105/0.7969, allocations: 59.19 kB / 0.9694 GB, free: 12.37 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.592e-06/0.7969, allocations: 4.5 kB / 0.9694 GB, free: 12.37 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.127e-06/0.7969, allocations: 0 / 0.9694 GB, free: 12.37 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.965e-06/0.7969, allocations: 7.969 kB / 0.9694 GB, free: 12.36 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000721/0.7976, allocations: 0.5753 MB / 0.9699 GB, free: 11.89 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.415e-06/0.7976, allocations: 4 kB / 0.9699 GB, free: 11.88 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005172/0.7982, allocations: 133.8 kB / 0.9701 GB, free: 11.85 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.047e-06/0.7982, allocations: 2.438 kB / 0.9701 GB, free: 11.85 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.875e-05/0.7982, allocations: 10.28 kB / 0.9701 GB, free: 11.84 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.156e-06/0.7982, allocations: 1 kB / 0.9701 GB, free: 11.84 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.306e-06/0.7982, allocations: 5.094 kB / 0.9701 GB, free: 11.84 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001035/0.7993, allocations: 0.6607 MB / 0.9707 GB, free: 11.44 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000133/0.7994, allocations: 135.7 kB / 0.9709 GB, free: 11.3 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.626e-05/0.7995, allocations: 14.92 kB / 0.9709 GB, free: 11.29 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002399/0.7997, allocations: 27.3 kB / 0.9709 GB, free: 11.27 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.578e-05/0.7998, allocations: 23.34 kB / 0.9709 GB, free: 11.26 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.856e-05/0.7998, allocations: 7.031 kB / 0.9709 GB, free: 11.26 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0004179/0.8002, allocations: 352 kB / 0.9713 GB, free: 11.05 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.1e-07/0.8002, allocations: 0 / 0.9713 GB, free: 11.05 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0004534/0.8007, allocations: 140.3 kB / 0.9714 GB, free: 11.02 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.001394/0.8021, allocations: 1.221 MB / 0.9726 GB, free: 10.08 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0006143/0.8027, allocations: 336.6 kB / 0.9729 GB, free: 9.938 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.8027, allocations: 4 kB / 0.9729 GB, free: 9.934 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.000311/0.8031, allocations: 187.3 kB / 0.9731 GB, free: 9.852 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006048/0.8037, allocations: 111.5 kB / 0.9732 GB, free: 9.797 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005234/0.8089, allocations: 3.286 MB / 0.9764 GB, free: 7.727 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004834/0.8094, allocations: 0.8796 MB / 0.9773 GB, free: 6.938 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0002113/0.8096, allocations: 53.86 kB / 0.9773 GB, free: 6.914 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002506/0.8099, allocations: 191.7 kB / 0.9775 GB, free: 6.754 MB / 0.7325 GB Notification: Performance of SimCode: time 3.81e-07/0.8099, allocations: 0 / 0.9775 GB, free: 6.754 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02242/0.8323, allocations: 10.3 MB / 0.9876 GB, free: 13.26 MB / 0.7481 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001992/0.8326, allocations: 243.4 kB / 0.9878 GB, free: 12.95 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.838/2.671, allocations: 2.031 kB / 0.9878 GB, free: 12.95 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