Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_Buildings_Fluid_Storage_Examples_ExpansionVessel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Storage.Examples.ExpansionVessel,fileNamePrefix="Buildings_10_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.007321/0.007321, allocations: 97.62 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.001721/0.001721, allocations: 201 kB / 16.68 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.373/1.373, allocations: 222.9 MB / 240.4 MB, free: 4.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.534/2.534, allocations: 437.1 MB / 0.7105 GB, free: 5 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001202/0.001202, allocations: 59.91 kB / 1.018 GB, free: 15.08 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2449/0.2461, allocations: 151.6 MB / 1.166 GB, free: 7.328 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Examples.ExpansionVessel): time 0.0142/0.2603, allocations: 14.44 MB / 1.18 GB, free: 8.82 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.004509/0.2649, allocations: 3.65 MB / 1.184 GB, free: 5.16 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002448/0.2651, allocations: 15.94 kB / 1.184 GB, free: 5.145 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.0005193/0.2657, allocations: 210.7 kB / 1.184 GB, free: 4.938 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.001124/0.2668, allocations: 0.6064 MB / 1.185 GB, free: 4.328 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007908/0.2676, allocations: 402.7 kB / 1.185 GB, free: 3.938 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.001105/0.2687, allocations: 1.091 MB / 1.186 GB, free: 2.844 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003938/0.2691, allocations: 313.3 kB / 1.186 GB, free: 2.531 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007725/0.2699, allocations: 407.7 kB / 1.187 GB, free: 2.133 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003521/0.2703, allocations: 302.6 kB / 1.187 GB, free: 1.836 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 5.952e-05/0.2703, allocations: 32 kB / 1.187 GB, free: 1.805 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004703/0.2708, allocations: 259.5 kB / 1.187 GB, free: 1.551 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.000104/0.2709, allocations: 95.72 kB / 1.187 GB, free: 1.457 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.000206/0.2711, allocations: 214.9 kB / 1.188 GB, free: 1.246 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0007329/0.2719, allocations: 0.5993 MB / 1.188 GB, free: 0.6445 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 2.735e-06/0.2719, allocations: 0 / 1.188 GB, free: 0.6445 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.403e-06/0.2719, allocations: 0 / 1.188 GB, free: 0.6445 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 6.452e-06/0.2719, allocations: 0 / 1.188 GB, free: 0.6445 MB / 0.9356 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.001096/0.273, allocations: 0.7569 MB / 1.189 GB, free: 15.83 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.416e-05/0.2731, allocations: 16.02 kB / 1.189 GB, free: 15.82 MB / 0.9512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.953e-05/0.2731, allocations: 54.73 kB / 1.189 GB, free: 15.75 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001715/0.2733, allocations: 52.66 kB / 1.189 GB, free: 15.7 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006835/0.274, allocations: 471.9 kB / 1.19 GB, free: 15.2 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.178e-05/0.274, allocations: 28.62 kB / 1.19 GB, free: 15.17 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.165e-05/0.2741, allocations: 28 kB / 1.19 GB, free: 15.14 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000544/0.2746, allocations: 310.2 kB / 1.19 GB, free: 14.82 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.523e-05/0.2747, allocations: 0 / 1.19 GB, free: 14.82 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.826e-05/0.2747, allocations: 11.98 kB / 1.19 GB, free: 14.81 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.44e-05/0.2747, allocations: 12 kB / 1.19 GB, free: 14.8 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004486/0.2752, allocations: 190.1 kB / 1.19 GB, free: 14.61 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.001681/0.2769, allocations: 1.485 MB / 1.192 GB, free: 13 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000421/0.2773, allocations: 158.6 kB / 1.192 GB, free: 12.84 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001665/0.2775, allocations: 60.83 kB / 1.192 GB, free: 12.77 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001308/0.2776, allocations: 97.09 kB / 1.192 GB, free: 12.66 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002766/0.2779, allocations: 122 kB / 1.192 GB, free: 12.53 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=15): time 1.663e-06/0.2779, allocations: 0 / 1.192 GB, free: 12.53 MB / 0.9512 GB Notification: Performance of matching and sorting (n=15): time 0.0006089/0.2785, allocations: 241.2 kB / 1.192 GB, free: 12.29 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.11e-05/0.2786, allocations: 59.41 kB / 1.192 GB, free: 12.22 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003413/0.2789, allocations: 357.6 kB / 1.193 GB, free: 11.86 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 2.292e-05/0.279, allocations: 25.7 kB / 1.193 GB, free: 11.83 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001445/0.2791, allocations: 216.1 kB / 1.193 GB, free: 11.62 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 4.653e-05/0.2792, allocations: 59.52 kB / 1.193 GB, free: 11.56 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.866e-05/0.2793, allocations: 57.66 kB / 1.193 GB, free: 11.5 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001138/0.2794, allocations: 342.8 kB / 1.193 GB, free: 11.15 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001902/0.2796, allocations: 71.95 kB / 1.193 GB, free: 11.08 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002346/0.2798, allocations: 154.3 kB / 1.193 GB, free: 10.9 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004232/0.2803, allocations: 249 kB / 1.194 GB, free: 10.62 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/0.2803, allocations: 0 / 1.194 GB, free: 10.62 MB / 0.9512 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005876/0.2809, allocations: 311.1 kB / 1.194 GB, free: 10.3 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 3.075e-05/0.2809, allocations: 35.42 kB / 1.194 GB, free: 10.26 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.594e-06/0.2809, allocations: 4 kB / 1.194 GB, free: 10.26 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.431e-05/0.2809, allocations: 7.938 kB / 1.194 GB, free: 10.25 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002296/0.2812, allocations: 55.89 kB / 1.194 GB, free: 10.2 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.845e-06/0.2812, allocations: 4 kB / 1.194 GB, free: 10.19 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002425/0.2814, allocations: 31.83 kB / 1.194 GB, free: 10.16 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.575e-05/0.2815, allocations: 16 kB / 1.194 GB, free: 10.14 MB / 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.0001429/0.2816, allocations: 161.8 kB / 1.194 GB, free: 9.977 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.288e-05/0.2817, allocations: 39.75 kB / 1.194 GB, free: 9.938 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004476/0.2821, allocations: 193.6 kB / 1.195 GB, free: 9.742 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.088e-06/0.2822, allocations: 3.938 kB / 1.195 GB, free: 9.738 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/0.2822, allocations: 3.984 kB / 1.195 GB, free: 9.734 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0004677/0.2826, allocations: 479.7 kB / 1.195 GB, free: 9.18 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004009/0.283, allocations: 357.4 kB / 1.195 GB, free: 8.781 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.985e-06/0.2831, allocations: 4 kB / 1.195 GB, free: 8.777 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001752/0.2832, allocations: 27.97 kB / 1.195 GB, free: 8.75 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.208e-06/0.2833, allocations: 4 kB / 1.195 GB, free: 8.746 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.634e-05/0.2833, allocations: 4 kB / 1.195 GB, free: 8.742 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.439e-06/0.2833, allocations: 3.938 kB / 1.195 GB, free: 8.738 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.2833, allocations: 3.938 kB / 1.195 GB, free: 8.734 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006079/0.2839, allocations: 283.3 kB / 1.196 GB, free: 8.441 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001376/0.2841, allocations: 129 kB / 1.196 GB, free: 8.297 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.37e-05/0.2841, allocations: 7.938 kB / 1.196 GB, free: 8.289 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002313/0.2843, allocations: 27.89 kB / 1.196 GB, free: 8.262 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.657e-05/0.2844, allocations: 15.98 kB / 1.196 GB, free: 8.246 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.84e-05/0.2844, allocations: 4 kB / 1.196 GB, free: 8.242 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.00024/0.2847, allocations: 251.2 kB / 1.196 GB, free: 8 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.41e-07/0.2847, allocations: 4 kB / 1.196 GB, free: 7.996 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0003885/0.2851, allocations: 123.7 kB / 1.196 GB, free: 7.875 MB / 0.9512 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.001042/0.2861, allocations: 0.9049 MB / 1.197 GB, free: 6.938 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0004716/0.2866, allocations: 233.5 kB / 1.197 GB, free: 6.699 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 4.388e-06/0.2866, allocations: 3.984 kB / 1.197 GB, free: 6.695 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0001861/0.2868, allocations: 75 kB / 1.197 GB, free: 6.625 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000919/0.2877, allocations: 208 kB / 1.198 GB, free: 6.426 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003976/0.2917, allocations: 3.073 MB / 1.201 GB, free: 3.215 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003537/0.2921, allocations: 0.7918 MB / 1.201 GB, free: 2.398 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 0.0002108/0.2923, allocations: 67.19 kB / 1.201 GB, free: 2.332 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000159/0.2925, allocations: 119.4 kB / 1.202 GB, free: 2.219 MB / 0.9512 GB Notification: Performance of SimCode: time 3.31e-07/0.2925, allocations: 0 / 1.202 GB, free: 2.219 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02751/0.32, allocations: 10.19 MB / 1.211 GB, free: 8.223 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.83/8.15, allocations: 21.31 kB / 1.211 GB, free: 8.207 MB / 0.9669 GB (rm -f Buildings_10_Buildings.Fluid.Storage.Examples.ExpansionVessel.pipe ; mkfifo Buildings_10_Buildings.Fluid.Storage.Examples.ExpansionVessel.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Storage.Examples.ExpansionVessel.pipe >> ../files/Buildings_10_Buildings.Fluid.Storage.Examples.ExpansionVessel.sim & python3 -m fmpy simulate --output-file Buildings_10_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_10_Buildings_Fluid_Storage_Examples_ExpansionVessel.fmu > Buildings_10_Buildings.Fluid.Storage.Examples.ExpansionVessel.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.Storage.Examples.ExpansionVessel_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_Storage_Examples_ExpansionVessel.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.Storage.Examples.ExpansionVessel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches