Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.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.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube,fileNamePrefix="Buildings_9_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_9_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007458/0.007458, allocations: 99.64 kB / 15.73 MB, free: 6.023 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.001799/0.001799, allocations: 187.2 kB / 16.67 MB, free: 5.957 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.375/1.375, allocations: 222.9 MB / 240.4 MB, free: 4.172 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.417/2.417, allocations: 390.2 MB / 0.6648 GB, free: 148 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001323/0.001323, allocations: 67.78 kB / 0.9504 GB, free: 5.867 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.242/0.2433, allocations: 140.4 MB / 1.088 GB, free: 1.934 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube): time 0.005368/0.2487, allocations: 4.157 MB / 1.092 GB, free: 13.75 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.003433/0.2522, allocations: 2.412 MB / 1.094 GB, free: 11.33 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004219/0.2526, allocations: 8 kB / 1.094 GB, free: 11.32 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.001698/0.2543, allocations: 0.5489 MB / 1.094 GB, free: 10.77 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0007447/0.2551, allocations: 242 kB / 1.095 GB, free: 10.53 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003704/0.2555, allocations: 139.8 kB / 1.095 GB, free: 10.39 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0009992/0.2565, allocations: 0.8059 MB / 1.096 GB, free: 9.586 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004744/0.257, allocations: 330.5 kB / 1.096 GB, free: 9.262 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004098/0.2574, allocations: 298.9 kB / 1.096 GB, free: 8.969 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004216/0.2578, allocations: 322.6 kB / 1.097 GB, free: 8.652 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.0001141/0.258, allocations: 76 kB / 1.097 GB, free: 8.578 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001344/0.2581, allocations: 83.94 kB / 1.097 GB, free: 8.496 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001553/0.2583, allocations: 159.5 kB / 1.097 GB, free: 8.34 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0003774/0.2587, allocations: 390.2 kB / 1.097 GB, free: 7.957 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0008571/0.2595, allocations: 0.9928 MB / 1.098 GB, free: 6.961 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.2595, allocations: 0 / 1.098 GB, free: 6.961 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.242e-06/0.2595, allocations: 0 / 1.098 GB, free: 6.961 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 2.415e-05/0.2596, allocations: 0 / 1.098 GB, free: 6.961 MB / 0.8575 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.001529/0.2611, allocations: 0.9579 MB / 1.099 GB, free: 5.949 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.746e-05/0.2612, allocations: 12.03 kB / 1.099 GB, free: 5.938 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001018/0.2613, allocations: 90.64 kB / 1.099 GB, free: 5.84 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001108/0.2614, allocations: 72.09 kB / 1.099 GB, free: 5.77 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006529/0.262, allocations: 457.7 kB / 1.1 GB, free: 5.285 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.956e-05/0.2621, allocations: 33.38 kB / 1.1 GB, free: 5.25 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.621e-05/0.2622, allocations: 52.28 kB / 1.1 GB, free: 5.199 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007388/0.2629, allocations: 430.6 kB / 1.1 GB, free: 4.77 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.835e-05/0.2629, allocations: 0 / 1.1 GB, free: 4.77 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.725e-05/0.263, allocations: 24 kB / 1.1 GB, free: 4.746 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.117e-05/0.263, allocations: 12 kB / 1.1 GB, free: 4.734 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006892/0.2637, allocations: 363.8 kB / 1.101 GB, free: 4.383 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002044/0.2657, allocations: 1.512 MB / 1.102 GB, free: 2.797 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005195/0.2663, allocations: 351.9 kB / 1.102 GB, free: 2.441 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004573/0.2668, allocations: 328.3 kB / 1.103 GB, free: 2.117 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.491e-05/0.2668, allocations: 7.938 kB / 1.103 GB, free: 2.109 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.215e-05/0.2668, allocations: 34.56 kB / 1.103 GB, free: 2.066 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=42): time 1.803e-06/0.2668, allocations: 0 / 1.103 GB, free: 2.066 MB / 0.8575 GB Notification: Performance of matching and sorting (n=42): time 0.0009633/0.2678, allocations: 0.493 MB / 1.103 GB, free: 1.566 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.248e-05/0.2678, allocations: 59.41 kB / 1.103 GB, free: 1.496 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005489/0.2684, allocations: 493.9 kB / 1.104 GB, free: 1.004 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.885e-05/0.2684, allocations: 33.7 kB / 1.104 GB, free: 0.9648 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001684/0.2686, allocations: 272.4 kB / 1.104 GB, free: 0.6953 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001153/0.2687, allocations: 149.8 kB / 1.104 GB, free: 0.5469 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.502e-05/0.2688, allocations: 66.08 kB / 1.104 GB, free: 484 kB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001355/0.269, allocations: 362.8 kB / 1.105 GB, free: 112 kB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002571/0.2692, allocations: 116.8 kB / 1.105 GB, free: 15.99 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00024/0.2695, allocations: 129.1 kB / 1.105 GB, free: 15.87 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004902/0.27, allocations: 294 kB / 1.105 GB, free: 15.58 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.27, allocations: 0 / 1.105 GB, free: 15.58 MB / 0.8731 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006422/0.2706, allocations: 400.4 kB / 1.106 GB, free: 15.18 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.779e-05/0.2707, allocations: 11.98 kB / 1.106 GB, free: 15.17 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.959e-06/0.2707, allocations: 0 / 1.106 GB, free: 15.17 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.477e-05/0.2707, allocations: 0 / 1.106 GB, free: 15.17 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004973/0.2712, allocations: 127.9 kB / 1.106 GB, free: 15.05 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.402e-05/0.2712, allocations: 4.766 kB / 1.106 GB, free: 15.04 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002509/0.2715, allocations: 35.59 kB / 1.106 GB, free: 15.01 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.258e-05/0.2715, allocations: 12 kB / 1.106 GB, free: 15 MB / 0.8731 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002219/0.2717, allocations: 201.7 kB / 1.106 GB, free: 14.79 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.173e-05/0.2718, allocations: 51.38 kB / 1.106 GB, free: 14.74 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001041/0.2719, allocations: 61.09 kB / 1.106 GB, free: 14.68 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.881e-06/0.2719, allocations: 4 kB / 1.106 GB, free: 14.67 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.851e-06/0.272, allocations: 3.938 kB / 1.106 GB, free: 14.67 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.702e-06/0.272, allocations: 4 kB / 1.106 GB, free: 14.66 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006272/0.2726, allocations: 0.5673 MB / 1.107 GB, free: 14.05 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.075e-06/0.2726, allocations: 15.92 kB / 1.107 GB, free: 14.03 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000516/0.2731, allocations: 123.9 kB / 1.107 GB, free: 13.91 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.602e-06/0.2732, allocations: 0 / 1.107 GB, free: 13.91 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.966e-05/0.2732, allocations: 15.92 kB / 1.107 GB, free: 13.89 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.816e-06/0.2732, allocations: 0 / 1.107 GB, free: 13.89 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.2732, allocations: 0 / 1.107 GB, free: 13.89 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009584/0.2742, allocations: 0.6446 MB / 1.107 GB, free: 13.23 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001444/0.2743, allocations: 144.3 kB / 1.107 GB, free: 13.07 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.168e-05/0.2744, allocations: 12 kB / 1.107 GB, free: 13.06 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002254/0.2746, allocations: 8 kB / 1.108 GB, free: 13.05 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.28e-05/0.2747, allocations: 23.97 kB / 1.108 GB, free: 13.03 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.027e-05/0.2747, allocations: 15.98 kB / 1.108 GB, free: 13.02 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0004534/0.2752, allocations: 347.1 kB / 1.108 GB, free: 12.68 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2752, allocations: 4 kB / 1.108 GB, free: 12.68 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0004174/0.2756, allocations: 139.7 kB / 1.108 GB, free: 12.54 MB / 0.8731 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 (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.00129/0.2769, allocations: 1.215 MB / 1.109 GB, free: 11.3 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0005877/0.2775, allocations: 323.6 kB / 1.11 GB, free: 10.98 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.2775, allocations: 0 / 1.11 GB, free: 10.98 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0002865/0.2778, allocations: 176.2 kB / 1.11 GB, free: 10.81 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006548/0.2785, allocations: 128.7 kB / 1.11 GB, free: 10.68 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006606/0.2851, allocations: 4.855 MB / 1.115 GB, free: 5.746 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004645/0.2856, allocations: 0.8664 MB / 1.115 GB, free: 4.855 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0002322/0.2858, allocations: 52.39 kB / 1.115 GB, free: 4.805 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002707/0.2861, allocations: 191.4 kB / 1.116 GB, free: 4.621 MB / 0.8731 GB Notification: Performance of SimCode: time 1.072e-06/0.2861, allocations: 0 / 1.116 GB, free: 4.621 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.032/0.3181, allocations: 11.61 MB / 1.127 GB, free: 9.32 MB / 0.8887 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.291/8.609, allocations: 7.656 kB / 1.127 GB, free: 9.32 MB / 0.8887 GB (rm -f Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe ; mkfifo Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe >> ../files/Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesTwoUTube_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesTwoUTube.fmu > Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesTwoUTube.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches