Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder.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 11.1.0-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/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.HeatExchangers.BaseClasses.Examples.HANaturalCylinder,fileNamePrefix="Buildings_latest_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_HANaturalCylinder",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder,fileNamePrefix="Buildings_latest_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_HANaturalCylinder",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.005404/0.005404, allocations: 99.34 kB / 15.73 MB, free: 6.008 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.001272/0.001272, allocations: 198.7 kB / 16.67 MB, free: 5.934 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.326/1.326, allocations: 222.9 MB / 240.4 MB, free: 4.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.734/2.734, allocations: 469.4 MB / 0.7422 GB, free: 7.551 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001397/0.001397, allocations: 64.12 kB / 1.064 GB, free: 13.83 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2848/0.2862, allocations: 159.1 MB / 1.22 GB, free: 14.59 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder): time 0.006036/0.2923, allocations: 4.604 MB / 1.224 GB, free: 9.961 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001031/0.2933, allocations: 0.8139 MB / 1.225 GB, free: 9.145 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.327e-05/0.2935, allocations: 0 / 1.225 GB, free: 9.145 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0001867/0.2937, allocations: 27.77 kB / 1.225 GB, free: 9.117 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 8.715e-05/0.2938, allocations: 39.64 kB / 1.225 GB, free: 9.078 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005853/0.2944, allocations: 171.4 kB / 1.225 GB, free: 8.91 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0002149/0.2946, allocations: 171.4 kB / 1.225 GB, free: 8.742 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 9.706e-05/0.2947, allocations: 21.09 kB / 1.225 GB, free: 8.723 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002089/0.2949, allocations: 87.73 kB / 1.226 GB, free: 8.637 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001083/0.295, allocations: 75.67 kB / 1.226 GB, free: 8.562 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 2.542e-05/0.2951, allocations: 12 kB / 1.226 GB, free: 8.551 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003597/0.2954, allocations: 163.7 kB / 1.226 GB, free: 8.391 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 3.472e-05/0.2955, allocations: 31.91 kB / 1.226 GB, free: 8.359 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 7.022e-05/0.2955, allocations: 67.66 kB / 1.226 GB, free: 8.293 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0003847/0.2959, allocations: 239.2 kB / 1.226 GB, free: 8.059 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.2959, allocations: 7.875 kB / 1.226 GB, free: 8.051 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.573e-06/0.296, allocations: 0 / 1.226 GB, free: 8.051 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 7.745e-06/0.296, allocations: 0 / 1.226 GB, free: 8.051 MB / 0.9825 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 17 * Number of variables: 17 Notification: Performance of Generate backend data structure: time 0.0008559/0.2968, allocations: 482.6 kB / 1.227 GB, free: 7.531 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.057e-05/0.2969, allocations: 12.03 kB / 1.227 GB, free: 7.52 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.057e-05/0.2969, allocations: 38.73 kB / 1.227 GB, free: 7.473 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.064e-05/0.297, allocations: 16.84 kB / 1.227 GB, free: 7.457 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001372/0.2971, allocations: 191 kB / 1.227 GB, free: 7.234 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.367e-05/0.2971, allocations: 12.38 kB / 1.227 GB, free: 7.223 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.57e-05/0.2972, allocations: 8.375 kB / 1.227 GB, free: 7.215 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000321/0.2975, allocations: 127.1 kB / 1.227 GB, free: 7.086 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.167e-06/0.2975, allocations: 0 / 1.227 GB, free: 7.086 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.308e-05/0.2975, allocations: 4 kB / 1.227 GB, free: 7.082 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.41e-06/0.2975, allocations: 0 / 1.227 GB, free: 7.082 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004079/0.298, allocations: 139.9 kB / 1.227 GB, free: 6.945 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009753/0.2989, allocations: 468.5 kB / 1.228 GB, free: 6.438 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002848/0.2992, allocations: 126.5 kB / 1.228 GB, free: 6.305 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001921/0.2994, allocations: 68.81 kB / 1.228 GB, free: 6.234 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001303/0.3008, allocations: 0.9605 MB / 1.229 GB, free: 5.137 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.363e-05/0.3008, allocations: 34.56 kB / 1.229 GB, free: 5.094 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=12): time 1.573e-06/0.3008, allocations: 7.938 kB / 1.229 GB, free: 5.086 MB / 0.9825 GB Notification: Performance of matching and sorting (n=12): time 0.000669/0.3015, allocations: 213.4 kB / 1.229 GB, free: 4.871 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.006e-05/0.3015, allocations: 51.41 kB / 1.229 GB, free: 4.809 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001468/0.3017, allocations: 163.2 kB / 1.229 GB, free: 4.637 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.356e-05/0.3017, allocations: 37.7 kB / 1.229 GB, free: 4.594 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 6.869e-05/0.3018, allocations: 104.5 kB / 1.229 GB, free: 4.484 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 3.26e-05/0.3018, allocations: 47.58 kB / 1.229 GB, free: 4.438 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.59e-05/0.3019, allocations: 49.7 kB / 1.229 GB, free: 4.383 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 9.046e-05/0.302, allocations: 318.8 kB / 1.23 GB, free: 4.062 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002207/0.3022, allocations: 83.88 kB / 1.23 GB, free: 3.98 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002692/0.3025, allocations: 111.3 kB / 1.23 GB, free: 3.859 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004242/0.3029, allocations: 171.3 kB / 1.23 GB, free: 3.68 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.417e-06/0.3029, allocations: 0 / 1.23 GB, free: 3.68 MB / 0.9825 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0005558/0.3035, allocations: 250.8 kB / 1.23 GB, free: 3.43 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.753e-05/0.3035, allocations: 4 kB / 1.23 GB, free: 3.426 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.084e-06/0.3036, allocations: 3.938 kB / 1.23 GB, free: 3.422 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.812e-05/0.3036, allocations: 4.094 kB / 1.23 GB, free: 3.418 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002654/0.3038, allocations: 55.91 kB / 1.23 GB, free: 3.363 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.406e-06/0.3039, allocations: 4 kB / 1.23 GB, free: 3.359 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001651/0.304, allocations: 31.8 kB / 1.23 GB, free: 3.328 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.689e-05/0.3041, allocations: 8 kB / 1.23 GB, free: 3.32 MB / 0.9825 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (26): * Single equations (assignments): 26 * 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 9.715e-05/0.3042, allocations: 117.8 kB / 1.23 GB, free: 3.195 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.317e-05/0.3042, allocations: 23.84 kB / 1.231 GB, free: 3.172 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004733/0.3047, allocations: 178.8 kB / 1.231 GB, free: 2.992 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.06e-06/0.3047, allocations: 4 kB / 1.231 GB, free: 2.988 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.3047, allocations: 0 / 1.231 GB, free: 2.988 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.135e-06/0.3047, allocations: 0 / 1.231 GB, free: 2.988 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002194/0.305, allocations: 221.5 kB / 1.231 GB, free: 2.723 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.305, allocations: 0 / 1.231 GB, free: 2.723 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001534/0.3051, allocations: 27.97 kB / 1.231 GB, free: 2.695 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.971e-06/0.3051, allocations: 8 kB / 1.231 GB, free: 2.688 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.302e-05/0.3052, allocations: 7.938 kB / 1.231 GB, free: 2.68 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.216e-06/0.3052, allocations: 3.938 kB / 1.231 GB, free: 2.676 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.365e-06/0.3052, allocations: 4 kB / 1.231 GB, free: 2.672 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004378/0.3056, allocations: 251.4 kB / 1.231 GB, free: 2.41 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 7.315e-05/0.3057, allocations: 104.9 kB / 1.231 GB, free: 2.289 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.666e-05/0.3057, allocations: 3.938 kB / 1.231 GB, free: 2.285 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001386/0.3059, allocations: 15.98 kB / 1.231 GB, free: 2.27 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.429e-05/0.3059, allocations: 7.984 kB / 1.231 GB, free: 2.262 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.065e-06/0.3059, allocations: 4 kB / 1.231 GB, free: 2.258 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 8.163e-05/0.306, allocations: 120 kB / 1.231 GB, free: 2.141 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.3e-07/0.306, allocations: 0 / 1.231 GB, free: 2.141 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003493/0.3064, allocations: 63.86 kB / 1.231 GB, free: 2.078 MB / 0.9825 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 (12): * Single equations (assignments): 12 * 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.0008956/0.3073, allocations: 0.861 MB / 1.232 GB, free: 1.188 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0005068/0.3078, allocations: 167.8 kB / 1.232 GB, free: 1.023 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.943e-06/0.3078, allocations: 4.188 kB / 1.232 GB, free: 1.02 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001865/0.308, allocations: 63.89 kB / 1.233 GB, free: 0.957 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003874/0.3084, allocations: 27.86 kB / 1.233 GB, free: 0.9297 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002526/0.3109, allocations: 1.953 MB / 1.234 GB, free: 14.88 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002268/0.3112, allocations: 0.7045 MB / 1.235 GB, free: 14.15 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0001007/0.3113, allocations: 17.08 kB / 1.235 GB, free: 14.14 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.271e-05/0.3114, allocations: 35.42 kB / 1.235 GB, free: 14.1 MB / 0.9981 GB Notification: Performance of SimCode: time 4.81e-07/0.3114, allocations: 0 / 1.235 GB, free: 14.1 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0227/0.3341, allocations: 4.292 MB / 1.239 GB, free: 9.969 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.369/7.704, allocations: 11.88 kB / 1.239 GB, free: 9.957 MB / 0.9981 GB (rm -f Buildings_latest_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder.pipe ; mkfifo Buildings_latest_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder.pipe >> ../files/Buildings_latest_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder_res.csv --start-time 0 --stop-time 250 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.1 Buildings_latest_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_HANaturalCylinder.fmu > Buildings_latest_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_HeatExchangers_BaseClasses_Examples_HANaturalCylinder.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches