Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeResistances.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/Buildings 9.1.1-maint.9.1.x/package.mo", uses=false) 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) 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeResistances,fileNamePrefix="Buildings_9_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_SingleUTubeResistances",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeResistances,fileNamePrefix="Buildings_9_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_SingleUTubeResistances",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009486/0.0009486, allocations: 99.55 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009474/0.0009475, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.475/1.475, allocations: 223.2 MB / 239.9 MB, free: 5.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.48/2.48, allocations: 390.3 MB / 0.6653 GB, free: 2.98 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003233/0.0003233, allocations: 8 kB / 0.8146 GB, free: 14.16 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7653/0.7656, allocations: 142.3 MB / 0.9536 GB, free: 8.066 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeResistances): time 0.001426/0.7671, allocations: 1.158 MB / 0.9547 GB, free: 7.148 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001009/0.7681, allocations: 0.7836 MB / 0.9555 GB, free: 6.535 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.64e-05/0.7682, allocations: 1.375 kB / 0.9555 GB, free: 6.535 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001705/0.7684, allocations: 44.78 kB / 0.9555 GB, free: 6.504 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 2.448e-05/0.7684, allocations: 23.39 kB / 0.9556 GB, free: 6.484 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.000418/0.7688, allocations: 168.2 kB / 0.9557 GB, free: 6.375 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 6.823e-05/0.7689, allocations: 35.06 kB / 0.9558 GB, free: 6.355 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 4.682e-05/0.769, allocations: 3.188 kB / 0.9558 GB, free: 6.355 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 7.054e-05/0.769, allocations: 23.94 kB / 0.9558 GB, free: 6.34 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 3.756e-05/0.7691, allocations: 14.05 kB / 0.9558 GB, free: 6.332 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.063e-05/0.7691, allocations: 1.781 kB / 0.9558 GB, free: 6.332 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002915/0.7694, allocations: 146.6 kB / 0.9559 GB, free: 6.262 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.038e-05/0.7694, allocations: 4.906 kB / 0.9559 GB, free: 6.258 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.183e-05/0.7695, allocations: 34.27 kB / 0.956 GB, free: 6.223 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001381/0.7696, allocations: 83.92 kB / 0.956 GB, free: 6.176 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.544e-06/0.7696, allocations: 0 / 0.956 GB, free: 6.176 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.144e-06/0.7696, allocations: 1.094 kB / 0.956 GB, free: 6.176 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.947e-06/0.7696, allocations: 0 / 0.956 GB, free: 6.176 MB / 0.7169 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 0 * Number of variables: 0 Notification: Performance of Generate backend data structure: time 0.0002623/0.7699, allocations: 361.8 kB / 0.9564 GB, free: 5.793 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.295e-05/0.7699, allocations: 8.562 kB / 0.9564 GB, free: 5.793 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.311e-05/0.77, allocations: 110.5 kB / 0.9565 GB, free: 5.676 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.257e-05/0.77, allocations: 89.17 kB / 0.9566 GB, free: 5.59 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001566/0.7702, allocations: 254.3 kB / 0.9568 GB, free: 5.309 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.704e-05/0.7702, allocations: 155.5 kB / 0.957 GB, free: 5.156 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.776e-05/0.7703, allocations: 155.9 kB / 0.9571 GB, free: 5.004 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 3.935e-05/0.7703, allocations: 101 kB / 0.9572 GB, free: 4.898 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.6e-05/0.7703, allocations: 76.66 kB / 0.9573 GB, free: 4.824 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.438e-05/0.7704, allocations: 154.6 kB / 0.9574 GB, free: 4.672 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.878e-05/0.7704, allocations: 150.6 kB / 0.9576 GB, free: 4.523 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.597e-05/0.7704, allocations: 160 kB / 0.9577 GB, free: 4.367 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001895/0.7706, allocations: 468.6 kB / 0.9582 GB, free: 3.867 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 4.514e-05/0.7707, allocations: 166.5 kB / 0.9584 GB, free: 3.695 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.261e-05/0.7707, allocations: 79.27 kB / 0.9584 GB, free: 3.617 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.934e-05/0.7707, allocations: 111.2 kB / 0.9585 GB, free: 3.5 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=0): time 8.11e-07/0.7707, allocations: 0 / 0.9585 GB, free: 3.5 MB / 0.7169 GB Notification: Performance of matching and sorting (n=0): time 6.75e-05/0.7708, allocations: 36.67 kB / 0.9586 GB, free: 3.461 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.139e-05/0.7708, allocations: 130.7 kB / 0.9587 GB, free: 3.32 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001082/0.7709, allocations: 132.5 kB / 0.9588 GB, free: 3.203 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 8.205e-06/0.7709, allocations: 25.7 kB / 0.9588 GB, free: 3.172 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.493e-05/0.771, allocations: 91.2 kB / 0.9589 GB, free: 3.082 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.803e-06/0.771, allocations: 0 / 0.9589 GB, free: 3.082 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.214e-06/0.771, allocations: 0 / 0.9589 GB, free: 3.082 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.038e-05/0.7711, allocations: 329 kB / 0.9592 GB, free: 2.754 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.92e-05/0.7711, allocations: 2.375 kB / 0.9592 GB, free: 2.754 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.172e-05/0.7711, allocations: 2.469 kB / 0.9592 GB, free: 2.754 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.457e-05/0.7711, allocations: 7.5 kB / 0.9593 GB, free: 2.75 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.794e-06/0.7711, allocations: 1.219 kB / 0.9593 GB, free: 2.75 MB / 0.7169 GB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001091/0.7712, allocations: 48.88 kB / 0.9593 GB, free: 2.707 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.417e-05/0.7713, allocations: 7.406 kB / 0.9593 GB, free: 2.707 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.706e-05/0.7713, allocations: 2.438 kB / 0.9593 GB, free: 2.707 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.062e-05/0.7713, allocations: 0 / 0.9593 GB, free: 2.707 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.81e-07/0.7713, allocations: 4.062 kB / 0.9593 GB, free: 2.703 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.052e-06/0.7713, allocations: 5.203 kB / 0.9593 GB, free: 2.699 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.208e-05/0.7713, allocations: 7.938 kB / 0.9593 GB, free: 2.691 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.162e-06/0.7714, allocations: 1.125 kB / 0.9593 GB, free: 2.691 MB / 0.7169 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 (1): * Single equations (assignments): 0 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.288e-05/0.7714, allocations: 187.5 kB / 0.9595 GB, free: 2.5 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.901e-05/0.7715, allocations: 111.2 kB / 0.9596 GB, free: 2.387 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.037e-05/0.7715, allocations: 119.8 kB / 0.9597 GB, free: 2.266 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.318e-05/0.7715, allocations: 185.4 kB / 0.9599 GB, free: 2.078 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.431e-05/0.7716, allocations: 184.1 kB / 0.9601 GB, free: 1.891 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.544e-05/0.7716, allocations: 177.4 kB / 0.9603 GB, free: 1.711 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001411/0.7717, allocations: 420.8 kB / 0.9607 GB, free: 1.25 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.562e-05/0.7718, allocations: 108.9 kB / 0.9608 GB, free: 1.137 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.551e-05/0.7718, allocations: 102.1 kB / 0.9609 GB, free: 1.031 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.511e-05/0.7718, allocations: 185.2 kB / 0.961 GB, free: 0.8438 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.738e-05/0.7718, allocations: 177.2 kB / 0.9612 GB, free: 0.6641 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.48e-05/0.7719, allocations: 181.4 kB / 0.9614 GB, free: 492 kB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.532e-05/0.7719, allocations: 181.3 kB / 0.9615 GB, free: 304 kB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.318e-05/0.772, allocations: 317.3 kB / 0.9618 GB, free: 15.97 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 7.339e-05/0.7721, allocations: 183.5 kB / 0.962 GB, free: 15.77 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.589e-05/0.7722, allocations: 178.4 kB / 0.9622 GB, free: 15.59 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.927e-05/0.7723, allocations: 114.5 kB / 0.9623 GB, free: 15.47 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.882e-05/0.7723, allocations: 180.3 kB / 0.9625 GB, free: 15.29 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.865e-05/0.7724, allocations: 105.8 kB / 0.9626 GB, free: 15.18 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 6.18e-05/0.7725, allocations: 104.8 kB / 0.9627 GB, free: 15.09 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1e-07/0.7725, allocations: 0 / 0.9627 GB, free: 15.09 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002805/0.7727, allocations: 33.62 kB / 0.9627 GB, free: 15.08 MB / 0.7325 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (0): * Single equations (assignments): 0 * 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.0005243/0.7733, allocations: 0.8522 MB / 0.9635 GB, free: 14.24 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 9.024e-05/0.7734, allocations: 39.92 kB / 0.9636 GB, free: 14.2 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.7734, allocations: 1.094 kB / 0.9636 GB, free: 14.2 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 1.433e-06/0.7734, allocations: 0 / 0.9636 GB, free: 14.2 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000389/0.7738, allocations: 0.5282 MB / 0.9641 GB, free: 13.68 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005522/0.7743, allocations: 461.9 kB / 0.9645 GB, free: 13.22 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002376/0.7746, allocations: 0.69 MB / 0.9652 GB, free: 12.51 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 2.111e-05/0.7746, allocations: 2.688 kB / 0.9652 GB, free: 12.51 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.048e-05/0.7747, allocations: 12.56 kB / 0.9652 GB, free: 12.5 MB / 0.7325 GB Notification: Performance of SimCode: time 2.21e-07/0.7747, allocations: 1.094 kB / 0.9652 GB, free: 12.5 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01249/0.7872, allocations: 2.406 MB / 0.9676 GB, free: 11.37 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001943/0.7874, allocations: 216.9 kB / 0.9678 GB, free: 11.12 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.654/2.442, allocations: 4.188 kB / 0.9678 GB, free: 11.12 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeResistances.pipe ; mkfifo Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeResistances.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeResistances.pipe >> ../files/Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeResistances.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeResistances_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_SingleUTubeResistances_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_SingleUTubeResistances.fmu > Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeResistances.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeResistances_res.mat does not exist to compare? outputFormat=mat