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.101/2.101, allocations: 390.3 MB / 405.3 MB, free: 13.46 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.001095/0.001095, allocations: 177.1 kB / 498.1 MB, free: 5.699 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.375/1.375, allocations: 223.2 MB / 0.7948 GB, free: 18.88 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.0009143/0.000914, allocations: 100.3 kB / 0.9346 GB, free: 7.18 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003588/0.0003587, allocations: 9.234 kB / 1.084 GB, free: 212.6 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2496/0.25, allocations: 142.4 MB / 1.223 GB, free: 89.47 MB / 0.8073 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1829/0.4329, allocations: 157.8 MB / 1.377 GB, free: 11.42 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002737/0.4333, allocations: 115.9 kB / 1.377 GB, free: 11.3 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 0.0481/0.4814, allocations: 18.22 MB / 1.395 GB, free: 9 MB / 0.9011 GB Notification: Performance of FrontEnd: time 2.084e-06/0.4814, allocations: 0 / 1.395 GB, free: 9 MB / 0.9011 GB Notification: Performance of Transformations before backend: time 2.181e-05/0.4815, allocations: 8 kB / 1.395 GB, free: 8.992 MB / 0.9011 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.0009701/0.4824, allocations: 0.654 MB / 1.396 GB, free: 8.289 MB / 0.9011 GB Notification: Performance of prepare preOptimizeDAE: time 4.264e-05/0.4825, allocations: 8.031 kB / 1.396 GB, free: 8.281 MB / 0.9011 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.766e-05/0.4826, allocations: 58.53 kB / 1.396 GB, free: 8.215 MB / 0.9011 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.01e-05/0.4826, allocations: 51.42 kB / 1.396 GB, free: 8.164 MB / 0.9011 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004865/0.4831, allocations: 353.2 kB / 1.396 GB, free: 7.777 MB / 0.9011 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.904e-05/0.4832, allocations: 20.44 kB / 1.396 GB, free: 7.758 MB / 0.9011 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.611e-05/0.4832, allocations: 16 kB / 1.396 GB, free: 7.742 MB / 0.9011 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004025/0.4836, allocations: 199.3 kB / 1.396 GB, free: 7.539 MB / 0.9011 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.484e-05/0.4837, allocations: 8.062 kB / 1.396 GB, free: 7.531 MB / 0.9011 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.222e-05/0.4837, allocations: 12.34 kB / 1.396 GB, free: 7.52 MB / 0.9011 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.678e-06/0.4837, allocations: 11.89 kB / 1.396 GB, free: 7.508 MB / 0.9011 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003891/0.4841, allocations: 177.6 kB / 1.397 GB, free: 7.332 MB / 0.9011 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00125/0.4853, allocations: 0.8663 MB / 1.397 GB, free: 6.395 MB / 0.9011 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003081/0.4857, allocations: 174.4 kB / 1.398 GB, free: 6.215 MB / 0.9011 GB Notification: Performance of preOpt evalFunc (simulation): time 1.598e-05/0.4857, allocations: 0 / 1.398 GB, free: 6.215 MB / 0.9011 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.67e-05/0.4857, allocations: 34.56 kB / 1.398 GB, free: 6.172 MB / 0.9011 GB Notification: Performance of pre-optimization done (n=18): time 1.303e-06/0.4857, allocations: 0 / 1.398 GB, free: 6.172 MB / 0.9011 GB Notification: Performance of matching and sorting (n=18): time 0.0006072/0.4864, allocations: 270.8 kB / 1.398 GB, free: 5.902 MB / 0.9011 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.756e-05/0.4864, allocations: 55.39 kB / 1.398 GB, free: 5.836 MB / 0.9011 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004309/0.4868, allocations: 372.8 kB / 1.398 GB, free: 5.465 MB / 0.9011 GB Notification: Performance of collectPreVariables (initialization): time 2.043e-05/0.4869, allocations: 29.7 kB / 1.398 GB, free: 5.43 MB / 0.9011 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001389/0.487, allocations: 196.3 kB / 1.398 GB, free: 5.23 MB / 0.9011 GB Notification: Performance of collectInitialBindings (initialization): time 6.056e-05/0.4871, allocations: 74.94 kB / 1.399 GB, free: 5.156 MB / 0.9011 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.666e-06/0.4871, allocations: 4 kB / 1.399 GB, free: 5.152 MB / 0.9011 GB Notification: Performance of setup shared object (initialization): time 0.0001328/0.4872, allocations: 346.8 kB / 1.399 GB, free: 4.805 MB / 0.9011 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001439/0.4874, allocations: 59.92 kB / 1.399 GB, free: 4.746 MB / 0.9011 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001336/0.4875, allocations: 67.97 kB / 1.399 GB, free: 4.68 MB / 0.9011 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001511/0.4877, allocations: 64.84 kB / 1.399 GB, free: 4.617 MB / 0.9011 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.255e-06/0.4877, allocations: 0 / 1.399 GB, free: 4.617 MB / 0.9011 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003811/0.4881, allocations: 210.1 kB / 1.399 GB, free: 4.406 MB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 1.64e-05/0.4881, allocations: 11.94 kB / 1.399 GB, free: 4.395 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.631e-06/0.4881, allocations: 0 / 1.399 GB, free: 4.395 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.589e-05/0.4881, allocations: 4 kB / 1.399 GB, free: 4.391 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002588/0.4884, allocations: 55.95 kB / 1.399 GB, free: 4.336 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.512e-06/0.4884, allocations: 0 / 1.399 GB, free: 4.336 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001751/0.4886, allocations: 35.73 kB / 1.399 GB, free: 4.301 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.164e-05/0.4886, allocations: 4 kB / 1.399 GB, free: 4.297 MB / 0.9011 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.0001876/0.4888, allocations: 165.7 kB / 1.4 GB, free: 4.125 MB / 0.9011 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.106e-05/0.4889, allocations: 35.61 kB / 1.4 GB, free: 4.09 MB / 0.9011 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.366e-05/0.489, allocations: 39.59 kB / 1.4 GB, free: 4.055 MB / 0.9011 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.729e-06/0.489, allocations: 4 kB / 1.4 GB, free: 4.051 MB / 0.9011 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.841e-06/0.489, allocations: 4 kB / 1.4 GB, free: 4.047 MB / 0.9011 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.809e-06/0.489, allocations: 0 / 1.4 GB, free: 4.047 MB / 0.9011 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004117/0.4894, allocations: 385.2 kB / 1.4 GB, free: 3.621 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.376e-06/0.4894, allocations: 0 / 1.4 GB, free: 3.621 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002611/0.4897, allocations: 51.97 kB / 1.4 GB, free: 3.57 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.312e-06/0.4897, allocations: 4 kB / 1.4 GB, free: 3.566 MB / 0.9011 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.64e-05/0.4897, allocations: 4 kB / 1.4 GB, free: 3.562 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.684e-06/0.4897, allocations: 0 / 1.4 GB, free: 3.562 MB / 0.9011 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/0.4897, allocations: 0 / 1.4 GB, free: 3.562 MB / 0.9011 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005951/0.4903, allocations: 401.2 kB / 1.4 GB, free: 3.156 MB / 0.9011 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001091/0.4905, allocations: 124.7 kB / 1.401 GB, free: 3.016 MB / 0.9011 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.328e-05/0.4905, allocations: 8 kB / 1.401 GB, free: 3.008 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001685/0.4907, allocations: 11.98 kB / 1.401 GB, free: 2.996 MB / 0.9011 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.238e-05/0.4907, allocations: 11.98 kB / 1.401 GB, free: 2.984 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.766e-06/0.4907, allocations: 7.938 kB / 1.401 GB, free: 2.977 MB / 0.9011 GB Notification: Performance of sorting global known variables: time 0.0003078/0.4911, allocations: 303.1 kB / 1.401 GB, free: 2.684 MB / 0.9011 GB Notification: Performance of sort global known variables: time 1.4e-07/0.4911, allocations: 0 / 1.401 GB, free: 2.684 MB / 0.9011 GB Notification: Performance of remove unused functions: time 0.0003535/0.4914, allocations: 79.84 kB / 1.401 GB, free: 2.605 MB / 0.9011 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.001082/0.4925, allocations: 1.089 MB / 1.402 GB, free: 1.492 MB / 0.9011 GB Notification: Performance of simCode: created initialization part: time 0.0003642/0.4929, allocations: 150 kB / 1.402 GB, free: 1.348 MB / 0.9011 GB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.4929, allocations: 0 / 1.402 GB, free: 1.348 MB / 0.9011 GB Notification: Performance of simCode: created simulation system equations: time 0.0001616/0.4931, allocations: 87.89 kB / 1.402 GB, free: 1.262 MB / 0.9011 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000448/0.4935, allocations: 93.33 kB / 1.402 GB, free: 1.172 MB / 0.9011 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4644/0.958, allocations: 2.183 MB / 1.404 GB, free: 170.2 MB / 0.9011 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003219/0.9583, allocations: 0.8058 MB / 1.405 GB, free: 169.5 MB / 0.9011 GB Notification: Performance of simCode: alias equations: time 0.0001875/0.9585, allocations: 38.47 kB / 1.405 GB, free: 169.5 MB / 0.9011 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001626/0.9587, allocations: 117 kB / 1.405 GB, free: 169.5 MB / 0.9011 GB Notification: Performance of SimCode: time 1.512e-06/0.9587, allocations: 0 / 1.405 GB, free: 169.5 MB / 0.9011 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02546/0.9842, allocations: 9.195 MB / 1.414 GB, free: 169.1 MB / 0.9011 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001739/0.9844, allocations: 251.3 kB / 1.415 GB, free: 168.9 MB / 0.9011 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.157/3.142, allocations: 1.188 kB / 1.415 GB, free: 168.9 MB / 0.9011 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