Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_Buildings_Fluid_Storage_Examples_ExpansionVessel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Storage.Examples.ExpansionVessel,fileNamePrefix="Buildings_9_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.008901/0.008901, allocations: 102.6 kB / 15.73 MB, free: 6.035 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.002511/0.002511, allocations: 193.1 kB / 16.67 MB, free: 5.973 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.399/1.399, allocations: 222.9 MB / 240.4 MB, free: 4.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.508/2.508, allocations: 390.2 MB / 0.6648 GB, free: 216 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.00129/0.00129, allocations: 63.09 kB / 0.9504 GB, free: 5.883 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3384/0.3397, allocations: 140.4 MB / 1.087 GB, free: 1.996 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Examples.ExpansionVessel): time 0.01793/0.3577, allocations: 14.43 MB / 1.102 GB, free: 3.504 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.005516/0.3633, allocations: 3.646 MB / 1.105 GB, free: 15.85 MB / 0.8731 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006795/0.364, allocations: 15.94 kB / 1.105 GB, free: 15.83 MB / 0.8731 GB Notification: Performance of NFTyping.typeComponents: time 0.0007934/0.3648, allocations: 210.7 kB / 1.105 GB, free: 15.62 MB / 0.8731 GB Notification: Performance of NFTyping.typeBindings: time 0.001745/0.3666, allocations: 0.5868 MB / 1.106 GB, free: 15.04 MB / 0.8731 GB Notification: Performance of NFTyping.typeClassSections: time 0.001078/0.3677, allocations: 400 kB / 1.106 GB, free: 14.65 MB / 0.8731 GB Notification: Performance of NFFlatten.flatten: time 0.001614/0.3693, allocations: 1.091 MB / 1.107 GB, free: 13.55 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005887/0.3699, allocations: 315.8 kB / 1.108 GB, free: 13.25 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00124/0.3712, allocations: 404.1 kB / 1.108 GB, free: 12.85 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006142/0.3718, allocations: 302.6 kB / 1.108 GB, free: 12.55 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 9.422e-05/0.3719, allocations: 35.94 kB / 1.108 GB, free: 12.52 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006702/0.3726, allocations: 255.6 kB / 1.109 GB, free: 12.27 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.0001513/0.3727, allocations: 99.61 kB / 1.109 GB, free: 12.17 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.000309/0.3731, allocations: 207 kB / 1.109 GB, free: 11.97 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.001175/0.3743, allocations: 0.5928 MB / 1.109 GB, free: 11.38 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.3743, allocations: 0 / 1.109 GB, free: 11.38 MB / 0.8731 GB Notification: Performance of FrontEnd: time 1.643e-06/0.3743, allocations: 4 kB / 1.109 GB, free: 11.37 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 1.765e-05/0.3743, allocations: 0 / 1.109 GB, free: 11.37 MB / 0.8731 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.001479/0.3758, allocations: 0.7457 MB / 1.11 GB, free: 10.57 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 4.49e-05/0.3759, allocations: 8.031 kB / 1.11 GB, free: 10.56 MB / 0.8731 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.003e-05/0.3759, allocations: 62.73 kB / 1.11 GB, free: 10.49 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002336/0.3762, allocations: 48.45 kB / 1.11 GB, free: 10.45 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008445/0.377, allocations: 467.6 kB / 1.111 GB, free: 9.949 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.316e-05/0.3771, allocations: 24.69 kB / 1.111 GB, free: 9.922 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.611e-05/0.3772, allocations: 28 kB / 1.111 GB, free: 9.895 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006129/0.3778, allocations: 310.2 kB / 1.111 GB, free: 9.57 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.846e-05/0.3778, allocations: 0 / 1.111 GB, free: 9.57 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.542e-05/0.3778, allocations: 12 kB / 1.111 GB, free: 9.559 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.181e-05/0.3779, allocations: 8 kB / 1.111 GB, free: 9.551 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005109/0.3784, allocations: 202 kB / 1.111 GB, free: 9.355 MB / 0.8731 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.002028/0.3804, allocations: 1.477 MB / 1.113 GB, free: 7.75 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004888/0.3809, allocations: 158.6 kB / 1.113 GB, free: 7.586 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002094/0.3812, allocations: 68.81 kB / 1.113 GB, free: 7.516 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001605/0.3813, allocations: 85.11 kB / 1.113 GB, free: 7.414 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003404/0.3817, allocations: 129.3 kB / 1.113 GB, free: 7.277 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=15): time 2.013e-06/0.3817, allocations: 0 / 1.113 GB, free: 7.277 MB / 0.8731 GB Notification: Performance of matching and sorting (n=15): time 0.0007565/0.3825, allocations: 237 kB / 1.113 GB, free: 7.039 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.846e-05/0.3825, allocations: 59.41 kB / 1.113 GB, free: 6.969 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004206/0.383, allocations: 349.5 kB / 1.114 GB, free: 6.617 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 3.062e-05/0.383, allocations: 33.7 kB / 1.114 GB, free: 6.578 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.000168/0.3832, allocations: 211.8 kB / 1.114 GB, free: 6.367 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 6.017e-05/0.3832, allocations: 55.2 kB / 1.114 GB, free: 6.312 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000109/0.3834, allocations: 53.69 kB / 1.114 GB, free: 6.254 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001426/0.3835, allocations: 350.8 kB / 1.114 GB, free: 5.902 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002031/0.3837, allocations: 67.95 kB / 1.115 GB, free: 5.836 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002372/0.384, allocations: 146.4 kB / 1.115 GB, free: 5.66 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004305/0.3844, allocations: 248.8 kB / 1.115 GB, free: 5.379 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.3844, allocations: 0 / 1.115 GB, free: 5.379 MB / 0.8731 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0006379/0.3851, allocations: 306.8 kB / 1.115 GB, free: 5.066 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 4.748e-05/0.3851, allocations: 41.62 kB / 1.115 GB, free: 5.02 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.171e-05/0.3851, allocations: 8 kB / 1.115 GB, free: 5.012 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.047e-05/0.3852, allocations: 11.88 kB / 1.115 GB, free: 5 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002227/0.3854, allocations: 55.91 kB / 1.115 GB, free: 4.945 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.003e-05/0.3854, allocations: 4 kB / 1.115 GB, free: 4.941 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002695/0.3857, allocations: 31.73 kB / 1.115 GB, free: 4.91 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.729e-05/0.3857, allocations: 16.19 kB / 1.115 GB, free: 4.895 MB / 0.8731 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.0001723/0.3859, allocations: 161.7 kB / 1.116 GB, free: 4.727 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.255e-05/0.386, allocations: 31.62 kB / 1.116 GB, free: 4.695 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004735/0.3865, allocations: 187.7 kB / 1.116 GB, free: 4.512 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.19e-06/0.3865, allocations: 7.938 kB / 1.116 GB, free: 4.504 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-06/0.3865, allocations: 0 / 1.116 GB, free: 4.504 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005084/0.387, allocations: 495.6 kB / 1.116 GB, free: 3.934 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004559/0.3875, allocations: 357.3 kB / 1.117 GB, free: 3.535 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.808e-06/0.3875, allocations: 0 / 1.117 GB, free: 3.535 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001654/0.3877, allocations: 27.98 kB / 1.117 GB, free: 3.508 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.266e-06/0.3877, allocations: 0 / 1.117 GB, free: 3.508 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.909e-05/0.3877, allocations: 7.984 kB / 1.117 GB, free: 3.5 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.268e-06/0.3877, allocations: 3.938 kB / 1.117 GB, free: 3.496 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.3877, allocations: 0 / 1.117 GB, free: 3.496 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006477/0.3884, allocations: 280.6 kB / 1.117 GB, free: 3.203 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001528/0.3885, allocations: 124.7 kB / 1.117 GB, free: 3.062 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.501e-05/0.3886, allocations: 11.98 kB / 1.117 GB, free: 3.051 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002322/0.3888, allocations: 15.92 kB / 1.117 GB, free: 3.035 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.354e-05/0.3889, allocations: 15.98 kB / 1.117 GB, free: 3.02 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.479e-05/0.3889, allocations: 15.98 kB / 1.117 GB, free: 3.004 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0002847/0.3892, allocations: 247.2 kB / 1.117 GB, free: 2.762 MB / 0.8731 GB Notification: Performance of sort global known variables: time 2.91e-07/0.3892, allocations: 0 / 1.117 GB, free: 2.762 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0004599/0.3897, allocations: 120 kB / 1.117 GB, free: 2.645 MB / 0.8731 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.001228/0.3909, allocations: 0.9296 MB / 1.118 GB, free: 1.688 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0005255/0.3915, allocations: 233.2 kB / 1.119 GB, free: 1.449 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.3915, allocations: 0 / 1.119 GB, free: 1.449 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0001882/0.3917, allocations: 72.52 kB / 1.119 GB, free: 1.379 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001027/0.3927, allocations: 211.8 kB / 1.119 GB, free: 1.18 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004735/0.3975, allocations: 3.055 MB / 1.122 GB, free: 13.98 MB / 0.8887 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003605/0.3979, allocations: 0.7918 MB / 1.123 GB, free: 13.16 MB / 0.8887 GB Notification: Performance of simCode: alias equations: time 0.0002957/0.3982, allocations: 63.25 kB / 1.123 GB, free: 13.1 MB / 0.8887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001842/0.3984, allocations: 115.4 kB / 1.123 GB, free: 12.98 MB / 0.8887 GB Notification: Performance of SimCode: time 4.31e-07/0.3984, allocations: 0 / 1.123 GB, free: 12.98 MB / 0.8887 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03677/0.4351, allocations: 10.36 MB / 1.133 GB, free: 2.828 MB / 0.8887 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.672/9.107, allocations: 11.98 kB / 1.133 GB, free: 2.816 MB / 0.8887 GB (rm -f Buildings_9_Buildings.Fluid.Storage.Examples.ExpansionVessel.pipe ; mkfifo Buildings_9_Buildings.Fluid.Storage.Examples.ExpansionVessel.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Storage.Examples.ExpansionVessel.pipe >> ../files/Buildings_9_Buildings.Fluid.Storage.Examples.ExpansionVessel.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.Storage.Examples.ExpansionVessel_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_Storage_Examples_ExpansionVessel_fmu --startTime=0 --stopTime=7200 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_Storage_Examples_ExpansionVessel.fmu > Buildings_9_Buildings.Fluid.Storage.Examples.ExpansionVessel.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Storage.Examples.ExpansionVessel_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Storage_Examples_ExpansionVessel.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Storage.Examples.ExpansionVessel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches