Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_SingleUTubeResistances",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeResistances,fileNamePrefix="Buildings_10_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.004892/0.004892, allocations: 102.3 kB / 15.73 MB, free: 5.582 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.001164/0.001164, allocations: 191.2 kB / 16.67 MB, free: 5.52 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.281/1.281, allocations: 222.9 MB / 240.4 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.361/2.361, allocations: 437 MB / 0.7105 GB, free: 4.371 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001211/0.001211, allocations: 67.84 kB / 1.018 GB, free: 9.887 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7671/0.7683, allocations: 151.6 MB / 1.166 GB, free: 3.781 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeResistances): time 0.002334/0.7707, allocations: 1.481 MB / 1.168 GB, free: 2.293 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001208/0.7719, allocations: 0.9072 MB / 1.168 GB, free: 1.379 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.724e-05/0.772, allocations: 0 / 1.168 GB, free: 1.379 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.0001905/0.7722, allocations: 47.75 kB / 1.169 GB, free: 1.332 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 2.733e-05/0.7722, allocations: 19.86 kB / 1.169 GB, free: 1.312 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004925/0.7727, allocations: 187.8 kB / 1.169 GB, free: 1.133 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 9.261e-05/0.7728, allocations: 59.61 kB / 1.169 GB, free: 1.074 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 3.978e-05/0.7729, allocations: 7.984 kB / 1.169 GB, free: 1.066 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 6.879e-05/0.773, allocations: 27.86 kB / 1.169 GB, free: 1.039 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 2.512e-05/0.773, allocations: 7.938 kB / 1.169 GB, free: 1.031 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 1.169e-05/0.773, allocations: 4 kB / 1.169 GB, free: 1.027 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003266/0.7733, allocations: 167.8 kB / 1.169 GB, free: 0.8633 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 1.193e-05/0.7734, allocations: 3.938 kB / 1.169 GB, free: 0.8594 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 2.7e-05/0.7734, allocations: 19.88 kB / 1.169 GB, free: 0.8398 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0001995/0.7736, allocations: 133.9 kB / 1.169 GB, free: 0.7109 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.7736, allocations: 4 kB / 1.169 GB, free: 0.707 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.242e-06/0.7736, allocations: 0 / 1.169 GB, free: 0.707 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 4.729e-06/0.7736, allocations: 0 / 1.169 GB, free: 0.707 MB / 0.8887 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.0003285/0.774, allocations: 371.1 kB / 1.17 GB, free: 304 kB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 3.807e-05/0.774, allocations: 8.922 kB / 1.17 GB, free: 296 kB / 0.8887 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.691e-05/0.7741, allocations: 110 kB / 1.17 GB, free: 176 kB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.959e-05/0.7741, allocations: 84.2 kB / 1.17 GB, free: 92 kB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002516/0.7744, allocations: 262.1 kB / 1.17 GB, free: 15.8 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.903e-05/0.7744, allocations: 154.9 kB / 1.17 GB, free: 15.64 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.937e-05/0.7745, allocations: 150.9 kB / 1.17 GB, free: 15.5 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 6.02e-05/0.7746, allocations: 113.1 kB / 1.17 GB, free: 15.38 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.178e-05/0.7746, allocations: 75.28 kB / 1.17 GB, free: 15.3 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.752e-05/0.7746, allocations: 150.6 kB / 1.171 GB, free: 15.16 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.293e-05/0.7747, allocations: 154.6 kB / 1.171 GB, free: 15 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.71e-05/0.7747, allocations: 158.5 kB / 1.171 GB, free: 14.85 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000263/0.775, allocations: 461.9 kB / 1.171 GB, free: 14.35 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 6.607e-05/0.7751, allocations: 165.1 kB / 1.171 GB, free: 14.18 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.255e-05/0.7751, allocations: 88.14 kB / 1.172 GB, free: 14.09 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 2.456e-05/0.7751, allocations: 79.27 kB / 1.172 GB, free: 14.01 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.77e-05/0.7752, allocations: 117.7 kB / 1.172 GB, free: 13.88 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=0): time 9.22e-07/0.7752, allocations: 0 / 1.172 GB, free: 13.88 MB / 0.9044 GB Notification: Performance of matching and sorting (n=0): time 6.838e-05/0.7753, allocations: 33.61 kB / 1.172 GB, free: 13.84 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.921e-05/0.7753, allocations: 130.7 kB / 1.172 GB, free: 13.7 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001226/0.7754, allocations: 129.8 kB / 1.172 GB, free: 13.57 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 1.338e-05/0.7755, allocations: 25.7 kB / 1.172 GB, free: 13.54 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 4.499e-05/0.7755, allocations: 96.12 kB / 1.172 GB, free: 13.44 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 1.893e-06/0.7755, allocations: 0 / 1.172 GB, free: 13.44 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.862e-05/0.7756, allocations: 13.72 kB / 1.172 GB, free: 13.42 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 8.856e-05/0.7757, allocations: 314.8 kB / 1.172 GB, free: 13.1 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.315e-05/0.7757, allocations: 11.98 kB / 1.172 GB, free: 13.09 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.395e-05/0.7757, allocations: 4 kB / 1.172 GB, free: 13.09 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.285e-05/0.7757, allocations: 16.73 kB / 1.172 GB, free: 13.07 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.432e-06/0.7757, allocations: 4.031 kB / 1.172 GB, free: 13.06 MB / 0.9044 GB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001102/0.7759, allocations: 53.48 kB / 1.173 GB, free: 13 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.436e-05/0.7759, allocations: 7.984 kB / 1.173 GB, free: 13 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.739e-05/0.7759, allocations: 4 kB / 1.173 GB, free: 12.99 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.315e-05/0.7759, allocations: 0 / 1.173 GB, free: 12.99 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.21e-07/0.7759, allocations: 0 / 1.173 GB, free: 12.99 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.087e-06/0.7759, allocations: 0 / 1.173 GB, free: 12.99 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.959e-05/0.776, allocations: 0 / 1.173 GB, free: 12.99 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.576e-06/0.776, allocations: 4 kB / 1.173 GB, free: 12.99 MB / 0.9044 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.554e-05/0.7761, allocations: 189.2 kB / 1.173 GB, free: 12.79 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.403e-05/0.7761, allocations: 116.8 kB / 1.173 GB, free: 12.67 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.622e-05/0.7762, allocations: 108.8 kB / 1.173 GB, free: 12.55 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.106e-05/0.7762, allocations: 184.2 kB / 1.173 GB, free: 12.36 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.492e-05/0.7763, allocations: 180.3 kB / 1.173 GB, free: 12.18 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.104e-05/0.7764, allocations: 180.3 kB / 1.173 GB, free: 12 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001985/0.7766, allocations: 421.1 kB / 1.174 GB, free: 11.53 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.032e-05/0.7766, allocations: 104.9 kB / 1.174 GB, free: 11.42 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.198e-05/0.7766, allocations: 104.9 kB / 1.174 GB, free: 11.31 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.258e-05/0.7767, allocations: 184.3 kB / 1.174 GB, free: 11.12 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.115e-05/0.7767, allocations: 180.3 kB / 1.174 GB, free: 10.94 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.238e-05/0.7768, allocations: 184.2 kB / 1.175 GB, free: 10.75 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.124e-05/0.7769, allocations: 180.2 kB / 1.175 GB, free: 10.57 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000114/0.777, allocations: 311.8 kB / 1.175 GB, free: 10.24 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 6.513e-05/0.777, allocations: 185.9 kB / 1.175 GB, free: 10.03 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.332e-05/0.7771, allocations: 192.2 kB / 1.175 GB, free: 9.836 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.865e-05/0.7772, allocations: 101 kB / 1.176 GB, free: 9.73 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.763e-05/0.7772, allocations: 180.2 kB / 1.176 GB, free: 9.547 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.33e-05/0.7773, allocations: 105 kB / 1.176 GB, free: 9.438 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 5.274e-05/0.7773, allocations: 101.8 kB / 1.176 GB, free: 9.34 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7773, allocations: 0 / 1.176 GB, free: 9.34 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0002617/0.7776, allocations: 35.92 kB / 1.176 GB, free: 9.305 MB / 0.9044 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 (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.0004849/0.7781, allocations: 0.8593 MB / 1.177 GB, free: 8.418 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 8.618e-05/0.7782, allocations: 33.7 kB / 1.177 GB, free: 8.379 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 4.669e-06/0.7782, allocations: 0 / 1.177 GB, free: 8.379 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 1.463e-06/0.7782, allocations: 3.938 kB / 1.177 GB, free: 8.375 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004071/0.7786, allocations: 472.9 kB / 1.177 GB, free: 7.91 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001096/0.7797, allocations: 1.459 MB / 1.179 GB, free: 6.371 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002087/0.78, allocations: 0.6845 MB / 1.179 GB, free: 5.66 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 2.2e-05/0.78, allocations: 11.97 kB / 1.179 GB, free: 5.648 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.567e-05/0.78, allocations: 15.42 kB / 1.179 GB, free: 5.637 MB / 0.9044 GB Notification: Performance of SimCode: time 2.1e-07/0.78, allocations: 0 / 1.179 GB, free: 5.637 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01783/0.7979, allocations: 2.713 MB / 1.182 GB, free: 3.078 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.267/8.065, allocations: 10.2 kB / 1.182 GB, free: 3.07 MB / 0.9044 GB (rm -f Buildings_10_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeResistances.pipe ; mkfifo Buildings_10_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeResistances.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeResistances.pipe >> ../files/Buildings_10_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeResistances.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeResistances_res.mat --tempDir=temp_Buildings_10_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_SingleUTubeResistances_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_SingleUTubeResistances.fmu > Buildings_10_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeResistances.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeResistances_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_SingleUTubeResistances.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeResistances.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches