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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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: translateModel(Buildings.Fluid.Storage.Examples.ExpansionVessel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|vol.T|expVes.port_a.p",fileNamePrefix="Buildings_10_Buildings.Fluid.Storage.Examples.ExpansionVessel") translateModel(Buildings.Fluid.Storage.Examples.ExpansionVessel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|vol.T|expVes.port_a.p",fileNamePrefix="Buildings_10_Buildings.Fluid.Storage.Examples.ExpansionVessel") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008622/0.0008621, allocations: 91.92 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00123/0.00123, allocations: 180.8 kB / 16.92 MB, free: 6.652 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.41/1.41, allocations: 223.3 MB / 241 MB, free: 5.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.661/2.661, allocations: 437.8 MB / 0.7128 GB, free: 6.961 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.00036/0.0003602, allocations: 8.234 kB / 0.8735 GB, free: 3.332 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7731/0.7734, allocations: 153.8 MB / 1.024 GB, free: 15.88 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Examples.ExpansionVessel): time 0.01635/0.7898, allocations: 13.89 MB / 1.037 GB, free: 1.934 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.005698/0.7956, allocations: 3.622 MB / 1.041 GB, free: 14.3 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007482/0.7964, allocations: 15.88 kB / 1.041 GB, free: 14.29 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.0007683/0.7972, allocations: 179 kB / 1.041 GB, free: 14.11 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.001837/0.799, allocations: 0.5444 MB / 1.042 GB, free: 13.56 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.001063/0.8001, allocations: 347 kB / 1.042 GB, free: 13.23 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.001952/0.8021, allocations: 1.453 MB / 1.043 GB, free: 11.77 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005779/0.8027, allocations: 264.4 kB / 1.044 GB, free: 11.51 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007228/0.8034, allocations: 314.5 kB / 1.044 GB, free: 11.2 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005781/0.804, allocations: 298.6 kB / 1.044 GB, free: 10.91 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 7.386e-05/0.8041, allocations: 12 kB / 1.044 GB, free: 10.89 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00065/0.8047, allocations: 247.5 kB / 1.044 GB, free: 10.65 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.0001282/0.8049, allocations: 75.61 kB / 1.044 GB, free: 10.58 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.0003078/0.8052, allocations: 212.8 kB / 1.045 GB, free: 10.36 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0006454/0.8058, allocations: 444.8 kB / 1.045 GB, free: 9.93 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.8058, allocations: 0 / 1.045 GB, free: 9.93 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.743e-06/0.8059, allocations: 0 / 1.045 GB, free: 9.93 MB / 0.795 GB Notification: Performance of Transformations before backend: time 1.593e-05/0.8059, allocations: 4 kB / 1.045 GB, free: 9.926 MB / 0.795 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.001322/0.8072, allocations: 0.6718 MB / 1.046 GB, free: 9.199 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 4.423e-05/0.8073, allocations: 8.031 kB / 1.046 GB, free: 9.191 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002477/0.8075, allocations: 52.41 kB / 1.046 GB, free: 9.141 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000862/0.8084, allocations: 471.8 kB / 1.046 GB, free: 8.641 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.476e-05/0.8084, allocations: 32.69 kB / 1.046 GB, free: 8.605 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.819e-05/0.8085, allocations: 27.94 kB / 1.046 GB, free: 8.578 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000602/0.8091, allocations: 314.2 kB / 1.047 GB, free: 8.254 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.676e-05/0.8091, allocations: 0 / 1.047 GB, free: 8.254 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.469e-05/0.8092, allocations: 16 kB / 1.047 GB, free: 8.238 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.981e-05/0.8092, allocations: 8 kB / 1.047 GB, free: 8.23 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005052/0.8097, allocations: 210 kB / 1.047 GB, free: 8.027 MB / 0.795 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.001921/0.8116, allocations: 1.477 MB / 1.048 GB, free: 6.422 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000446/0.8121, allocations: 170.6 kB / 1.048 GB, free: 6.246 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001833/0.8123, allocations: 72.81 kB / 1.048 GB, free: 6.172 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001884/0.8125, allocations: 93.09 kB / 1.049 GB, free: 6.062 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003007/0.8128, allocations: 133.5 kB / 1.049 GB, free: 5.922 MB / 0.795 GB Notification: Performance of pre-optimization done (n=15): time 1.513e-06/0.8128, allocations: 0 / 1.049 GB, free: 5.922 MB / 0.795 GB Notification: Performance of matching and sorting (n=15): time 0.0006698/0.8135, allocations: 253.1 kB / 1.049 GB, free: 5.668 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.469e-05/0.8136, allocations: 51.41 kB / 1.049 GB, free: 5.605 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003668/0.8139, allocations: 337.6 kB / 1.049 GB, free: 5.266 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 3.183e-05/0.814, allocations: 37.64 kB / 1.049 GB, free: 5.223 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001819/0.8142, allocations: 215.8 kB / 1.05 GB, free: 5.004 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 5.311e-05/0.8142, allocations: 51.3 kB / 1.05 GB, free: 4.953 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.452e-05/0.8143, allocations: 29.7 kB / 1.05 GB, free: 4.918 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001305/0.8144, allocations: 346.8 kB / 1.05 GB, free: 4.57 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001956/0.8146, allocations: 71.89 kB / 1.05 GB, free: 4.5 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002317/0.8149, allocations: 157.3 kB / 1.05 GB, free: 4.312 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004411/0.8153, allocations: 264.6 kB / 1.05 GB, free: 4.016 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.8153, allocations: 0 / 1.05 GB, free: 4.016 MB / 0.795 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0006201/0.816, allocations: 326.5 kB / 1.051 GB, free: 3.684 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 3.795e-05/0.816, allocations: 31.58 kB / 1.051 GB, free: 3.648 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.393e-06/0.816, allocations: 4 kB / 1.051 GB, free: 3.645 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.883e-05/0.816, allocations: 12.25 kB / 1.051 GB, free: 3.633 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002279/0.8163, allocations: 63.89 kB / 1.051 GB, free: 3.57 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.789e-06/0.8163, allocations: 4 kB / 1.051 GB, free: 3.566 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002993/0.8166, allocations: 39.77 kB / 1.051 GB, free: 3.527 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.813e-05/0.8166, allocations: 8 kB / 1.051 GB, free: 3.52 MB / 0.795 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.000178/0.8168, allocations: 161.8 kB / 1.051 GB, free: 3.352 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.437e-05/0.8169, allocations: 31.62 kB / 1.051 GB, free: 3.32 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000471/0.8174, allocations: 210.6 kB / 1.051 GB, free: 3.113 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.161e-06/0.8174, allocations: 7.938 kB / 1.051 GB, free: 3.105 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.643e-06/0.8174, allocations: 4 kB / 1.051 GB, free: 3.102 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0004938/0.8179, allocations: 487.8 kB / 1.052 GB, free: 2.539 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000489/0.8184, allocations: 353.4 kB / 1.052 GB, free: 2.145 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.316e-06/0.8184, allocations: 0 / 1.052 GB, free: 2.145 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001737/0.8186, allocations: 43.91 kB / 1.052 GB, free: 2.102 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.589e-06/0.8186, allocations: 0 / 1.052 GB, free: 2.102 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.837e-05/0.8186, allocations: 4 kB / 1.052 GB, free: 2.098 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.827e-06/0.8186, allocations: 3.938 kB / 1.052 GB, free: 2.094 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.8186, allocations: 0 / 1.052 GB, free: 2.094 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006234/0.8193, allocations: 300.6 kB / 1.052 GB, free: 1.781 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001389/0.8194, allocations: 128.7 kB / 1.053 GB, free: 1.637 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.84e-05/0.8195, allocations: 4 kB / 1.053 GB, free: 1.633 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002449/0.8197, allocations: 35.78 kB / 1.053 GB, free: 1.598 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.191e-05/0.8198, allocations: 15.98 kB / 1.053 GB, free: 1.582 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.503e-05/0.8198, allocations: 15.98 kB / 1.053 GB, free: 1.566 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0002329/0.8201, allocations: 239.1 kB / 1.053 GB, free: 1.332 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.1e-07/0.8201, allocations: 0 / 1.053 GB, free: 1.332 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0004467/0.8205, allocations: 116 kB / 1.053 GB, free: 1.219 MB / 0.795 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.0003509/0.8209, allocations: 187.1 kB / 1.053 GB, free: 1.027 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.000511/0.8214, allocations: 247.4 kB / 1.053 GB, free: 0.7773 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.716e-06/0.8214, allocations: 0 / 1.053 GB, free: 0.7773 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0001901/0.8216, allocations: 75.89 kB / 1.053 GB, free: 0.7031 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001058/0.8227, allocations: 195.1 kB / 1.054 GB, free: 0.5156 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001551/0.8242, allocations: 0.9561 MB / 1.055 GB, free: 15.52 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003571/0.8246, allocations: 0.796 MB / 1.055 GB, free: 14.7 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001012/0.8247, allocations: 31.44 kB / 1.055 GB, free: 14.67 MB / 0.8106 GB Notification: Performance of SimCode: time 2.21e-07/0.8247, allocations: 0 / 1.055 GB, free: 14.67 MB / 0.8106 GB Notification: Performance of Templates: time 0.01005/0.8348, allocations: 5.905 MB / 1.061 GB, free: 8.816 MB / 0.8106 GB make -j1 -f Buildings_10_Buildings.Fluid.Storage.Examples.ExpansionVessel.makefile (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 & ./Buildings_10_Buildings.Fluid.Storage.Examples.ExpansionVessel -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.Storage.Examples.ExpansionVessel.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.Storage.Examples.ExpansionVessel_res.mat","/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