Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.HexInternalElement.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.HexInternalElement,fileNamePrefix="Buildings_latest_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_HexInternalElement",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.HexInternalElement,fileNamePrefix="Buildings_latest_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_HexInternalElement",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.227/2.227, allocations: 390.5 MB / 398 MB, free: 10.94 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.001614/0.001614, allocations: 184.8 kB / 491.2 MB, free: 1.531 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.589/1.589, allocations: 221.5 MB / 0.7868 GB, free: 13.27 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.001194/0.001194, allocations: 98.91 kB / 0.9269 GB, free: 13.77 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.157e-05/2.159e-05, allocations: 4 kB / 1.073 GB, free: 181.9 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2534/0.2534, allocations: 143 MB / 1.212 GB, free: 39.42 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.09/1.344, allocations: 434.2 MB / 1.636 GB, free: 12.51 MB / 1.057 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003148/1.344, allocations: 105.5 kB / 1.637 GB, free: 12.45 MB / 1.057 GB Notification: Performance of FrontEnd - DAE generated: time 2.508/3.852, allocations: 0.5644 GB / 2.201 GB, free: 266.9 MB / 1.151 GB Notification: Performance of FrontEnd: time 1.793e-06/3.852, allocations: 0.6562 kB / 2.201 GB, free: 266.9 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.0001503/3.852, allocations: 37.53 kB / 2.201 GB, free: 266.9 MB / 1.151 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 214 * Number of variables: 214 Notification: Performance of Generate backend data structure: time 0.003464/3.855, allocations: 1.417 MB / 2.202 GB, free: 266.5 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 5.515e-05/3.855, allocations: 9.062 kB / 2.202 GB, free: 266.5 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004147/3.856, allocations: 155.5 kB / 2.203 GB, free: 266.4 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003068/3.859, allocations: 1.397 MB / 2.204 GB, free: 266.1 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.392e-05/3.859, allocations: 29.09 kB / 2.204 GB, free: 266.1 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001365/3.859, allocations: 52.66 kB / 2.204 GB, free: 266.1 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001232/3.86, allocations: 0.5552 MB / 2.205 GB, free: 266.1 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001437/3.862, allocations: 0.7415 MB / 2.205 GB, free: 266 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.22e-05/3.862, allocations: 4.469 kB / 2.205 GB, free: 266 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.684e-05/3.862, allocations: 6.047 kB / 2.205 GB, free: 266 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.233e-05/3.862, allocations: 21.62 kB / 2.205 GB, free: 266 MB / 1.151 GB Warning: The model contains alias variables with conflicting start and/or nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005195/3.867, allocations: 4.159 MB / 2.209 GB, free: 263.9 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008915/3.868, allocations: 495.5 kB / 2.21 GB, free: 263.9 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004408/3.869, allocations: 301.2 kB / 2.21 GB, free: 263.9 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005224/3.869, allocations: 0.6021 MB / 2.211 GB, free: 263.2 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.221e-05/3.869, allocations: 38.36 kB / 2.211 GB, free: 263.2 MB / 1.151 GB Notification: Performance of pre-optimization done (n=57): time 2.054e-06/3.869, allocations: 1.125 kB / 2.211 GB, free: 263.2 MB / 1.151 GB Notification: Performance of matching and sorting (n=57): time 0.001529/3.871, allocations: 0.63 MB / 2.211 GB, free: 263.1 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.753e-05/3.871, allocations: 57.75 kB / 2.211 GB, free: 263 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009133/3.872, allocations: 0.7 MB / 2.212 GB, free: 262.9 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 4.356e-05/3.872, allocations: 27.8 kB / 2.212 GB, free: 262.8 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003395/3.872, allocations: 0.5204 MB / 2.213 GB, free: 262.7 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001394/3.872, allocations: 198.1 kB / 2.213 GB, free: 262.6 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.412e-05/3.872, allocations: 0 / 2.213 GB, free: 262.6 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 6.585e-05/3.872, allocations: 333 kB / 2.213 GB, free: 262.2 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002725/3.873, allocations: 177.6 kB / 2.213 GB, free: 262.2 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003755/3.873, allocations: 358.4 kB / 2.214 GB, free: 262.1 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007275/3.874, allocations: 290.1 kB / 2.214 GB, free: 262.1 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.613e-06/3.874, allocations: 4 kB / 2.214 GB, free: 262.1 MB / 1.151 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001614/3.875, allocations: 0.7935 MB / 2.215 GB, free: 261.9 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002648/3.876, allocations: 1.312 MB / 2.216 GB, free: 260.6 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.672e-05/3.876, allocations: 6 kB / 2.216 GB, free: 260.6 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003444/3.876, allocations: 119.1 kB / 2.216 GB, free: 260.5 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004712/3.877, allocations: 128.9 kB / 2.216 GB, free: 260.5 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002489/3.879, allocations: 4.685 MB / 2.221 GB, free: 256.3 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008806/3.88, allocations: 97.78 kB / 2.221 GB, free: 256.3 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.553e-05/3.88, allocations: 31.55 kB / 2.221 GB, free: 256.3 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 8.827e-06/3.88, allocations: 3.719 kB / 2.221 GB, free: 256.3 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001368/3.881, allocations: 0.6409 MB / 2.222 GB, free: 256.2 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.227e-05/3.881, allocations: 5.469 kB / 2.222 GB, free: 256.2 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002761/3.882, allocations: 119 kB / 2.222 GB, free: 256.2 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004476/3.882, allocations: 135.8 kB / 2.222 GB, free: 256.2 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003212/3.885, allocations: 5.606 MB / 2.227 GB, free: 251.1 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008061/3.886, allocations: 89.95 kB / 2.227 GB, free: 251.1 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.915e-05/3.886, allocations: 33.81 kB / 2.227 GB, free: 251.1 MB / 1.151 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (71): * Single equations (assignments): 66 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 2} * Non-linear torn systems: 1 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0001906/3.886, allocations: 120.2 kB / 2.228 GB, free: 251 MB / 1.151 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001308/3.888, allocations: 0.6141 MB / 2.228 GB, free: 250.9 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001439/3.888, allocations: 98.06 kB / 2.228 GB, free: 250.8 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001544/3.889, allocations: 0.6764 MB / 2.229 GB, free: 250.7 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.229e-05/3.889, allocations: 13.66 kB / 2.229 GB, free: 250.7 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.44e-06/3.89, allocations: 4.656 kB / 2.229 GB, free: 250.7 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001162/3.891, allocations: 0.6367 MB / 2.229 GB, free: 250.5 MB / 1.151 GB Warning: The model contains alias variables with conflicting start and/or nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003534/3.894, allocations: 1.727 MB / 2.231 GB, free: 250.1 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.392e-06/3.894, allocations: 2.156 kB / 2.231 GB, free: 250.1 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004111/3.895, allocations: 89.5 kB / 2.231 GB, free: 250.1 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002675/3.895, allocations: 109.1 kB / 2.231 GB, free: 250 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.602e-05/3.895, allocations: 5.938 kB / 2.231 GB, free: 250 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002907/3.898, allocations: 4.668 MB / 2.236 GB, free: 245.8 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.382e-06/3.898, allocations: 3.156 kB / 2.236 GB, free: 245.8 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001904/3.9, allocations: 1.08 MB / 2.237 GB, free: 245.4 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000508/3.9, allocations: 260 kB / 2.237 GB, free: 245.3 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001114/3.9, allocations: 10.72 kB / 2.237 GB, free: 245.3 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006247/3.901, allocations: 56.86 kB / 2.237 GB, free: 245.3 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.406e-05/3.901, allocations: 38.92 kB / 2.237 GB, free: 245.3 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.443e-05/3.901, allocations: 27.55 kB / 2.237 GB, free: 245.3 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.0008289/3.902, allocations: 0.5374 MB / 2.238 GB, free: 245.2 MB / 1.151 GB Notification: Performance of sort global known variables: time 3.31e-07/3.902, allocations: 0 / 2.238 GB, free: 245.2 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.003229/3.905, allocations: 0.7592 MB / 2.239 GB, free: 245.1 MB / 1.151 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (hex.vol1.dynBal.U,hex.vol2.dynBal.U,hex.capFil1.T,hex.capFil2.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (48): * Single equations (assignments): 42 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 2,(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 1 {1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.003454/3.909, allocations: 2.438 MB / 2.241 GB, free: 244 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.002269/3.911, allocations: 1.65 MB / 2.243 GB, free: 243.2 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 3.035e-06/3.911, allocations: 2.781 kB / 2.243 GB, free: 243.2 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0005678/3.912, allocations: 0.5737 MB / 2.243 GB, free: 242.9 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002591/3.914, allocations: 496.6 kB / 2.244 GB, free: 242.8 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003568/3.918, allocations: 1.785 MB / 2.245 GB, free: 242.3 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00072/3.919, allocations: 1.116 MB / 2.246 GB, free: 241.6 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.001274/3.92, allocations: 267.7 kB / 2.247 GB, free: 241.6 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004555/3.92, allocations: 408.3 kB / 2.247 GB, free: 241.6 MB / 1.151 GB Notification: Performance of SimCode: time 5.61e-07/3.92, allocations: 0 / 2.247 GB, free: 241.6 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06677/3.987, allocations: 32.46 MB / 2.279 GB, free: 241.2 MB / 1.151 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000171/3.987, allocations: 207.5 kB / 2.279 GB, free: 240.9 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.129/7.117, allocations: 0 / 2.279 GB, free: 240.9 MB / 1.151 GB (rm -f Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.HexInternalElement.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.HexInternalElement.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.HexInternalElement.pipe >> ../files/Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.HexInternalElement.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.HexInternalElement_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_HexInternalElement_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_HexInternalElement.fmu > Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.HexInternalElement.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.HexInternalElement_res.mat does not exist to compare? outputFormat=mat