Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ExchangeValues.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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.ExchangeValues,fileNamePrefix="Buildings_9_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_ExchangeValues",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ExchangeValues,fileNamePrefix="Buildings_9_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_ExchangeValues",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.001649/0.001649, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001869/0.001869, allocations: 196.6 kB / 16.53 MB, free: 6.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.379/1.379, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.405/2.405, allocations: 390.2 MB / 0.6647 GB, free: 452 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001448/0.001449, allocations: 59.91 kB / 0.8127 GB, free: 14.36 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6807/0.6822, allocations: 140.4 MB / 0.9497 GB, free: 9.105 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ExchangeValues): time 0.001804/0.6841, allocations: 0.5438 MB / 0.9503 GB, free: 8.695 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0002225/0.6843, allocations: 109 kB / 0.9504 GB, free: 8.613 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.077e-05/0.6843, allocations: 1.25 kB / 0.9504 GB, free: 8.613 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 9.384e-05/0.6844, allocations: 8.984 kB / 0.9504 GB, free: 8.605 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.012e-05/0.6845, allocations: 1.625 kB / 0.9504 GB, free: 8.605 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001399/0.6846, allocations: 39.34 kB / 0.9504 GB, free: 8.578 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 9.007e-05/0.6847, allocations: 27.52 kB / 0.9504 GB, free: 8.566 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 4.565e-05/0.6848, allocations: 1.406 kB / 0.9504 GB, free: 8.566 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 2.971e-05/0.6848, allocations: 20.34 kB / 0.9505 GB, free: 8.555 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 4.485e-05/0.6849, allocations: 9.391 kB / 0.9505 GB, free: 8.551 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.033e-05/0.6849, allocations: 2.5 kB / 0.9505 GB, free: 8.551 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 4.756e-05/0.685, allocations: 13.66 kB / 0.9505 GB, free: 8.543 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.321e-05/0.685, allocations: 5.469 kB / 0.9505 GB, free: 8.539 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.279e-05/0.685, allocations: 12.61 kB / 0.9505 GB, free: 8.531 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 9.191e-05/0.6851, allocations: 22.28 kB / 0.9505 GB, free: 8.52 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.919e-06/0.6851, allocations: 4 kB / 0.9505 GB, free: 8.516 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.924e-06/0.6851, allocations: 0.9688 kB / 0.9505 GB, free: 8.516 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.24e-06/0.6851, allocations: 3.938 kB / 0.9505 GB, free: 8.512 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0002728/0.6854, allocations: 352.7 kB / 0.9509 GB, free: 8.121 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.25e-05/0.6855, allocations: 10.09 kB / 0.9509 GB, free: 8.121 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.34e-05/0.6855, allocations: 32.12 kB / 0.9509 GB, free: 8.082 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.286e-05/0.6856, allocations: 8.812 kB / 0.9509 GB, free: 8.078 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001291/0.6857, allocations: 168.4 kB / 0.9511 GB, free: 7.875 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.874e-05/0.6857, allocations: 1.906 kB / 0.9511 GB, free: 7.875 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.569e-05/0.6857, allocations: 4.875 kB / 0.9511 GB, free: 7.875 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001271/0.6859, allocations: 51.39 kB / 0.9511 GB, free: 7.832 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.915e-06/0.6859, allocations: 3.938 kB / 0.9511 GB, free: 7.828 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.027e-05/0.6859, allocations: 2.188 kB / 0.9511 GB, free: 7.828 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.17e-06/0.6859, allocations: 0 / 0.9511 GB, free: 7.828 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.964e-05/0.686, allocations: 15.42 kB / 0.9512 GB, free: 7.82 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001029/0.6861, allocations: 161.2 kB / 0.9513 GB, free: 7.617 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 5.549e-05/0.6861, allocations: 35.34 kB / 0.9513 GB, free: 7.582 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.486e-05/0.6862, allocations: 14.23 kB / 0.9514 GB, free: 7.574 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 4.368e-06/0.6862, allocations: 4 kB / 0.9514 GB, free: 7.57 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.632e-05/0.6862, allocations: 31.81 kB / 0.9514 GB, free: 7.531 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=1): time 9.52e-07/0.6862, allocations: 0 / 0.9514 GB, free: 7.531 MB / 0.7169 GB Notification: Performance of matching and sorting (n=1): time 0.0002159/0.6864, allocations: 114 kB / 0.9515 GB, free: 7.441 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.81e-05/0.6865, allocations: 82.58 kB / 0.9516 GB, free: 7.344 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.698e-05/0.6865, allocations: 97.67 kB / 0.9517 GB, free: 7.242 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.115e-05/0.6865, allocations: 26.83 kB / 0.9517 GB, free: 7.211 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 1.498e-05/0.6866, allocations: 81.17 kB / 0.9518 GB, free: 7.129 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.259e-05/0.6866, allocations: 1.312 kB / 0.9518 GB, free: 7.129 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.664e-05/0.6866, allocations: 27.02 kB / 0.9518 GB, free: 7.105 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.404e-05/0.6867, allocations: 310.8 kB / 0.9521 GB, free: 6.793 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.114e-05/0.6867, allocations: 19.11 kB / 0.9521 GB, free: 6.781 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.663e-05/0.6867, allocations: 11.72 kB / 0.9521 GB, free: 6.777 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.896e-05/0.6868, allocations: 82.44 kB / 0.9522 GB, free: 6.695 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.473e-06/0.6868, allocations: 3.938 kB / 0.9522 GB, free: 6.691 MB / 0.7169 GB Notification: Performance of matching and sorting (n=1) (initialization): time 0.000119/0.6869, allocations: 99.42 kB / 0.9523 GB, free: 6.609 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.587e-05/0.687, allocations: 39.84 kB / 0.9523 GB, free: 6.57 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.829e-06/0.687, allocations: 0 / 0.9523 GB, free: 6.57 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.55e-05/0.687, allocations: 1.594 kB / 0.9523 GB, free: 6.57 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.012e-06/0.687, allocations: 96 / 0.9523 GB, free: 6.57 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.225e-06/0.687, allocations: 4 kB / 0.9523 GB, free: 6.566 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001361/0.6872, allocations: 7.062 kB / 0.9524 GB, free: 6.566 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.242e-05/0.6872, allocations: 6.422 kB / 0.9524 GB, free: 6.562 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: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.197e-05/0.6873, allocations: 141.3 kB / 0.9525 GB, free: 6.414 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.7e-05/0.6873, allocations: 7.969 kB / 0.9525 GB, free: 6.41 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.137e-06/0.6873, allocations: 3.125 kB / 0.9525 GB, free: 6.406 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.533e-06/0.6873, allocations: 1.25 kB / 0.9525 GB, free: 6.406 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.176e-06/0.6873, allocations: 0 / 0.9525 GB, free: 6.406 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.966e-06/0.6873, allocations: 5.5 kB / 0.9525 GB, free: 6.402 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.422e-05/0.6874, allocations: 153.2 kB / 0.9527 GB, free: 6.207 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.92e-07/0.6874, allocations: 0 / 0.9527 GB, free: 6.207 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.81e-07/0.6874, allocations: 0 / 0.9527 GB, free: 6.207 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.753e-06/0.6874, allocations: 3.938 kB / 0.9527 GB, free: 6.203 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.169e-05/0.6874, allocations: 7.594 kB / 0.9527 GB, free: 6.199 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.21e-07/0.6874, allocations: 3.938 kB / 0.9527 GB, free: 6.195 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.804e-06/0.6874, allocations: 5.547 kB / 0.9527 GB, free: 6.191 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001272/0.6875, allocations: 124 kB / 0.9528 GB, free: 6.074 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.495e-05/0.6876, allocations: 78.55 kB / 0.9529 GB, free: 5.98 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.864e-05/0.6876, allocations: 6.406 kB / 0.9529 GB, free: 5.977 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001036/0.6877, allocations: 11.83 kB / 0.9529 GB, free: 5.969 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.535e-05/0.6877, allocations: 1.562 kB / 0.9529 GB, free: 5.969 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.365e-06/0.6877, allocations: 4.344 kB / 0.9529 GB, free: 5.969 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 1.733e-05/0.6878, allocations: 76.62 kB / 0.953 GB, free: 5.895 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.6878, allocations: 0 / 0.953 GB, free: 5.895 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0001963/0.688, allocations: 16 kB / 0.953 GB, free: 5.891 MB / 0.7169 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 (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000409/0.6884, allocations: 0.6756 MB / 0.9536 GB, free: 5.238 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001285/0.6885, allocations: 92.48 kB / 0.9537 GB, free: 5.156 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.6885, allocations: 0 / 0.9537 GB, free: 5.156 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 4.786e-05/0.6886, allocations: 68.39 kB / 0.9538 GB, free: 5.09 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001561/0.6887, allocations: 6.125 kB / 0.9538 GB, free: 5.09 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003526/0.6891, allocations: 145.3 kB / 0.9539 GB, free: 4.934 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.581e-05/0.6892, allocations: 0.6792 MB / 0.9546 GB, free: 4.23 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 7.413e-05/0.6893, allocations: 2.531 kB / 0.9546 GB, free: 4.23 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.499e-05/0.6893, allocations: 12.97 kB / 0.9546 GB, free: 4.219 MB / 0.7169 GB Notification: Performance of SimCode: time 2.61e-07/0.6893, allocations: 0 / 0.9546 GB, free: 4.219 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02654/0.7159, allocations: 1.861 MB / 0.9564 GB, free: 3.215 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.481/8.197, allocations: 4.812 kB / 0.9564 GB, free: 3.211 MB / 0.7169 GB (rm -f Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ExchangeValues.pipe ; mkfifo Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ExchangeValues.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ExchangeValues.pipe >> ../files/Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ExchangeValues.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ExchangeValues_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_ExchangeValues_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_ExchangeValues.fmu > Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ExchangeValues.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ExchangeValues_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_ExchangeValues.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ExchangeValues.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches