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/Buildings 9.1.1-maint.9.1.x/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.246/2.246, allocations: 387.1 MB / 399.7 MB, free: 9.445 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001147/0.001147, allocations: 180.8 kB / 492.3 MB, free: 0.6172 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.662/1.662, allocations: 221.3 MB / 0.7871 GB, free: 12.91 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009187/0.0009187, allocations: 91.39 kB / 0.9267 GB, free: 13.98 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.456e-05/3.459e-05, allocations: 4 kB / 1.074 GB, free: 180.3 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3085/0.3085, allocations: 142.3 MB / 1.213 GB, free: 38.39 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9799/1.289, allocations: 157.8 MB / 1.367 GB, free: 19.11 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002439/1.289, allocations: 109 kB / 1.367 GB, free: 19.11 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.04326/1.332, allocations: 18.24 MB / 1.385 GB, free: 31.54 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.423e-06/1.332, allocations: 0 / 1.385 GB, free: 31.54 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 2.832e-05/1.332, allocations: 7.25 kB / 1.385 GB, free: 31.54 MB / 0.8386 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.0007994/1.333, allocations: 0.5844 MB / 1.385 GB, free: 31.04 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.266e-05/1.333, allocations: 11.59 kB / 1.385 GB, free: 31.04 MB / 0.8386 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.278e-05/1.333, allocations: 60.3 kB / 1.385 GB, free: 30.99 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.472e-05/1.333, allocations: 46.7 kB / 1.385 GB, free: 30.96 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004992/1.334, allocations: 353.3 kB / 1.386 GB, free: 30.7 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.595e-05/1.334, allocations: 18.81 kB / 1.386 GB, free: 30.7 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.79e-05/1.334, allocations: 22.91 kB / 1.386 GB, free: 30.7 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003047/1.334, allocations: 178.8 kB / 1.386 GB, free: 30.65 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.491e-05/1.334, allocations: 3.984 kB / 1.386 GB, free: 30.64 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.924e-05/1.334, allocations: 6.688 kB / 1.386 GB, free: 30.64 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.885e-06/1.334, allocations: 7.625 kB / 1.386 GB, free: 30.64 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002272/1.334, allocations: 137.1 kB / 1.386 GB, free: 30.63 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001177/1.336, allocations: 0.8747 MB / 1.387 GB, free: 30.07 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002086/1.336, allocations: 141.3 kB / 1.387 GB, free: 30.03 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001306/1.336, allocations: 96.95 kB / 1.387 GB, free: 30.02 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.511e-05/1.336, allocations: 3.844 kB / 1.387 GB, free: 30.02 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.174e-05/1.336, allocations: 34.19 kB / 1.387 GB, free: 29.98 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=18): time 1.894e-06/1.336, allocations: 0 / 1.387 GB, free: 29.98 MB / 0.8386 GB Notification: Performance of matching and sorting (n=18): time 0.000326/1.336, allocations: 166.6 kB / 1.387 GB, free: 29.93 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.868e-05/1.336, allocations: 59.25 kB / 1.387 GB, free: 29.86 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004328/1.337, allocations: 367.7 kB / 1.388 GB, free: 29.73 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.803e-05/1.337, allocations: 28.58 kB / 1.388 GB, free: 29.7 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001334/1.337, allocations: 217.6 kB / 1.388 GB, free: 29.57 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 5.334e-05/1.337, allocations: 58.38 kB / 1.388 GB, free: 29.53 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.725e-06/1.337, allocations: 7.281 kB / 1.388 GB, free: 29.53 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001445/1.337, allocations: 344.5 kB / 1.388 GB, free: 29.2 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.538e-05/1.337, allocations: 52.11 kB / 1.388 GB, free: 29.2 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.712e-05/1.337, allocations: 44.06 kB / 1.388 GB, free: 29.19 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.755e-05/1.337, allocations: 51.86 kB / 1.388 GB, free: 29.19 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/1.337, allocations: 0 / 1.388 GB, free: 29.19 MB / 0.8386 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002544/1.338, allocations: 184.3 kB / 1.389 GB, free: 29.12 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.615e-05/1.338, allocations: 3.969 kB / 1.389 GB, free: 29.12 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.873e-06/1.338, allocations: 0 / 1.389 GB, free: 29.12 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.606e-05/1.338, allocations: 0 / 1.389 GB, free: 29.12 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002539/1.338, allocations: 62.03 kB / 1.389 GB, free: 29.11 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.215e-06/1.338, allocations: 0 / 1.389 GB, free: 29.11 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001757/1.338, allocations: 30.2 kB / 1.389 GB, free: 29.09 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.368e-05/1.338, allocations: 6.375 kB / 1.389 GB, free: 29.09 MB / 0.8386 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 () * 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 7.323e-05/1.338, allocations: 120.2 kB / 1.389 GB, free: 28.98 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.449e-05/1.338, allocations: 38.81 kB / 1.389 GB, free: 28.96 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.217e-05/1.338, allocations: 37.16 kB / 1.389 GB, free: 28.95 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.797e-06/1.338, allocations: 3.844 kB / 1.389 GB, free: 28.95 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.152e-06/1.339, allocations: 7.938 kB / 1.389 GB, free: 28.94 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.078e-06/1.339, allocations: 0 / 1.389 GB, free: 28.94 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003415/1.339, allocations: 378.6 kB / 1.389 GB, free: 28.68 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.913e-06/1.339, allocations: 0 / 1.389 GB, free: 28.68 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002466/1.339, allocations: 50.22 kB / 1.389 GB, free: 28.67 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.511e-06/1.339, allocations: 0 / 1.389 GB, free: 28.67 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.823e-05/1.339, allocations: 10.97 kB / 1.389 GB, free: 28.66 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.114e-06/1.339, allocations: 0 / 1.389 GB, free: 28.66 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/1.339, allocations: 0 / 1.389 GB, free: 28.66 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000354/1.34, allocations: 353 kB / 1.39 GB, free: 28.49 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 8.711e-05/1.34, allocations: 119.1 kB / 1.39 GB, free: 28.37 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.245e-05/1.34, allocations: 3.984 kB / 1.39 GB, free: 28.37 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001674/1.34, allocations: 11.56 kB / 1.39 GB, free: 28.37 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.576e-05/1.34, allocations: 11.67 kB / 1.39 GB, free: 28.36 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.127e-06/1.34, allocations: 7.047 kB / 1.39 GB, free: 28.36 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.000278/1.34, allocations: 302.1 kB / 1.39 GB, free: 28.25 MB / 0.8386 GB Notification: Performance of sort global known variables: time 3.61e-07/1.34, allocations: 0 / 1.39 GB, free: 28.25 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0003512/1.341, allocations: 80.5 kB / 1.39 GB, free: 28.25 MB / 0.8386 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 () * 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.000929/1.342, allocations: 1.041 MB / 1.391 GB, free: 27.5 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0002324/1.342, allocations: 127.5 kB / 1.391 GB, free: 27.48 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.245e-06/1.342, allocations: 0 / 1.391 GB, free: 27.48 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 8.684e-05/1.342, allocations: 69.86 kB / 1.391 GB, free: 27.48 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004588/1.342, allocations: 76.31 kB / 1.391 GB, free: 27.46 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001179/1.344, allocations: 0.6002 MB / 1.392 GB, free: 27.11 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004036/1.344, allocations: 0.806 MB / 1.393 GB, free: 26.35 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0001375/1.344, allocations: 34.17 kB / 1.393 GB, free: 26.34 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001539/1.344, allocations: 117 kB / 1.393 GB, free: 26.32 MB / 0.8386 GB Notification: Performance of SimCode: time 3.91e-07/1.344, allocations: 7.938 kB / 1.393 GB, free: 26.31 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02642/1.371, allocations: 9.34 MB / 1.402 GB, free: 20.82 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001893/1.371, allocations: 213.9 kB / 1.402 GB, free: 20.59 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.264/3.635, allocations: 4 kB / 1.402 GB, free: 20.59 MB / 0.8386 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