Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.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.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube,fileNamePrefix="Buildings_latest_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_latest_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/Buildings 10.0.0-master/package.mo): time 2.447/2.447, allocations: 393.5 MB / 408.4 MB, free: 11.01 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.00117/0.00117, allocations: 181.3 kB / 0.4901 GB, free: 2.25 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.514/1.514, allocations: 223.1 MB / 0.7992 GB, free: 14.65 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.0009681/0.0009681, allocations: 104.2 kB / 0.9396 GB, free: 1.852 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003486/0.0003488, allocations: 10.44 kB / 1.09 GB, free: 216.3 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3308/0.3312, allocations: 143 MB / 1.229 GB, free: 105.6 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2037/0.5349, allocations: 160.8 MB / 1.386 GB, free: 8.598 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003508/0.5353, allocations: 111.9 kB / 1.386 GB, free: 8.488 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 0.05991/0.5953, allocations: 22.21 MB / 1.408 GB, free: 2.195 MB / 0.9011 GB Notification: Performance of FrontEnd: time 2.295e-06/0.5953, allocations: 0 / 1.408 GB, free: 2.195 MB / 0.9011 GB Notification: Performance of Transformations before backend: time 2.628e-05/0.5953, allocations: 12 kB / 1.408 GB, free: 2.184 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: 122 * Number of variables: 122 Notification: Performance of Generate backend data structure: time 0.001734/0.5971, allocations: 0.8449 MB / 1.409 GB, free: 1.285 MB / 0.9011 GB Notification: Performance of prepare preOptimizeDAE: time 4.942e-05/0.5971, allocations: 8.562 kB / 1.409 GB, free: 1.277 MB / 0.9011 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001844/0.5973, allocations: 94.45 kB / 1.409 GB, free: 1.176 MB / 0.9011 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001669/0.5975, allocations: 75.16 kB / 1.409 GB, free: 1.102 MB / 0.9011 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007263/0.5982, allocations: 436.7 kB / 1.41 GB, free: 0.6367 MB / 0.9011 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.352e-05/0.5983, allocations: 37 kB / 1.41 GB, free: 0.5977 MB / 0.9011 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.713e-05/0.5984, allocations: 47.95 kB / 1.41 GB, free: 0.5508 MB / 0.9011 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000812/0.5992, allocations: 426.4 kB / 1.41 GB, free: 128 kB / 0.9011 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.635e-05/0.5992, allocations: 4 kB / 1.41 GB, free: 124 kB / 0.9011 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.286e-05/0.5993, allocations: 20 kB / 1.41 GB, free: 104 kB / 0.9011 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.261e-05/0.5993, allocations: 15.94 kB / 1.41 GB, free: 88 kB / 0.9011 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007626/0.6001, allocations: 375.8 kB / 1.41 GB, free: 15.72 MB / 0.9167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002394/0.6025, allocations: 1.543 MB / 1.412 GB, free: 14.11 MB / 0.9167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005502/0.6031, allocations: 338.9 kB / 1.412 GB, free: 13.76 MB / 0.9167 GB Notification: Performance of preOpt evalFunc (simulation): time 2.621e-05/0.6031, allocations: 4 kB / 1.412 GB, free: 13.76 MB / 0.9167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.857e-05/0.6031, allocations: 34.56 kB / 1.412 GB, free: 13.71 MB / 0.9167 GB Notification: Performance of pre-optimization done (n=42): time 2.364e-06/0.6031, allocations: 0 / 1.412 GB, free: 13.71 MB / 0.9167 GB Notification: Performance of matching and sorting (n=42): time 0.001028/0.6042, allocations: 0.5093 MB / 1.413 GB, free: 13.2 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.675e-05/0.6042, allocations: 59.36 kB / 1.413 GB, free: 13.13 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005799/0.6048, allocations: 429.1 kB / 1.413 GB, free: 12.71 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 2.961e-05/0.6049, allocations: 33.7 kB / 1.413 GB, free: 12.67 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002126/0.6051, allocations: 272.4 kB / 1.414 GB, free: 12.39 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001227/0.6052, allocations: 141.9 kB / 1.414 GB, free: 12.25 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.416e-05/0.6052, allocations: 8 kB / 1.414 GB, free: 12.25 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 0.0001586/0.6054, allocations: 366.8 kB / 1.414 GB, free: 11.88 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000248/0.6057, allocations: 121.5 kB / 1.414 GB, free: 11.76 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002443/0.6059, allocations: 133.9 kB / 1.414 GB, free: 11.63 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002678/0.6062, allocations: 141.9 kB / 1.414 GB, free: 11.49 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/0.6062, allocations: 0 / 1.414 GB, free: 11.49 MB / 0.9167 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0007032/0.6069, allocations: 396.6 kB / 1.415 GB, free: 11.1 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 1.875e-05/0.6069, allocations: 8 kB / 1.415 GB, free: 11.09 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.887e-06/0.607, allocations: 4 kB / 1.415 GB, free: 11.09 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.882e-05/0.607, allocations: 3.938 kB / 1.415 GB, free: 11.08 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005204/0.6075, allocations: 127.9 kB / 1.415 GB, free: 10.96 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.616e-06/0.6075, allocations: 0 / 1.415 GB, free: 10.96 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000314/0.6078, allocations: 63.52 kB / 1.415 GB, free: 10.89 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.084e-05/0.6079, allocations: 8 kB / 1.415 GB, free: 10.89 MB / 0.9167 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.0002544/0.6081, allocations: 197.8 kB / 1.415 GB, free: 10.68 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.845e-05/0.6082, allocations: 47.44 kB / 1.415 GB, free: 10.64 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001251/0.6084, allocations: 61.11 kB / 1.415 GB, free: 10.57 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.661e-06/0.6084, allocations: 4 kB / 1.415 GB, free: 10.57 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.105e-06/0.6084, allocations: 0 / 1.415 GB, free: 10.57 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.303e-06/0.6084, allocations: 3.984 kB / 1.415 GB, free: 10.57 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007075/0.6091, allocations: 0.5828 MB / 1.416 GB, free: 9.934 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.491e-06/0.6091, allocations: 0 / 1.416 GB, free: 9.934 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005391/0.6097, allocations: 123.9 kB / 1.416 GB, free: 9.812 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.365e-06/0.6097, allocations: 4 kB / 1.416 GB, free: 9.809 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.131e-05/0.6097, allocations: 8 kB / 1.416 GB, free: 9.801 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.707e-06/0.6097, allocations: 4 kB / 1.416 GB, free: 9.797 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.213e-06/0.6098, allocations: 0 / 1.416 GB, free: 9.797 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001068/0.6108, allocations: 0.6673 MB / 1.417 GB, free: 9.113 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001747/0.611, allocations: 136.4 kB / 1.417 GB, free: 8.961 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.398e-05/0.6111, allocations: 15.94 kB / 1.417 GB, free: 8.945 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002548/0.6114, allocations: 19.92 kB / 1.417 GB, free: 8.926 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.764e-05/0.6114, allocations: 23.97 kB / 1.417 GB, free: 8.902 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.909e-05/0.6115, allocations: 12 kB / 1.417 GB, free: 8.891 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 0.0004224/0.6119, allocations: 347.1 kB / 1.417 GB, free: 8.555 MB / 0.9167 GB Notification: Performance of sort global known variables: time 1.623e-06/0.6119, allocations: 0 / 1.417 GB, free: 8.555 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.0005048/0.6124, allocations: 155.6 kB / 1.417 GB, free: 8.402 MB / 0.9167 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.001604/0.614, allocations: 1.376 MB / 1.419 GB, free: 7.008 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.0006361/0.6147, allocations: 335.5 kB / 1.419 GB, free: 6.68 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 2.013e-06/0.6147, allocations: 0 / 1.419 GB, free: 6.68 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 0.0002911/0.615, allocations: 187.8 kB / 1.419 GB, free: 6.496 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005891/0.6156, allocations: 113 kB / 1.419 GB, free: 6.391 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005186/0.6208, allocations: 3.281 MB / 1.422 GB, free: 3.055 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005123/0.6213, allocations: 0.8824 MB / 1.423 GB, free: 2.145 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 0.0002359/0.6215, allocations: 60.28 kB / 1.423 GB, free: 2.082 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002619/0.6218, allocations: 199.4 kB / 1.424 GB, free: 1.887 MB / 0.9167 GB Notification: Performance of SimCode: time 5.11e-07/0.6218, allocations: 0 / 1.424 GB, free: 1.887 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6395/1.261, allocations: 12.35 MB / 1.436 GB, free: 180.9 MB / 0.9167 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001574/1.262, allocations: 252.3 kB / 1.436 GB, free: 180.6 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.258/3.52, allocations: 0 / 1.436 GB, free: 180.6 MB / 0.9167 GB (rm -f Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe >> ../files/Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesTwoUTube_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesTwoUTube.fmu > Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube_res.mat does not exist to compare? outputFormat=mat