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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.005193/0.005193, allocations: 103.1 kB / 15.73 MB, free: 6.047 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.001158/0.001158, allocations: 193.5 kB / 16.67 MB, free: 5.969 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.324/1.324, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.501/2.501, allocations: 461.9 MB / 0.7348 GB, free: 11.06 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001467/0.001468, allocations: 63.89 kB / 1.054 GB, free: 8.195 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8405/0.842, allocations: 157.4 MB / 1.207 GB, free: 13.55 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Examples.ExpansionVessel): time 0.01561/0.8577, allocations: 14.43 MB / 1.221 GB, free: 15.07 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.005792/0.8635, allocations: 3.658 MB / 1.225 GB, free: 11.4 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005821/0.8641, allocations: 23.88 kB / 1.225 GB, free: 11.38 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.0006795/0.8648, allocations: 206.7 kB / 1.225 GB, free: 11.17 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.001617/0.8665, allocations: 0.5752 MB / 1.226 GB, free: 10.59 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.001073/0.8676, allocations: 402.5 kB / 1.226 GB, free: 10.2 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.001391/0.869, allocations: 1.083 MB / 1.227 GB, free: 9.113 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005311/0.8695, allocations: 318.7 kB / 1.227 GB, free: 8.801 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001114/0.8706, allocations: 397.2 kB / 1.228 GB, free: 8.414 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004728/0.8711, allocations: 302.7 kB / 1.228 GB, free: 8.117 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 5.517e-05/0.8712, allocations: 32 kB / 1.228 GB, free: 8.086 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006457/0.8718, allocations: 263.5 kB / 1.228 GB, free: 7.828 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 0.0001195/0.872, allocations: 95.67 kB / 1.228 GB, free: 7.734 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.0002538/0.8722, allocations: 215 kB / 1.229 GB, free: 7.523 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0008834/0.8731, allocations: 0.5881 MB / 1.229 GB, free: 6.934 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.8731, allocations: 0 / 1.229 GB, free: 6.934 MB / 0.9512 GB Notification: Performance of FrontEnd: time 5.31e-06/0.8731, allocations: 3.984 kB / 1.229 GB, free: 6.93 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 1.165e-05/0.8732, allocations: 3.938 kB / 1.229 GB, free: 6.926 MB / 0.9512 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.001246/0.8744, allocations: 0.7418 MB / 1.23 GB, free: 6.129 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 4.542e-05/0.8745, allocations: 8.031 kB / 1.23 GB, free: 6.121 MB / 0.9512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.132e-05/0.8745, allocations: 66.72 kB / 1.23 GB, free: 6.047 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001839/0.8747, allocations: 48.47 kB / 1.23 GB, free: 6 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008597/0.8756, allocations: 459.7 kB / 1.231 GB, free: 5.512 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.866e-05/0.8756, allocations: 24.69 kB / 1.231 GB, free: 5.488 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.94e-05/0.8757, allocations: 35.83 kB / 1.231 GB, free: 5.453 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005932/0.8763, allocations: 302.2 kB / 1.231 GB, free: 5.137 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.432e-05/0.8763, allocations: 4 kB / 1.231 GB, free: 5.133 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.775e-05/0.8764, allocations: 19.97 kB / 1.231 GB, free: 5.113 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.169e-05/0.8764, allocations: 8 kB / 1.231 GB, free: 5.105 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004617/0.8769, allocations: 194 kB / 1.231 GB, free: 4.918 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.001797/0.8787, allocations: 1.477 MB / 1.233 GB, free: 3.312 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004318/0.8791, allocations: 154.6 kB / 1.233 GB, free: 3.152 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001728/0.8793, allocations: 72.81 kB / 1.233 GB, free: 3.078 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001287/0.8794, allocations: 85.09 kB / 1.233 GB, free: 2.977 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002938/0.8797, allocations: 131.3 kB / 1.233 GB, free: 2.836 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=15): time 1.733e-06/0.8798, allocations: 3.938 kB / 1.233 GB, free: 2.832 MB / 0.9512 GB Notification: Performance of matching and sorting (n=15): time 0.0006002/0.8804, allocations: 237 kB / 1.233 GB, free: 2.594 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.224e-05/0.8804, allocations: 55.41 kB / 1.233 GB, free: 2.527 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003485/0.8808, allocations: 341.7 kB / 1.234 GB, free: 2.184 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 3.862e-05/0.8808, allocations: 29.7 kB / 1.234 GB, free: 2.148 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001574/0.881, allocations: 219.8 kB / 1.234 GB, free: 1.93 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 6.102e-05/0.8811, allocations: 59.19 kB / 1.234 GB, free: 1.871 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.359e-05/0.8811, allocations: 53.7 kB / 1.234 GB, free: 1.812 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001309/0.8813, allocations: 334.8 kB / 1.234 GB, free: 1.477 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001981/0.8815, allocations: 79.89 kB / 1.234 GB, free: 1.398 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002359/0.8817, allocations: 147.1 kB / 1.234 GB, free: 1.223 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004141/0.8822, allocations: 244.3 kB / 1.235 GB, free: 0.9453 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.539e-06/0.8822, allocations: 4 kB / 1.235 GB, free: 0.9414 MB / 0.9512 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005627/0.8827, allocations: 313.1 kB / 1.235 GB, free: 0.625 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 3.642e-05/0.8828, allocations: 35.73 kB / 1.235 GB, free: 0.5859 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.931e-06/0.8828, allocations: 0 / 1.235 GB, free: 0.5859 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.693e-05/0.8828, allocations: 7.938 kB / 1.235 GB, free: 0.5781 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000256/0.8831, allocations: 60.22 kB / 1.235 GB, free: 0.5195 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.478e-06/0.8831, allocations: 7.984 kB / 1.235 GB, free: 0.5117 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002462/0.8833, allocations: 39.67 kB / 1.235 GB, free: 484 kB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.325e-05/0.8834, allocations: 12 kB / 1.235 GB, free: 472 kB / 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.0001675/0.8836, allocations: 157.8 kB / 1.235 GB, free: 304 kB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.239e-05/0.8836, allocations: 31.62 kB / 1.235 GB, free: 272 kB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004517/0.8841, allocations: 202.5 kB / 1.236 GB, free: 64 kB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.474e-06/0.8841, allocations: 7.938 kB / 1.236 GB, free: 56 kB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.519e-06/0.8841, allocations: 3.938 kB / 1.236 GB, free: 52 kB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005057/0.8846, allocations: 479.8 kB / 1.236 GB, free: 15.5 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004463/0.8851, allocations: 357.3 kB / 1.236 GB, free: 15.1 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.973e-06/0.8851, allocations: 0 / 1.236 GB, free: 15.1 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001732/0.8853, allocations: 35.91 kB / 1.236 GB, free: 15.06 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.428e-06/0.8853, allocations: 4 kB / 1.236 GB, free: 15.06 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.755e-05/0.8853, allocations: 8 kB / 1.236 GB, free: 15.05 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.627e-06/0.8853, allocations: 3.938 kB / 1.236 GB, free: 15.05 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.8853, allocations: 0 / 1.236 GB, free: 15.05 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006033/0.8859, allocations: 281.9 kB / 1.237 GB, free: 14.75 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001307/0.8861, allocations: 124.6 kB / 1.237 GB, free: 14.61 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.862e-05/0.8861, allocations: 4 kB / 1.237 GB, free: 14.61 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002405/0.8864, allocations: 19.92 kB / 1.237 GB, free: 14.59 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.338e-05/0.8864, allocations: 19.97 kB / 1.237 GB, free: 14.57 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.921e-05/0.8865, allocations: 8 kB / 1.237 GB, free: 14.56 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.0002458/0.8867, allocations: 247.1 kB / 1.237 GB, free: 14.32 MB / 0.9669 GB Notification: Performance of sort global known variables: time 2.1e-07/0.8867, allocations: 0 / 1.237 GB, free: 14.32 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.000431/0.8871, allocations: 128 kB / 1.237 GB, free: 14.2 MB / 0.9669 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.00108/0.8882, allocations: 0.9234 MB / 1.238 GB, free: 13.25 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0004794/0.8887, allocations: 227.6 kB / 1.238 GB, free: 13.01 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.8887, allocations: 0 / 1.238 GB, free: 13.01 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0001701/0.8889, allocations: 67.95 kB / 1.238 GB, free: 12.95 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008954/0.8898, allocations: 219.9 kB / 1.239 GB, free: 12.74 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004011/0.8938, allocations: 3.054 MB / 1.242 GB, free: 9.543 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003396/0.8942, allocations: 0.7918 MB / 1.242 GB, free: 8.727 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 0.0002452/0.8945, allocations: 63.25 kB / 1.242 GB, free: 8.66 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001702/0.8946, allocations: 119.4 kB / 1.242 GB, free: 8.543 MB / 0.9669 GB Notification: Performance of SimCode: time 8.61e-07/0.8946, allocations: 4 kB / 1.243 GB, free: 8.539 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02929/0.9239, allocations: 10.37 MB / 1.253 GB, free: 14.36 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.92/9.844, allocations: 0 / 1.253 GB, free: 14.36 MB / 0.9825 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.Storage.Examples.ExpansionVessel_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_Storage_Examples_ExpansionVessel_fmu --startTime=0 --stopTime=7200 --timeout=50 --tolerance=1e-06 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.mat","/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