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.007294/0.007294, allocations: 102 kB / 15.73 MB, free: 6.441 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.001851/0.001851, allocations: 195.8 kB / 16.67 MB, free: 6.352 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.357/1.357, allocations: 222.9 MB / 240.4 MB, free: 4.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.727/2.727, allocations: 472.7 MB / 0.7453 GB, free: 4.562 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001273/0.001273, allocations: 63.91 kB / 1.069 GB, free: 9.707 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2604/0.2617, allocations: 159.9 MB / 1.225 GB, free: 9.688 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Examples.ExpansionVessel): time 0.01511/0.2768, allocations: 14.45 MB / 1.239 GB, free: 11.18 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.004911/0.2817, allocations: 3.644 MB / 1.243 GB, free: 7.523 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004705/0.2822, allocations: 15.94 kB / 1.243 GB, free: 7.508 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.0006038/0.2828, allocations: 206.7 kB / 1.243 GB, free: 7.305 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.001431/0.2843, allocations: 0.6103 MB / 1.244 GB, free: 6.691 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008866/0.2852, allocations: 398.2 kB / 1.244 GB, free: 6.305 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.001323/0.2865, allocations: 1.094 MB / 1.245 GB, free: 5.207 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004729/0.287, allocations: 313.1 kB / 1.245 GB, free: 4.898 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0009401/0.288, allocations: 404.1 kB / 1.246 GB, free: 4.508 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004618/0.2885, allocations: 306.7 kB / 1.246 GB, free: 4.207 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 6.653e-05/0.2885, allocations: 36 kB / 1.246 GB, free: 4.172 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005499/0.2891, allocations: 263.5 kB / 1.246 GB, free: 3.914 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001188/0.2892, allocations: 99.59 kB / 1.246 GB, free: 3.816 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.0002343/0.2895, allocations: 214.9 kB / 1.247 GB, free: 3.605 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.000806/0.2903, allocations: 0.5916 MB / 1.247 GB, free: 3.012 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 3.166e-06/0.2903, allocations: 0 / 1.247 GB, free: 3.012 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.032e-06/0.2903, allocations: 0 / 1.247 GB, free: 3.012 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 1.388e-05/0.2903, allocations: 0 / 1.247 GB, free: 3.012 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.001157/0.2915, allocations: 0.7569 MB / 1.248 GB, free: 2.195 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.764e-05/0.2915, allocations: 8.031 kB / 1.248 GB, free: 2.188 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.519e-05/0.2916, allocations: 66.72 kB / 1.248 GB, free: 2.113 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001921/0.2918, allocations: 48.66 kB / 1.248 GB, free: 2.066 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007502/0.2926, allocations: 471.9 kB / 1.249 GB, free: 1.566 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.563e-05/0.2926, allocations: 24.69 kB / 1.249 GB, free: 1.543 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.28e-05/0.2927, allocations: 24 kB / 1.249 GB, free: 1.52 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005754/0.2932, allocations: 314.2 kB / 1.249 GB, free: 1.195 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.468e-05/0.2933, allocations: 0 / 1.249 GB, free: 1.195 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.235e-05/0.2933, allocations: 12 kB / 1.249 GB, free: 1.184 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.167e-05/0.2933, allocations: 8 kB / 1.249 GB, free: 1.176 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004811/0.2938, allocations: 190.1 kB / 1.249 GB, free: 0.9883 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.4797/0.7735, allocations: 1.484 MB / 1.251 GB, free: 27.5 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004757/0.774, allocations: 155.3 kB / 1.251 GB, free: 27.48 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001797/0.7742, allocations: 66.59 kB / 1.251 GB, free: 27.47 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001202/0.7743, allocations: 87.25 kB / 1.251 GB, free: 27.38 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003012/0.7746, allocations: 128 kB / 1.251 GB, free: 27.33 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=15): time 2.084e-06/0.7746, allocations: 0.5 kB / 1.251 GB, free: 27.33 MB / 0.9981 GB Notification: Performance of matching and sorting (n=15): time 0.0006705/0.7753, allocations: 239.8 kB / 1.251 GB, free: 27.3 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.391e-05/0.7754, allocations: 55.56 kB / 1.251 GB, free: 27.24 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004202/0.7758, allocations: 349.1 kB / 1.252 GB, free: 27.12 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 2.733e-05/0.7758, allocations: 29.98 kB / 1.252 GB, free: 27.09 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001239/0.7759, allocations: 220.6 kB / 1.252 GB, free: 27 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 4.47e-05/0.776, allocations: 57.58 kB / 1.252 GB, free: 26.97 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.11e-05/0.7761, allocations: 51.81 kB / 1.252 GB, free: 26.95 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 6.45e-05/0.7762, allocations: 345.8 kB / 1.252 GB, free: 26.64 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002047/0.7764, allocations: 69.38 kB / 1.252 GB, free: 26.64 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002195/0.7766, allocations: 155.7 kB / 1.252 GB, free: 26.55 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004011/0.777, allocations: 251.4 kB / 1.253 GB, free: 26.43 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.406e-06/0.777, allocations: 1 kB / 1.253 GB, free: 26.43 MB / 0.9981 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005948/0.7776, allocations: 318.2 kB / 1.253 GB, free: 26.34 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 2.831e-05/0.7777, allocations: 39.55 kB / 1.253 GB, free: 26.31 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.292e-06/0.7777, allocations: 3 kB / 1.253 GB, free: 26.31 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.658e-05/0.7777, allocations: 3.75 kB / 1.253 GB, free: 26.31 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002289/0.7779, allocations: 55.38 kB / 1.253 GB, free: 26.3 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.438e-06/0.7779, allocations: 4.516 kB / 1.253 GB, free: 26.3 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000254/0.7782, allocations: 42.33 kB / 1.253 GB, free: 26.3 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.39e-05/0.7782, allocations: 9.25 kB / 1.253 GB, free: 26.3 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.0001301/0.7784, allocations: 163.8 kB / 1.253 GB, free: 26.18 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.107e-05/0.7784, allocations: 32.19 kB / 1.253 GB, free: 26.16 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004532/0.7789, allocations: 188.3 kB / 1.254 GB, free: 26.12 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.687e-06/0.7789, allocations: 5.625 kB / 1.254 GB, free: 26.12 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.426e-06/0.7789, allocations: 1.375 kB / 1.254 GB, free: 26.12 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0004085/0.7793, allocations: 491.7 kB / 1.254 GB, free: 25.68 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003967/0.7797, allocations: 360.9 kB / 1.254 GB, free: 25.48 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.462e-06/0.7797, allocations: 2.906 kB / 1.254 GB, free: 25.48 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001693/0.7799, allocations: 29.78 kB / 1.254 GB, free: 25.48 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.775e-06/0.7799, allocations: 2.812 kB / 1.254 GB, free: 25.48 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.7e-05/0.78, allocations: 6.047 kB / 1.254 GB, free: 25.48 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.144e-06/0.78, allocations: 8.703 kB / 1.254 GB, free: 25.48 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.78, allocations: 0 / 1.254 GB, free: 25.48 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005838/0.7806, allocations: 288.9 kB / 1.255 GB, free: 25.39 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 9.987e-05/0.7807, allocations: 125.6 kB / 1.255 GB, free: 25.29 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.763e-05/0.7807, allocations: 2.391 kB / 1.255 GB, free: 25.29 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002258/0.781, allocations: 19.12 kB / 1.255 GB, free: 25.29 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.385e-05/0.781, allocations: 17.98 kB / 1.255 GB, free: 25.29 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.129e-05/0.7811, allocations: 7.453 kB / 1.255 GB, free: 25.29 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0002341/0.7813, allocations: 250.1 kB / 1.255 GB, free: 25.21 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.4e-07/0.7813, allocations: 3.688 kB / 1.255 GB, free: 25.21 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0004065/0.7817, allocations: 122.9 kB / 1.255 GB, free: 25.2 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.0009239/0.7826, allocations: 0.9159 MB / 1.256 GB, free: 24.59 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0004742/0.7831, allocations: 228.5 kB / 1.256 GB, free: 24.52 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.7831, allocations: 0.9062 kB / 1.256 GB, free: 24.52 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001883/0.7833, allocations: 69.45 kB / 1.256 GB, free: 24.52 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009541/0.7843, allocations: 212.2 kB / 1.257 GB, free: 24.51 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003614/0.7879, allocations: 3.062 MB / 1.26 GB, free: 22.88 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000167/0.7881, allocations: 0.8001 MB / 1.26 GB, free: 22.18 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0001978/0.7883, allocations: 68.17 kB / 1.26 GB, free: 22.16 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001372/0.7885, allocations: 121.5 kB / 1.261 GB, free: 22.15 MB / 0.9981 GB Notification: Performance of SimCode: time 2.4e-07/0.7885, allocations: 0 / 1.261 GB, free: 22.15 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0296/0.8181, allocations: 10.21 MB / 1.27 GB, free: 21.13 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.707/8.525, allocations: 9.172 kB / 1.271 GB, free: 21.13 MB / 0.9981 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 50 --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