Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Fluid.Storage.Examples.ExpansionVessel.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-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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.Storage.Examples.ExpansionVessel,fileNamePrefix="Buildings_11_Buildings_Fluid_Storage_Examples_ExpansionVessel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Storage.Examples.ExpansionVessel,fileNamePrefix="Buildings_11_Buildings_Fluid_Storage_Examples_ExpansionVessel",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.004517/0.004517, allocations: 99.56 kB / 15.73 MB, free: 6.48 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.001288/0.001288, allocations: 193.8 kB / 16.68 MB, free: 6.363 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.418/1.418, allocations: 222.9 MB / 240.4 MB, free: 4.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.843/2.843, allocations: 469.8 MB / 0.7425 GB, free: 7.305 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.002634/0.002634, allocations: 71.88 kB / 1.065 GB, free: 13.6 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2705/0.2732, allocations: 159.1 MB / 1.22 GB, free: 14.34 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Examples.ExpansionVessel): time 0.01758/0.2908, allocations: 14.44 MB / 1.234 GB, free: 15.83 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.00545/0.2963, allocations: 3.639 MB / 1.238 GB, free: 12.18 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003896/0.2967, allocations: 27.88 kB / 1.238 GB, free: 12.15 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.0005885/0.2973, allocations: 202.7 kB / 1.238 GB, free: 11.95 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.00138/0.2987, allocations: 0.5752 MB / 1.239 GB, free: 11.38 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009343/0.2996, allocations: 402.3 kB / 1.239 GB, free: 10.98 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.001369/0.301, allocations: 1.083 MB / 1.24 GB, free: 9.895 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004379/0.3015, allocations: 316.6 kB / 1.24 GB, free: 9.582 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008653/0.3023, allocations: 386.3 kB / 1.241 GB, free: 9.207 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004149/0.3028, allocations: 310.6 kB / 1.241 GB, free: 8.902 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 6.399e-05/0.3028, allocations: 32 kB / 1.241 GB, free: 8.871 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005493/0.3034, allocations: 263.5 kB / 1.241 GB, free: 8.613 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001277/0.3035, allocations: 95.66 kB / 1.241 GB, free: 8.52 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.000246/0.3038, allocations: 214.9 kB / 1.242 GB, free: 8.309 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0008309/0.3046, allocations: 0.5916 MB / 1.242 GB, free: 7.715 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 2.845e-06/0.3046, allocations: 3.938 kB / 1.242 GB, free: 7.711 MB / 0.9981 GB Notification: Performance of FrontEnd: time 9.52e-07/0.3046, allocations: 0 / 1.242 GB, free: 7.711 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 5.891e-06/0.3046, allocations: 0 / 1.242 GB, free: 7.711 MB / 0.9981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 62 * Number of variables: 62 Notification: Performance of Generate backend data structure: time 0.001208/0.3059, allocations: 0.7583 MB / 1.243 GB, free: 6.895 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.111e-05/0.3059, allocations: 8.031 kB / 1.243 GB, free: 6.887 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.878e-05/0.306, allocations: 66.73 kB / 1.243 GB, free: 6.812 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001763/0.3062, allocations: 48.66 kB / 1.243 GB, free: 6.766 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007408/0.3069, allocations: 471.9 kB / 1.243 GB, free: 6.266 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.626e-05/0.307, allocations: 24.69 kB / 1.243 GB, free: 6.242 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.235e-05/0.307, allocations: 24 kB / 1.244 GB, free: 6.219 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006209/0.3076, allocations: 310.2 kB / 1.244 GB, free: 5.898 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.562e-05/0.3077, allocations: 4 kB / 1.244 GB, free: 5.895 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.395e-05/0.3077, allocations: 12 kB / 1.244 GB, free: 5.883 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.804e-05/0.3077, allocations: 11.94 kB / 1.244 GB, free: 5.871 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005158/0.3083, allocations: 194.1 kB / 1.244 GB, free: 5.684 MB / 0.9981 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001931/0.3102, allocations: 1.482 MB / 1.245 GB, free: 4.074 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004704/0.3107, allocations: 154.6 kB / 1.246 GB, free: 3.914 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001908/0.3109, allocations: 64.83 kB / 1.246 GB, free: 3.848 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001331/0.311, allocations: 89.03 kB / 1.246 GB, free: 3.742 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003172/0.3114, allocations: 127.3 kB / 1.246 GB, free: 3.605 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=15): time 1.673e-06/0.3114, allocations: 0 / 1.246 GB, free: 3.605 MB / 0.9981 GB Notification: Performance of matching and sorting (n=15): time 0.0006767/0.3121, allocations: 240.6 kB / 1.246 GB, free: 3.367 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.896e-05/0.3121, allocations: 59.41 kB / 1.246 GB, free: 3.297 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004104/0.3125, allocations: 345.6 kB / 1.247 GB, free: 2.957 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 3.318e-05/0.3126, allocations: 33.7 kB / 1.247 GB, free: 2.918 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001859/0.3128, allocations: 220.1 kB / 1.247 GB, free: 2.699 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 5.685e-05/0.3128, allocations: 59.58 kB / 1.247 GB, free: 2.641 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.461e-05/0.3129, allocations: 57.66 kB / 1.247 GB, free: 2.578 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001729/0.3131, allocations: 346.8 kB / 1.247 GB, free: 2.23 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000215/0.3133, allocations: 67.95 kB / 1.247 GB, free: 2.164 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000273/0.3136, allocations: 145.9 kB / 1.247 GB, free: 1.988 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004726/0.3141, allocations: 245 kB / 1.248 GB, free: 1.711 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.395e-06/0.3141, allocations: 4 kB / 1.248 GB, free: 1.707 MB / 0.9981 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0006556/0.3148, allocations: 314.8 kB / 1.248 GB, free: 1.387 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 3.458e-05/0.3148, allocations: 33.7 kB / 1.248 GB, free: 1.348 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.893e-06/0.3148, allocations: 4 kB / 1.248 GB, free: 1.344 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.924e-05/0.3148, allocations: 11.92 kB / 1.248 GB, free: 1.332 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002455/0.3151, allocations: 64.2 kB / 1.248 GB, free: 1.27 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.225e-05/0.3151, allocations: 8 kB / 1.248 GB, free: 1.262 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002633/0.3154, allocations: 43.64 kB / 1.248 GB, free: 1.219 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.348e-05/0.3154, allocations: 11.94 kB / 1.248 GB, free: 1.207 MB / 0.9981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 5 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (29): * Single equations (assignments): 28 * 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 0.0001771/0.3156, allocations: 157.8 kB / 1.248 GB, free: 1.043 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.769e-05/0.3157, allocations: 35.75 kB / 1.248 GB, free: 1.008 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005053/0.3162, allocations: 188.5 kB / 1.248 GB, free: 0.8125 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.556e-06/0.3162, allocations: 11.92 kB / 1.248 GB, free: 0.8008 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.466e-06/0.3162, allocations: 0 / 1.248 GB, free: 0.8008 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005768/0.3168, allocations: 483.7 kB / 1.249 GB, free: 248 kB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4735/0.7903, allocations: 352.4 kB / 1.249 GB, free: 31.34 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.691e-06/0.7904, allocations: 0 / 1.249 GB, free: 31.34 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000233/0.7906, allocations: 32.41 kB / 1.249 GB, free: 31.34 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.66e-06/0.7906, allocations: 0.8125 kB / 1.249 GB, free: 31.34 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.092e-05/0.7906, allocations: 7.781 kB / 1.249 GB, free: 31.34 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.498e-06/0.7906, allocations: 5.328 kB / 1.249 GB, free: 31.34 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.7907, allocations: 0.75 kB / 1.249 GB, free: 31.34 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007267/0.7914, allocations: 281.7 kB / 1.25 GB, free: 31.28 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001357/0.7915, allocations: 127.6 kB / 1.25 GB, free: 31.19 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.818e-05/0.7916, allocations: 10.92 kB / 1.25 GB, free: 31.19 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002492/0.7919, allocations: 12.88 kB / 1.25 GB, free: 31.19 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.252e-05/0.7919, allocations: 16.88 kB / 1.25 GB, free: 31.19 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.513e-05/0.792, allocations: 7.109 kB / 1.25 GB, free: 31.19 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0002697/0.7922, allocations: 250.7 kB / 1.25 GB, free: 31.11 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7923, allocations: 1.656 kB / 1.25 GB, free: 31.11 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0004626/0.7927, allocations: 123.3 kB / 1.25 GB, free: 31.11 MB / 0.9981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (expVes.m,expVes.H,vol.dynBal.U) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.001005/0.7937, allocations: 0.9086 MB / 1.251 GB, free: 30.52 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.000515/0.7943, allocations: 230.9 kB / 1.251 GB, free: 30.45 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.7943, allocations: 0.6875 kB / 1.251 GB, free: 30.45 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001948/0.7945, allocations: 76.7 kB / 1.251 GB, free: 30.45 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009987/0.7955, allocations: 215.9 kB / 1.251 GB, free: 30.45 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003846/0.7993, allocations: 3.064 MB / 1.254 GB, free: 28.92 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000206/0.7996, allocations: 0.7901 MB / 1.255 GB, free: 28.21 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0002634/0.7998, allocations: 69.05 kB / 1.255 GB, free: 28.2 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001529/0.8, allocations: 119.5 kB / 1.255 GB, free: 28.19 MB / 0.9981 GB Notification: Performance of SimCode: time 7.12e-07/0.8, allocations: 4 kB / 1.255 GB, free: 28.18 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03493/0.8349, allocations: 10.2 MB / 1.265 GB, free: 27.19 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.165/9, allocations: 9.062 kB / 1.265 GB, free: 27.18 MB / 0.9981 GB (rm -f Buildings_11_Buildings.Fluid.Storage.Examples.ExpansionVessel.pipe ; mkfifo Buildings_11_Buildings.Fluid.Storage.Examples.ExpansionVessel.pipe ; head -c 1048576 < Buildings_11_Buildings.Fluid.Storage.Examples.ExpansionVessel.pipe >> ../files/Buildings_11_Buildings.Fluid.Storage.Examples.ExpansionVessel.sim & python3 -m fmpy simulate --output-file Buildings_11_Buildings.Fluid.Storage.Examples.ExpansionVessel_res.csv --start-time 0 --stop-time 7200 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 2.88 Buildings_11_Buildings_Fluid_Storage_Examples_ExpansionVessel.fmu > Buildings_11_Buildings.Fluid.Storage.Examples.ExpansionVessel.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Fluid.Storage.Examples.ExpansionVessel_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Fluid_Storage_Examples_ExpansionVessel.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Fluid.Storage.Examples.ExpansionVessel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches