Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.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.Storage.Examples.ExpansionVessel,fileNamePrefix="Buildings_latest_Buildings_Fluid_Storage_Examples_ExpansionVessel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Storage.Examples.ExpansionVessel,fileNamePrefix="Buildings_latest_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.007417/0.007417, allocations: 103.6 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.002028/0.002028, allocations: 196.5 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.421/1.421, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.904/2.904, allocations: 482.4 MB / 0.7548 GB, free: 10.83 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001932/0.001932, allocations: 71.83 kB / 1.083 GB, free: 12.52 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2754/0.2773, allocations: 162.2 MB / 1.241 GB, free: 10.17 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Examples.ExpansionVessel): time 0.5101/0.7874, allocations: 14.44 MB / 1.256 GB, free: 7.273 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.004023/0.7915, allocations: 3.652 MB / 1.259 GB, free: 6.324 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002655/0.7918, allocations: 20.5 kB / 1.259 GB, free: 6.316 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.0004879/0.7923, allocations: 203.7 kB / 1.259 GB, free: 6.23 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.001031/0.7933, allocations: 0.583 MB / 1.26 GB, free: 5.98 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007163/0.7941, allocations: 394.9 kB / 1.26 GB, free: 5.902 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.00105/0.7951, allocations: 1.087 MB / 1.261 GB, free: 5.617 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000362/0.7955, allocations: 320.6 kB / 1.262 GB, free: 5.477 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008967/0.7964, allocations: 425.3 kB / 1.262 GB, free: 5.285 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003341/0.7968, allocations: 309.8 kB / 1.262 GB, free: 5.145 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 6.247e-05/0.7968, allocations: 32.25 kB / 1.262 GB, free: 5.145 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004591/0.7973, allocations: 256.5 kB / 1.263 GB, free: 5.047 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 9.227e-05/0.7974, allocations: 93.66 kB / 1.263 GB, free: 4.992 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.000188/0.7976, allocations: 214.6 kB / 1.263 GB, free: 4.867 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.000708/0.7983, allocations: 0.5935 MB / 1.264 GB, free: 4.641 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 3.206e-06/0.7983, allocations: 0 / 1.264 GB, free: 4.641 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.052e-06/0.7983, allocations: 0 / 1.264 GB, free: 4.641 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 1.191e-05/0.7983, allocations: 0.8438 kB / 1.264 GB, free: 4.641 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.0009485/0.7993, allocations: 0.7652 MB / 1.264 GB, free: 4.02 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.164e-05/0.7993, allocations: 10.34 kB / 1.264 GB, free: 4.02 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.168e-05/0.7994, allocations: 62.97 kB / 1.264 GB, free: 3.965 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001625/0.7996, allocations: 50.58 kB / 1.264 GB, free: 3.941 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005774/0.8001, allocations: 472.8 kB / 1.265 GB, free: 3.602 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.046e-05/0.8002, allocations: 19 kB / 1.265 GB, free: 3.594 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.949e-05/0.8002, allocations: 29.72 kB / 1.265 GB, free: 3.582 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005327/0.8008, allocations: 307.2 kB / 1.265 GB, free: 3.426 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.542e-05/0.8008, allocations: 0.9688 kB / 1.265 GB, free: 3.426 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.075e-05/0.8008, allocations: 16.11 kB / 1.265 GB, free: 3.414 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.09e-05/0.8009, allocations: 10.42 kB / 1.265 GB, free: 3.414 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004821/0.8013, allocations: 194.8 kB / 1.265 GB, free: 3.352 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.001513/0.8029, allocations: 1.487 MB / 1.267 GB, free: 2.156 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000447/0.8033, allocations: 162.9 kB / 1.267 GB, free: 2.086 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001811/0.8035, allocations: 65.25 kB / 1.267 GB, free: 2.062 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001003/0.8036, allocations: 86.17 kB / 1.267 GB, free: 1.969 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002778/0.8039, allocations: 127.2 kB / 1.267 GB, free: 1.898 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=15): time 1.523e-06/0.8039, allocations: 4 kB / 1.267 GB, free: 1.895 MB / 0.9981 GB Notification: Performance of matching and sorting (n=15): time 0.0006001/0.8045, allocations: 236.8 kB / 1.267 GB, free: 1.797 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.025e-05/0.8046, allocations: 59.89 kB / 1.268 GB, free: 1.73 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003009/0.8049, allocations: 348 kB / 1.268 GB, free: 1.555 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 2.027e-05/0.8049, allocations: 30.27 kB / 1.268 GB, free: 1.52 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001018/0.805, allocations: 220.4 kB / 1.268 GB, free: 1.336 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 3.449e-05/0.805, allocations: 56.47 kB / 1.268 GB, free: 1.293 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.258e-05/0.8051, allocations: 51.69 kB / 1.268 GB, free: 1.262 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 5.238e-05/0.8052, allocations: 342.6 kB / 1.269 GB, free: 0.9336 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001902/0.8054, allocations: 74.59 kB / 1.269 GB, free: 0.9102 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002018/0.8056, allocations: 150.9 kB / 1.269 GB, free: 0.7891 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003768/0.806, allocations: 249.1 kB / 1.269 GB, free: 0.6055 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.806, allocations: 0 / 1.269 GB, free: 0.6055 MB / 0.9981 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.000542/0.8065, allocations: 308.9 kB / 1.269 GB, free: 464 kB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 2.349e-05/0.8066, allocations: 40.36 kB / 1.269 GB, free: 428 kB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.833e-06/0.8066, allocations: 5.578 kB / 1.269 GB, free: 428 kB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.301e-05/0.8066, allocations: 2.906 kB / 1.269 GB, free: 428 kB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002212/0.8068, allocations: 58.25 kB / 1.269 GB, free: 420 kB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.566e-06/0.8068, allocations: 12.36 kB / 1.269 GB, free: 412 kB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002501/0.8071, allocations: 35.92 kB / 1.269 GB, free: 392 kB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.321e-05/0.8071, allocations: 10.59 kB / 1.269 GB, free: 392 kB / 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.0001188/0.8072, allocations: 158.3 kB / 1.27 GB, free: 248 kB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.827e-05/0.8073, allocations: 33.28 kB / 1.27 GB, free: 232 kB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004301/0.8077, allocations: 202.3 kB / 1.27 GB, free: 132 kB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.677e-06/0.8077, allocations: 5.594 kB / 1.27 GB, free: 128 kB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.346e-06/0.8078, allocations: 0 / 1.27 GB, free: 128 kB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005309/0.8083, allocations: 489.5 kB / 1.27 GB, free: 15.65 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004492/0.8087, allocations: 353.1 kB / 1.271 GB, free: 15.39 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.8088, allocations: 0 / 1.271 GB, free: 15.39 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000169/0.8089, allocations: 30.59 kB / 1.271 GB, free: 15.39 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.375e-06/0.8089, allocations: 0.6094 kB / 1.271 GB, free: 15.39 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.951e-05/0.809, allocations: 7.5 kB / 1.271 GB, free: 15.39 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.167e-06/0.809, allocations: 10.83 kB / 1.271 GB, free: 15.38 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.809, allocations: 0 / 1.271 GB, free: 15.38 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006374/0.8096, allocations: 289.1 kB / 1.271 GB, free: 15.24 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001335/0.8098, allocations: 120.1 kB / 1.271 GB, free: 15.12 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.159e-05/0.8098, allocations: 11.81 kB / 1.271 GB, free: 15.12 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002497/0.8101, allocations: 28.31 kB / 1.271 GB, free: 15.1 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.822e-05/0.8102, allocations: 15.27 kB / 1.271 GB, free: 15.1 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.356e-05/0.8102, allocations: 9.438 kB / 1.271 GB, free: 15.1 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.0002552/0.8104, allocations: 248.3 kB / 1.271 GB, free: 14.97 MB / 1.014 GB Notification: Performance of sort global known variables: time 1.7e-07/0.8105, allocations: 0 / 1.271 GB, free: 14.97 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.000389/0.8108, allocations: 119.9 kB / 1.271 GB, free: 14.95 MB / 1.014 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.001138/0.812, allocations: 0.9182 MB / 1.272 GB, free: 14.24 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.0004972/0.8125, allocations: 226.5 kB / 1.273 GB, free: 14.13 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 4.399e-06/0.8125, allocations: 4.125 kB / 1.273 GB, free: 14.12 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.000194/0.8127, allocations: 72.08 kB / 1.273 GB, free: 14.11 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009734/0.8137, allocations: 217.1 kB / 1.273 GB, free: 14.04 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004243/0.818, allocations: 3.053 MB / 1.276 GB, free: 12 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004039/0.8184, allocations: 0.7929 MB / 1.277 GB, free: 11.29 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 0.0002287/0.8186, allocations: 70.34 kB / 1.277 GB, free: 11.27 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001835/0.8188, allocations: 116.9 kB / 1.277 GB, free: 11.18 MB / 1.014 GB Notification: Performance of SimCode: time 3e-07/0.8188, allocations: 0 / 1.277 GB, free: 11.18 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03413/0.853, allocations: 10.21 MB / 1.287 GB, free: 10.1 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.174/9.027, allocations: 12.78 kB / 1.287 GB, free: 10.09 MB / 1.014 GB (rm -f Buildings_latest_Buildings.Fluid.Storage.Examples.ExpansionVessel.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Storage.Examples.ExpansionVessel.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Storage.Examples.ExpansionVessel.pipe >> ../files/Buildings_latest_Buildings.Fluid.Storage.Examples.ExpansionVessel.sim & python3 -m fmpy simulate --output-file Buildings_latest_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_latest_Buildings_Fluid_Storage_Examples_ExpansionVessel.fmu > Buildings_latest_Buildings.Fluid.Storage.Examples.ExpansionVessel.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Storage.Examples.ExpansionVessel_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Storage_Examples_ExpansionVessel.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Storage.Examples.ExpansionVessel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches