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.00162/0.00162, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001535/0.001535, allocations: 192.8 kB / 16.53 MB, free: 6.391 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.43/1.43, allocations: 222.9 MB / 240.2 MB, free: 4.406 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.861/2.861, allocations: 469.8 MB / 0.7424 GB, free: 7.469 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.003217/0.003217, allocations: 66.98 kB / 0.9086 GB, free: 34.27 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2681/0.2713, allocations: 159.1 MB / 1.064 GB, free: 14.26 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Examples.ExpansionVessel): time 0.0172/0.2886, allocations: 14.45 MB / 1.078 GB, free: 15.75 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.005247/0.2938, allocations: 3.643 MB / 1.082 GB, free: 12.1 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003247/0.2942, allocations: 23.94 kB / 1.082 GB, free: 12.07 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.000549/0.2947, allocations: 210.6 kB / 1.082 GB, free: 11.87 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.001311/0.2961, allocations: 0.5829 MB / 1.083 GB, free: 11.28 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008903/0.297, allocations: 384.1 kB / 1.083 GB, free: 10.91 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.001342/0.2983, allocations: 1.088 MB / 1.084 GB, free: 9.82 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004872/0.2988, allocations: 320.9 kB / 1.084 GB, free: 9.504 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0009572/0.2998, allocations: 376.2 kB / 1.085 GB, free: 9.137 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004567/0.3002, allocations: 310.6 kB / 1.085 GB, free: 8.832 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 6.669e-05/0.3003, allocations: 35.94 kB / 1.085 GB, free: 8.797 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000552/0.3009, allocations: 251.6 kB / 1.085 GB, free: 8.551 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0001333/0.301, allocations: 107.6 kB / 1.085 GB, free: 8.445 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0002465/0.3013, allocations: 211 kB / 1.085 GB, free: 8.238 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0008082/0.3021, allocations: 0.5842 MB / 1.086 GB, free: 7.652 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 3.196e-06/0.3021, allocations: 0 / 1.086 GB, free: 7.652 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.513e-06/0.3021, allocations: 4 kB / 1.086 GB, free: 7.648 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 8.196e-06/0.3021, allocations: 0 / 1.086 GB, free: 7.648 MB / 0.8419 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.001261/0.3034, allocations: 0.7418 MB / 1.087 GB, free: 6.852 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.593e-05/0.3034, allocations: 12.02 kB / 1.087 GB, free: 6.84 MB / 0.8419 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.542e-05/0.3035, allocations: 58.73 kB / 1.087 GB, free: 6.773 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001911/0.3037, allocations: 48.47 kB / 1.087 GB, free: 6.727 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007107/0.3044, allocations: 451.6 kB / 1.087 GB, free: 6.242 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.847e-05/0.3045, allocations: 24.69 kB / 1.087 GB, free: 6.219 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.468e-05/0.3045, allocations: 28 kB / 1.087 GB, free: 6.191 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006212/0.3052, allocations: 306.2 kB / 1.088 GB, free: 5.875 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.769e-05/0.3052, allocations: 4 kB / 1.088 GB, free: 5.871 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.19e-05/0.3052, allocations: 8 kB / 1.088 GB, free: 5.863 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.147e-05/0.3053, allocations: 11.94 kB / 1.088 GB, free: 5.852 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005165/0.3058, allocations: 190.1 kB / 1.088 GB, free: 5.664 MB / 0.8419 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.002004/0.3078, allocations: 1.493 MB / 1.089 GB, free: 4.047 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004713/0.3083, allocations: 158.6 kB / 1.089 GB, free: 3.883 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001989/0.3085, allocations: 64.81 kB / 1.09 GB, free: 3.816 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001417/0.3086, allocations: 93.05 kB / 1.09 GB, free: 3.707 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003136/0.309, allocations: 125.4 kB / 1.09 GB, free: 3.574 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=15): time 3.897e-06/0.309, allocations: 0 / 1.09 GB, free: 3.574 MB / 0.8419 GB Notification: Performance of matching and sorting (n=15): time 0.0006836/0.3097, allocations: 237 kB / 1.09 GB, free: 3.336 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.701e-05/0.3097, allocations: 55.41 kB / 1.09 GB, free: 3.27 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004224/0.3102, allocations: 357.5 kB / 1.09 GB, free: 2.914 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 2.927e-05/0.3102, allocations: 29.64 kB / 1.09 GB, free: 2.879 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001816/0.3104, allocations: 219.7 kB / 1.091 GB, free: 2.66 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 5.712e-05/0.3105, allocations: 55.2 kB / 1.091 GB, free: 2.605 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.303e-05/0.3105, allocations: 53.7 kB / 1.091 GB, free: 2.547 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001715/0.3107, allocations: 342.8 kB / 1.091 GB, free: 2.203 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002142/0.3109, allocations: 67.95 kB / 1.091 GB, free: 2.137 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002732/0.3112, allocations: 147.1 kB / 1.091 GB, free: 1.961 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004826/0.3117, allocations: 245.2 kB / 1.091 GB, free: 1.684 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/0.3117, allocations: 0 / 1.091 GB, free: 1.684 MB / 0.8419 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0006584/0.3124, allocations: 312.2 kB / 1.092 GB, free: 1.367 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 3.278e-05/0.3124, allocations: 33.7 kB / 1.092 GB, free: 1.328 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.887e-06/0.3125, allocations: 4 kB / 1.092 GB, free: 1.324 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.608e-05/0.3125, allocations: 7.938 kB / 1.092 GB, free: 1.316 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000251/0.3127, allocations: 60.2 kB / 1.092 GB, free: 1.258 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.232e-05/0.3128, allocations: 8 kB / 1.092 GB, free: 1.25 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002631/0.313, allocations: 31.73 kB / 1.092 GB, free: 1.219 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.802e-05/0.3131, allocations: 16 kB / 1.092 GB, free: 1.203 MB / 0.8419 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.000179/0.3133, allocations: 161.7 kB / 1.092 GB, free: 1.035 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.335e-05/0.3133, allocations: 31.62 kB / 1.092 GB, free: 1.004 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004989/0.3138, allocations: 202 kB / 1.092 GB, free: 0.8047 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.049e-06/0.3138, allocations: 3.938 kB / 1.092 GB, free: 0.8008 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.787e-06/0.3139, allocations: 0 / 1.092 GB, free: 0.8008 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005741/0.3144, allocations: 483.7 kB / 1.093 GB, free: 248 kB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004757/0.3149, allocations: 349.3 kB / 1.093 GB, free: 15.85 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.3149, allocations: 4 kB / 1.093 GB, free: 15.85 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001793/0.3151, allocations: 27.92 kB / 1.093 GB, free: 15.82 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.169e-06/0.3151, allocations: 4 kB / 1.093 GB, free: 15.82 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.557e-05/0.3152, allocations: 8 kB / 1.093 GB, free: 15.81 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.837e-06/0.3152, allocations: 3.938 kB / 1.093 GB, free: 15.8 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/0.3152, allocations: 0 / 1.093 GB, free: 15.8 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006786/0.3159, allocations: 284.3 kB / 1.093 GB, free: 15.51 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001485/0.316, allocations: 128.7 kB / 1.094 GB, free: 15.37 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.263e-05/0.3161, allocations: 4 kB / 1.094 GB, free: 15.36 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002547/0.3163, allocations: 27.91 kB / 1.094 GB, free: 15.34 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.956e-05/0.3164, allocations: 23.95 kB / 1.094 GB, free: 15.31 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.25e-05/0.3164, allocations: 11.97 kB / 1.094 GB, free: 15.3 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0002835/0.3167, allocations: 247.2 kB / 1.094 GB, free: 15.06 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.5e-07/0.3167, allocations: 0 / 1.094 GB, free: 15.06 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0004256/0.3172, allocations: 120 kB / 1.094 GB, free: 14.94 MB / 0.8575 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.001206/0.3184, allocations: 0.9086 MB / 1.095 GB, free: 14 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0005507/0.3189, allocations: 243.7 kB / 1.095 GB, free: 13.75 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.319, allocations: 4.062 kB / 1.095 GB, free: 13.75 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001965/0.3192, allocations: 70 kB / 1.095 GB, free: 13.68 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001008/0.3202, allocations: 214.5 kB / 1.095 GB, free: 13.48 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00455/0.3247, allocations: 3.058 MB / 1.098 GB, free: 10.28 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004391/0.3252, allocations: 0.7957 MB / 1.099 GB, free: 9.453 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.0002653/0.3255, allocations: 67.19 kB / 1.099 GB, free: 9.383 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001816/0.3256, allocations: 115.4 kB / 1.099 GB, free: 9.27 MB / 0.8575 GB Notification: Performance of SimCode: time 2.7e-07/0.3257, allocations: 4 kB / 1.099 GB, free: 9.266 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03619/0.3619, allocations: 10.14 MB / 1.109 GB, free: 15.31 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.876/8.238, allocations: 8.062 kB / 1.109 GB, free: 15.3 MB / 0.8731 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