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.1.0-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.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.008306/0.008306, allocations: 98.02 kB / 15.73 MB, free: 6.004 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.001629/0.001629, allocations: 199.1 kB / 16.68 MB, free: 5.934 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.436/1.436, 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 11.1.0-master/package.mo): time 2.704/2.704, allocations: 469.4 MB / 0.7421 GB, free: 7.637 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001239/0.001239, allocations: 63.89 kB / 1.064 GB, free: 13.94 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2457/0.247, allocations: 159.1 MB / 1.22 GB, free: 14.7 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Examples.ExpansionVessel): time 0.01492/0.2619, allocations: 14.44 MB / 1.234 GB, free: 200 kB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.004773/0.2667, allocations: 3.651 MB / 1.237 GB, free: 12.54 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004154/0.2672, allocations: 19.88 kB / 1.237 GB, free: 12.52 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.0005798/0.2678, allocations: 214.7 kB / 1.238 GB, free: 12.3 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.001308/0.2691, allocations: 0.6102 MB / 1.238 GB, free: 11.69 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008443/0.2699, allocations: 405.7 kB / 1.239 GB, free: 11.3 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.001199/0.2712, allocations: 1.076 MB / 1.24 GB, free: 10.21 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004121/0.2716, allocations: 316.5 kB / 1.24 GB, free: 9.902 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000864/0.2724, allocations: 407.1 kB / 1.24 GB, free: 9.508 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004022/0.2729, allocations: 306.7 kB / 1.241 GB, free: 9.207 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 5.857e-05/0.2729, allocations: 32 kB / 1.241 GB, free: 9.176 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004961/0.2734, allocations: 263.5 kB / 1.241 GB, free: 8.918 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001116/0.2736, allocations: 91.67 kB / 1.241 GB, free: 8.828 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.0002146/0.2738, allocations: 218.9 kB / 1.241 GB, free: 8.613 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0007336/0.2745, allocations: 0.5877 MB / 1.242 GB, free: 8.023 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 3.336e-06/0.2745, allocations: 0 / 1.242 GB, free: 8.023 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.312e-06/0.2745, allocations: 0 / 1.242 GB, free: 8.023 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 9.828e-06/0.2746, allocations: 0 / 1.242 GB, free: 8.023 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.001119/0.2757, allocations: 0.7569 MB / 1.243 GB, free: 7.207 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.548e-05/0.2757, allocations: 12.03 kB / 1.243 GB, free: 7.195 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.546e-05/0.2758, allocations: 58.73 kB / 1.243 GB, free: 7.129 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001788/0.276, allocations: 52.64 kB / 1.243 GB, free: 7.078 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006994/0.2767, allocations: 467.9 kB / 1.243 GB, free: 6.586 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.384e-05/0.2767, allocations: 24.62 kB / 1.243 GB, free: 6.562 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.393e-05/0.2768, allocations: 35.98 kB / 1.243 GB, free: 6.527 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005507/0.2773, allocations: 306.2 kB / 1.243 GB, free: 6.211 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.589e-05/0.2774, allocations: 0 / 1.243 GB, free: 6.211 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.235e-05/0.2774, allocations: 11.94 kB / 1.243 GB, free: 6.199 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.642e-05/0.2774, allocations: 8 kB / 1.243 GB, free: 6.191 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004692/0.2779, allocations: 198 kB / 1.244 GB, free: 6 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.001704/0.2796, allocations: 1.485 MB / 1.245 GB, free: 4.387 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004243/0.28, allocations: 154.6 kB / 1.245 GB, free: 4.227 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001755/0.2802, allocations: 64.81 kB / 1.245 GB, free: 4.16 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001164/0.2804, allocations: 89.11 kB / 1.245 GB, free: 4.055 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002908/0.2807, allocations: 123.3 kB / 1.246 GB, free: 3.922 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=15): time 1.593e-06/0.2807, allocations: 0 / 1.246 GB, free: 3.922 MB / 0.9981 GB Notification: Performance of matching and sorting (n=15): time 0.0006136/0.2813, allocations: 247.9 kB / 1.246 GB, free: 3.676 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.21e-05/0.2813, allocations: 55.41 kB / 1.246 GB, free: 3.609 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003386/0.2817, allocations: 345.7 kB / 1.246 GB, free: 3.27 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 2.676e-05/0.2817, allocations: 33.64 kB / 1.246 GB, free: 3.23 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.000141/0.2819, allocations: 228 kB / 1.246 GB, free: 3.004 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 4.323e-05/0.2819, allocations: 47.59 kB / 1.246 GB, free: 2.957 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.461e-05/0.282, allocations: 61.66 kB / 1.246 GB, free: 2.891 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001114/0.2821, allocations: 346.7 kB / 1.247 GB, free: 2.543 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001999/0.2823, allocations: 71.95 kB / 1.247 GB, free: 2.473 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002299/0.2826, allocations: 145.9 kB / 1.247 GB, free: 2.297 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004165/0.283, allocations: 256.5 kB / 1.247 GB, free: 2.008 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.283, allocations: 0 / 1.247 GB, free: 2.008 MB / 0.9981 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005887/0.2836, allocations: 313 kB / 1.248 GB, free: 1.691 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 2.892e-05/0.2836, allocations: 37.7 kB / 1.248 GB, free: 1.648 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.583e-06/0.2836, allocations: 4 kB / 1.248 GB, free: 1.645 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.551e-05/0.2837, allocations: 11.92 kB / 1.248 GB, free: 1.633 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002298/0.2839, allocations: 55.91 kB / 1.248 GB, free: 1.578 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.087e-06/0.2839, allocations: 4 kB / 1.248 GB, free: 1.574 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002613/0.2842, allocations: 35.77 kB / 1.248 GB, free: 1.539 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.378e-05/0.2842, allocations: 12 kB / 1.248 GB, free: 1.527 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.0001476/0.2844, allocations: 166.2 kB / 1.248 GB, free: 1.355 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.067e-05/0.2844, allocations: 31.81 kB / 1.248 GB, free: 1.324 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004564/0.2849, allocations: 196.4 kB / 1.248 GB, free: 1.121 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.037e-06/0.2849, allocations: 3.938 kB / 1.248 GB, free: 1.117 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.506e-06/0.2849, allocations: 0 / 1.248 GB, free: 1.117 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0004661/0.2854, allocations: 483.7 kB / 1.249 GB, free: 0.5586 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003837/0.2858, allocations: 361.4 kB / 1.249 GB, free: 160 kB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.2858, allocations: 0 / 1.249 GB, free: 160 kB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001742/0.286, allocations: 31.92 kB / 1.249 GB, free: 128 kB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.264e-06/0.286, allocations: 0 / 1.249 GB, free: 128 kB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.56e-05/0.286, allocations: 4 kB / 1.249 GB, free: 124 kB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.035e-06/0.286, allocations: 3.938 kB / 1.249 GB, free: 120 kB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/0.286, allocations: 7.984 kB / 1.249 GB, free: 112 kB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.4667/0.7527, allocations: 276.5 kB / 1.249 GB, free: 31.27 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000144/0.7529, allocations: 124.9 kB / 1.249 GB, free: 31.18 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.443e-05/0.753, allocations: 2.344 kB / 1.249 GB, free: 31.18 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002608/0.7532, allocations: 23.94 kB / 1.249 GB, free: 31.18 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.229e-05/0.7533, allocations: 16.52 kB / 1.249 GB, free: 31.18 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.304e-05/0.7533, allocations: 9.859 kB / 1.249 GB, free: 31.18 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0002617/0.7536, allocations: 247.9 kB / 1.25 GB, free: 31.1 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.5e-07/0.7536, allocations: 1.5 kB / 1.25 GB, free: 31.1 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0004563/0.7541, allocations: 128.5 kB / 1.25 GB, free: 31.1 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.0009806/0.7551, allocations: 0.9002 MB / 1.251 GB, free: 30.51 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0004834/0.7556, allocations: 238.2 kB / 1.251 GB, free: 30.45 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.7556, allocations: 0 / 1.251 GB, free: 30.45 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001858/0.7558, allocations: 70.73 kB / 1.251 GB, free: 30.45 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009793/0.7568, allocations: 218 kB / 1.251 GB, free: 30.45 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003685/0.7605, allocations: 3.069 MB / 1.254 GB, free: 28.93 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002053/0.7607, allocations: 0.7932 MB / 1.255 GB, free: 28.23 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0002314/0.7609, allocations: 66.72 kB / 1.255 GB, free: 28.21 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001506/0.7611, allocations: 114.8 kB / 1.255 GB, free: 28.2 MB / 0.9981 GB Notification: Performance of SimCode: time 2.8e-07/0.7611, allocations: 0.8438 kB / 1.255 GB, free: 28.2 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02695/0.788, allocations: 10.21 MB / 1.265 GB, free: 27.2 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.511/8.299, allocations: 8.062 kB / 1.265 GB, free: 27.2 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