Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance.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.Boreholes.BaseClasses.Examples.ConvectionResistance,fileNamePrefix="Buildings_9_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_ConvectionResistance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance,fileNamePrefix="Buildings_9_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_ConvectionResistance",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.18/2.18, allocations: 387.4 MB / 394.9 MB, free: 13.37 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.001015/0.001014, allocations: 180.8 kB / 487.4 MB, free: 5.023 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.433/1.433, allocations: 221.5 MB / 0.7824 GB, free: 0.9297 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009021/0.000902, allocations: 98.89 kB / 0.9219 GB, free: 2.164 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 2.043e-05/2.045e-05, allocations: 4 kB / 1.067 GB, free: 185.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2546/0.2546, allocations: 142.4 MB / 1.206 GB, free: 43.81 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.086/1.34, allocations: 380 MB / 1.577 GB, free: 9.395 MB / 0.9948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003327/1.341, allocations: 92.16 kB / 1.577 GB, free: 9.344 MB / 0.9948 GB Notification: Performance of FrontEnd - DAE generated: time 0.03813/1.379, allocations: 16.63 MB / 1.593 GB, free: 12.11 MB / 1.01 GB Notification: Performance of FrontEnd: time 1.883e-06/1.379, allocations: 0 / 1.593 GB, free: 12.11 MB / 1.01 GB Notification: Performance of Transformations before backend: time 7.023e-06/1.379, allocations: 4 kB / 1.593 GB, free: 12.11 MB / 1.01 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0004338/1.379, allocations: 369.6 kB / 1.594 GB, free: 11.71 MB / 1.01 GB Notification: Performance of prepare preOptimizeDAE: time 4.976e-05/1.379, allocations: 12.03 kB / 1.594 GB, free: 11.7 MB / 1.01 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.229e-05/1.379, allocations: 8.734 kB / 1.594 GB, free: 11.69 MB / 1.01 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001443/1.38, allocations: 167 kB / 1.594 GB, free: 11.48 MB / 1.01 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.327e-05/1.38, allocations: 0 / 1.594 GB, free: 11.48 MB / 1.01 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.937e-06/1.38, allocations: 0 / 1.594 GB, free: 11.48 MB / 1.01 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.611e-05/1.38, allocations: 11.56 kB / 1.594 GB, free: 11.48 MB / 1.01 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.254e-05/1.38, allocations: 33.69 kB / 1.594 GB, free: 11.44 MB / 1.01 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.022e-05/1.38, allocations: 0 / 1.594 GB, free: 11.44 MB / 1.01 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.115e-05/1.38, allocations: 4 kB / 1.594 GB, free: 11.43 MB / 1.01 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.807e-06/1.38, allocations: 0 / 1.594 GB, free: 11.43 MB / 1.01 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001724/1.38, allocations: 141.5 kB / 1.594 GB, free: 11.26 MB / 1.01 GB Notification: Performance of preOpt comSubExp (simulation): time 5.726e-05/1.38, allocations: 18.58 kB / 1.594 GB, free: 11.23 MB / 1.01 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.361e-05/1.38, allocations: 8.922 kB / 1.594 GB, free: 11.22 MB / 1.01 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002407/1.38, allocations: 93.09 kB / 1.594 GB, free: 11.11 MB / 1.01 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.664e-05/1.38, allocations: 33.75 kB / 1.594 GB, free: 11.07 MB / 1.01 GB Notification: Performance of pre-optimization done (n=2): time 1.022e-06/1.38, allocations: 3.938 kB / 1.594 GB, free: 11.07 MB / 1.01 GB Notification: Performance of matching and sorting (n=2): time 0.0002324/1.381, allocations: 53.67 kB / 1.594 GB, free: 11.01 MB / 1.01 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.855e-05/1.381, allocations: 51.41 kB / 1.594 GB, free: 10.95 MB / 1.01 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.547e-05/1.381, allocations: 92.19 kB / 1.595 GB, free: 10.86 MB / 1.01 GB Notification: Performance of collectPreVariables (initialization): time 1.602e-05/1.381, allocations: 25.7 kB / 1.595 GB, free: 10.82 MB / 1.01 GB Notification: Performance of collectInitialEqns (initialization): time 4.414e-05/1.381, allocations: 80.14 kB / 1.595 GB, free: 10.74 MB / 1.01 GB Notification: Performance of collectInitialBindings (initialization): time 2.668e-05/1.381, allocations: 11.34 kB / 1.595 GB, free: 10.73 MB / 1.01 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.336e-06/1.381, allocations: 0 / 1.595 GB, free: 10.73 MB / 1.01 GB Notification: Performance of setup shared object (initialization): time 0.000145/1.381, allocations: 318.8 kB / 1.595 GB, free: 10.41 MB / 1.01 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.12e-05/1.381, allocations: 4 kB / 1.595 GB, free: 10.41 MB / 1.01 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.181e-05/1.381, allocations: 4 kB / 1.595 GB, free: 10.41 MB / 1.01 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.25e-05/1.381, allocations: 15.92 kB / 1.595 GB, free: 10.39 MB / 1.01 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/1.381, allocations: 0 / 1.595 GB, free: 10.39 MB / 1.01 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001291/1.381, allocations: 48.88 kB / 1.595 GB, free: 10.34 MB / 1.01 GB Notification: Performance of prepare postOptimizeDAE: time 1.652e-05/1.381, allocations: 8 kB / 1.595 GB, free: 10.33 MB / 1.01 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.04e-06/1.381, allocations: 0 / 1.595 GB, free: 10.33 MB / 1.01 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.256e-05/1.381, allocations: 0 / 1.595 GB, free: 10.33 MB / 1.01 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.07e-05/1.381, allocations: 8.078 kB / 1.595 GB, free: 10.32 MB / 1.01 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.779e-06/1.382, allocations: 7.984 kB / 1.595 GB, free: 10.32 MB / 1.01 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.742e-05/1.382, allocations: 0 / 1.595 GB, free: 10.32 MB / 1.01 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.478e-06/1.382, allocations: 0 / 1.595 GB, free: 10.32 MB / 1.01 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 (2): * Single equations (assignments): 2 * 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.788e-05/1.382, allocations: 104.9 kB / 1.595 GB, free: 10.21 MB / 1.01 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001166/1.382, allocations: 49.62 kB / 1.595 GB, free: 10.15 MB / 1.01 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.676e-06/1.382, allocations: 3.906 kB / 1.595 GB, free: 10.15 MB / 1.01 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001726/1.382, allocations: 60.86 kB / 1.595 GB, free: 10.09 MB / 1.01 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.553e-06/1.382, allocations: 4.062 kB / 1.595 GB, free: 10.09 MB / 1.01 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.939e-06/1.382, allocations: 0 / 1.595 GB, free: 10.09 MB / 1.01 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.685e-06/1.382, allocations: 0 / 1.595 GB, free: 10.09 MB / 1.01 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.83e-05/1.382, allocations: 137.5 kB / 1.595 GB, free: 9.918 MB / 1.01 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.21e-07/1.382, allocations: 0 / 1.595 GB, free: 9.918 MB / 1.01 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.419e-05/1.382, allocations: 7.984 kB / 1.595 GB, free: 9.91 MB / 1.01 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.724e-06/1.382, allocations: 0 / 1.595 GB, free: 9.91 MB / 1.01 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.162e-06/1.382, allocations: 0 / 1.595 GB, free: 9.91 MB / 1.01 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.012e-06/1.382, allocations: 4 kB / 1.595 GB, free: 9.906 MB / 1.01 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.502e-06/1.382, allocations: 3.984 kB / 1.595 GB, free: 9.902 MB / 1.01 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001369/1.382, allocations: 72.39 kB / 1.595 GB, free: 9.816 MB / 1.01 GB Notification: Performance of postOpt removeConstants (simulation): time 5.475e-05/1.382, allocations: 85.09 kB / 1.596 GB, free: 9.715 MB / 1.01 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.281e-05/1.382, allocations: 256 / 1.596 GB, free: 9.715 MB / 1.01 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.698e-05/1.382, allocations: 0 / 1.596 GB, free: 9.715 MB / 1.01 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.722e-05/1.382, allocations: 7.938 kB / 1.596 GB, free: 9.707 MB / 1.01 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.888e-06/1.382, allocations: 4 kB / 1.596 GB, free: 9.703 MB / 1.01 GB Notification: Performance of sorting global known variables: time 3.814e-05/1.382, allocations: 78.53 kB / 1.596 GB, free: 9.629 MB / 1.01 GB Notification: Performance of sort global known variables: time 1.6e-07/1.382, allocations: 4 kB / 1.596 GB, free: 9.625 MB / 1.01 GB Notification: Performance of remove unused functions: time 0.000241/1.383, allocations: 27.97 kB / 1.596 GB, free: 9.598 MB / 1.01 GB Notification: Model statistics after passing the back-end for simulation: * 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 simulation (2): * Single equations (assignments): 2 * 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.0006072/1.383, allocations: 0.6791 MB / 1.596 GB, free: 8.898 MB / 1.01 GB Notification: Performance of simCode: created initialization part: time 7.17e-05/1.383, allocations: 8 kB / 1.596 GB, free: 8.891 MB / 1.01 GB Notification: Performance of simCode: created event and clocks part: time 4.288e-06/1.383, allocations: 0 / 1.596 GB, free: 8.891 MB / 1.01 GB Notification: Performance of simCode: created simulation system equations: time 1.434e-05/1.383, allocations: 15.94 kB / 1.596 GB, free: 8.875 MB / 1.01 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001517/1.384, allocations: 8.062 kB / 1.596 GB, free: 8.871 MB / 1.01 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003134/1.384, allocations: 97.52 kB / 1.596 GB, free: 8.738 MB / 1.01 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002882/1.384, allocations: 0.6807 MB / 1.597 GB, free: 8.031 MB / 1.01 GB Notification: Performance of simCode: alias equations: time 3.099e-05/1.384, allocations: 3.938 kB / 1.597 GB, free: 8.027 MB / 1.01 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.833e-05/1.384, allocations: 14.94 kB / 1.597 GB, free: 8.02 MB / 1.01 GB Notification: Performance of SimCode: time 2.61e-07/1.384, allocations: 4.062 kB / 1.597 GB, free: 8.016 MB / 1.01 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0212/1.406, allocations: 1.38 MB / 1.598 GB, free: 6.645 MB / 1.01 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000245/1.406, allocations: 178.2 kB / 1.599 GB, free: 6.445 MB / 1.01 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.462/2.868, allocations: 0 / 1.599 GB, free: 6.445 MB / 1.01 GB (rm -f Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance.pipe ; mkfifo Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance.pipe >> ../files/Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_ConvectionResistance_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_ConvectionResistance.fmu > Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance_res.mat does not exist to compare? outputFormat=mat