Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 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.Storage.Examples.ExpansionVessel,fileNamePrefix="Buildings_10_Buildings_Fluid_Storage_Examples_ExpansionVessel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Storage.Examples.ExpansionVessel,fileNamePrefix="Buildings_10_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.006944/0.006944, allocations: 103.7 kB / 15.74 MB, free: 6.449 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.001955/0.001955, allocations: 196.4 kB / 16.67 MB, free: 6.355 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.456/1.456, allocations: 222.9 MB / 240.4 MB, free: 4.305 MB / 190.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.663/2.663, allocations: 437 MB / 0.7105 GB, free: 4.961 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001925/0.001925, allocations: 63.91 kB / 1.018 GB, free: 15.12 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2687/0.2706, allocations: 151.6 MB / 1.166 GB, free: 7.375 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Examples.ExpansionVessel): time 0.01744/0.2881, allocations: 14.45 MB / 1.18 GB, free: 8.859 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.005381/0.2935, allocations: 3.647 MB / 1.184 GB, free: 5.199 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003803/0.2939, allocations: 15.94 kB / 1.184 GB, free: 5.184 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.0005902/0.2945, allocations: 206.7 kB / 1.184 GB, free: 4.98 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.001295/0.2958, allocations: 0.5829 MB / 1.185 GB, free: 4.395 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008648/0.2967, allocations: 394.6 kB / 1.185 GB, free: 4.012 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.001301/0.298, allocations: 1.095 MB / 1.186 GB, free: 2.914 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004287/0.2985, allocations: 309.3 kB / 1.186 GB, free: 2.605 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008575/0.2993, allocations: 386.1 kB / 1.187 GB, free: 2.23 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004113/0.2998, allocations: 310.6 kB / 1.187 GB, free: 1.926 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 6.383e-05/0.2998, allocations: 32 kB / 1.187 GB, free: 1.895 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004946/0.3003, allocations: 255.5 kB / 1.187 GB, free: 1.645 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.0001311/0.3005, allocations: 99.66 kB / 1.187 GB, free: 1.547 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0002427/0.3007, allocations: 211 kB / 1.188 GB, free: 1.34 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0008333/0.3016, allocations: 0.5993 MB / 1.188 GB, free: 0.7383 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 2.955e-06/0.3016, allocations: 0 / 1.188 GB, free: 0.7383 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.042e-06/0.3016, allocations: 4 kB / 1.188 GB, free: 0.7344 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 1.006e-05/0.3016, allocations: 4 kB / 1.188 GB, free: 0.7305 MB / 0.9356 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.001198/0.3028, allocations: 0.753 MB / 1.189 GB, free: 15.92 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.221e-05/0.3028, allocations: 8.031 kB / 1.189 GB, free: 15.91 MB / 0.9512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.506e-05/0.3029, allocations: 62.72 kB / 1.189 GB, free: 15.84 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001735/0.3031, allocations: 52.66 kB / 1.189 GB, free: 15.79 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007439/0.3038, allocations: 479.9 kB / 1.189 GB, free: 15.29 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.911e-05/0.3039, allocations: 24.69 kB / 1.189 GB, free: 15.26 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.975e-05/0.3039, allocations: 28 kB / 1.19 GB, free: 15.23 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006072/0.3046, allocations: 310.2 kB / 1.19 GB, free: 14.91 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.512e-05/0.3046, allocations: 0 / 1.19 GB, free: 14.91 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.995e-05/0.3046, allocations: 8 kB / 1.19 GB, free: 14.9 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.816e-05/0.3046, allocations: 11.94 kB / 1.19 GB, free: 14.89 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004946/0.3052, allocations: 198.1 kB / 1.19 GB, free: 14.7 MB / 0.9512 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.001929/0.3071, allocations: 1.478 MB / 1.191 GB, free: 13.09 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004568/0.3076, allocations: 158.6 kB / 1.192 GB, free: 12.93 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001817/0.3078, allocations: 64.83 kB / 1.192 GB, free: 12.86 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001366/0.3079, allocations: 93.09 kB / 1.192 GB, free: 12.75 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000301/0.3082, allocations: 123.3 kB / 1.192 GB, free: 12.62 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=15): time 5.29e-06/0.3082, allocations: 0 / 1.192 GB, free: 12.62 MB / 0.9512 GB Notification: Performance of matching and sorting (n=15): time 0.0006558/0.3089, allocations: 251.6 kB / 1.192 GB, free: 12.37 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.237e-05/0.3089, allocations: 51.41 kB / 1.192 GB, free: 12.3 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004151/0.3094, allocations: 353.6 kB / 1.193 GB, free: 11.95 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 3.056e-05/0.3094, allocations: 29.7 kB / 1.193 GB, free: 11.92 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001868/0.3096, allocations: 216.1 kB / 1.193 GB, free: 11.7 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 5.707e-05/0.3097, allocations: 59.52 kB / 1.193 GB, free: 11.64 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.195e-05/0.3098, allocations: 53.66 kB / 1.193 GB, free: 11.59 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001645/0.3099, allocations: 346.8 kB / 1.193 GB, free: 11.24 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002101/0.3101, allocations: 71.95 kB / 1.193 GB, free: 11.17 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002625/0.3104, allocations: 142.4 kB / 1.193 GB, free: 11 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004632/0.3109, allocations: 249.1 kB / 1.194 GB, free: 10.71 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.385e-06/0.3109, allocations: 0 / 1.194 GB, free: 10.71 MB / 0.9512 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0006494/0.3116, allocations: 318.9 kB / 1.194 GB, free: 10.39 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 3.654e-05/0.3116, allocations: 33.7 kB / 1.194 GB, free: 10.35 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.759e-06/0.3116, allocations: 0 / 1.194 GB, free: 10.35 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.541e-05/0.3116, allocations: 7.938 kB / 1.194 GB, free: 10.34 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002329/0.3119, allocations: 55.91 kB / 1.194 GB, free: 10.29 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.008e-05/0.3119, allocations: 7.984 kB / 1.194 GB, free: 10.28 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002498/0.3121, allocations: 31.83 kB / 1.194 GB, free: 10.25 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.642e-05/0.3122, allocations: 16.19 kB / 1.194 GB, free: 10.23 MB / 0.9512 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.0001745/0.3124, allocations: 157.7 kB / 1.194 GB, free: 10.07 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.143e-05/0.3124, allocations: 39.75 kB / 1.194 GB, free: 10.03 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004839/0.3129, allocations: 184.6 kB / 1.194 GB, free: 9.844 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.699e-06/0.3129, allocations: 3.938 kB / 1.194 GB, free: 9.84 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.517e-06/0.3129, allocations: 4 kB / 1.194 GB, free: 9.836 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005813/0.3135, allocations: 496.6 kB / 1.195 GB, free: 9.266 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004618/0.314, allocations: 357.3 kB / 1.195 GB, free: 8.867 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.477e-06/0.314, allocations: 4 kB / 1.195 GB, free: 8.863 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001783/0.3142, allocations: 31.97 kB / 1.195 GB, free: 8.832 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.994e-06/0.3142, allocations: 0 / 1.195 GB, free: 8.832 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.721e-05/0.3142, allocations: 4 kB / 1.195 GB, free: 8.828 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.739e-06/0.3143, allocations: 7.938 kB / 1.195 GB, free: 8.82 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/0.3143, allocations: 0 / 1.195 GB, free: 8.82 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006566/0.3149, allocations: 291.6 kB / 1.196 GB, free: 8.52 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001365/0.3151, allocations: 128.9 kB / 1.196 GB, free: 8.375 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.413e-05/0.3151, allocations: 0 / 1.196 GB, free: 8.375 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002383/0.3154, allocations: 19.92 kB / 1.196 GB, free: 8.355 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.739e-05/0.3154, allocations: 15.97 kB / 1.196 GB, free: 8.34 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.772e-05/0.3155, allocations: 8 kB / 1.196 GB, free: 8.332 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.0002805/0.3157, allocations: 251.2 kB / 1.196 GB, free: 8.09 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.7e-07/0.3158, allocations: 0 / 1.196 GB, free: 8.09 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0004011/0.3162, allocations: 131.6 kB / 1.196 GB, free: 7.961 MB / 0.9512 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.001175/0.3173, allocations: 0.9049 MB / 1.197 GB, free: 7.023 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0005185/0.3179, allocations: 227.1 kB / 1.197 GB, free: 6.789 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 2.424e-06/0.3179, allocations: 0 / 1.197 GB, free: 6.789 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0001942/0.3181, allocations: 72.52 kB / 1.197 GB, free: 6.719 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009533/0.3191, allocations: 224.5 kB / 1.198 GB, free: 6.512 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004441/0.3235, allocations: 3.068 MB / 1.201 GB, free: 3.301 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004443/0.324, allocations: 0.7879 MB / 1.201 GB, free: 2.488 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 0.0002261/0.3242, allocations: 71.17 kB / 1.201 GB, free: 2.418 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001804/0.3244, allocations: 115.4 kB / 1.201 GB, free: 2.309 MB / 0.9512 GB Notification: Performance of SimCode: time 2.7e-07/0.3244, allocations: 3.938 kB / 1.201 GB, free: 2.305 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03498/0.3594, allocations: 10.2 MB / 1.211 GB, free: 8.309 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.204/8.563, allocations: 3.984 kB / 1.211 GB, free: 8.305 MB / 0.9669 GB (rm -f Buildings_10_Buildings.Fluid.Storage.Examples.ExpansionVessel.pipe ; mkfifo Buildings_10_Buildings.Fluid.Storage.Examples.ExpansionVessel.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Storage.Examples.ExpansionVessel.pipe >> ../files/Buildings_10_Buildings.Fluid.Storage.Examples.ExpansionVessel.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Fluid.Storage.Examples.ExpansionVessel_res.csv --start-time 0 --stop-time 7200 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 2.88 Buildings_10_Buildings_Fluid_Storage_Examples_ExpansionVessel.fmu > Buildings_10_Buildings.Fluid.Storage.Examples.ExpansionVessel.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.Storage.Examples.ExpansionVessel_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_Storage_Examples_ExpansionVessel.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.Storage.Examples.ExpansionVessel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches