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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.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: translateModel(Buildings.Fluid.Storage.Examples.ExpansionVessel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|vol.T|expVes.port_a.p",fileNamePrefix="Buildings_latest_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_latest_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.009216/0.009216, allocations: 97.92 kB / 15.73 MB, free: 6.062 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.00189/0.00189, allocations: 194.1 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.516/1.516, allocations: 222.9 MB / 240.4 MB, free: 4.168 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.819/2.819, allocations: 472.6 MB / 0.7453 GB, free: 4.566 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001225/0.001225, allocations: 67.84 kB / 1.069 GB, free: 9.215 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3764/0.3776, allocations: 159.9 MB / 1.226 GB, free: 9.203 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Examples.ExpansionVessel): time 0.01541/0.3931, allocations: 14.46 MB / 1.24 GB, free: 10.69 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.005483/0.3986, allocations: 3.646 MB / 1.243 GB, free: 7.035 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005881/0.3992, allocations: 19.88 kB / 1.243 GB, free: 7.016 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.000683/0.4, allocations: 202.7 kB / 1.243 GB, free: 6.816 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.00149/0.4015, allocations: 0.5869 MB / 1.244 GB, free: 6.227 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.000912/0.4024, allocations: 394.1 kB / 1.244 GB, free: 5.844 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.001286/0.4037, allocations: 1.079 MB / 1.245 GB, free: 4.758 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004547/0.4042, allocations: 328.5 kB / 1.246 GB, free: 4.434 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001013/0.4052, allocations: 385.2 kB / 1.246 GB, free: 4.059 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004195/0.4056, allocations: 306.6 kB / 1.246 GB, free: 3.758 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 5.929e-05/0.4057, allocations: 32 kB / 1.246 GB, free: 3.727 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005776/0.4063, allocations: 267.5 kB / 1.247 GB, free: 3.465 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001134/0.4064, allocations: 95.66 kB / 1.247 GB, free: 3.371 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.000221/0.4066, allocations: 211 kB / 1.247 GB, free: 3.164 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0008708/0.4075, allocations: 0.5916 MB / 1.248 GB, free: 2.57 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 4.628e-06/0.4075, allocations: 4 kB / 1.248 GB, free: 2.566 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.523e-06/0.4075, allocations: 0 / 1.248 GB, free: 2.566 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 8.927e-06/0.4075, allocations: 0 / 1.248 GB, free: 2.566 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.001176/0.4087, allocations: 0.7491 MB / 1.248 GB, free: 1.758 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 4.261e-05/0.4088, allocations: 8.031 kB / 1.248 GB, free: 1.75 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002389/0.409, allocations: 56.64 kB / 1.248 GB, free: 1.695 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007558/0.4098, allocations: 467.9 kB / 1.249 GB, free: 1.199 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3e-05/0.4098, allocations: 24.94 kB / 1.249 GB, free: 1.176 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.714e-05/0.4099, allocations: 35.88 kB / 1.249 GB, free: 1.141 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005811/0.4105, allocations: 306.2 kB / 1.249 GB, free: 0.8242 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.708e-05/0.4105, allocations: 0 / 1.249 GB, free: 0.8242 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.365e-05/0.4105, allocations: 12 kB / 1.249 GB, free: 0.8125 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.241e-05/0.4106, allocations: 12 kB / 1.249 GB, free: 0.8008 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004754/0.411, allocations: 194.1 kB / 1.249 GB, free: 0.6133 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.7241/1.135, allocations: 1.478 MB / 1.251 GB, free: 27.83 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004693/1.136, allocations: 154.8 kB / 1.251 GB, free: 27.81 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001771/1.136, allocations: 69.45 kB / 1.251 GB, free: 27.8 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001251/1.136, allocations: 86.22 kB / 1.251 GB, free: 27.71 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003138/1.136, allocations: 126.1 kB / 1.251 GB, free: 27.66 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=15): time 2.315e-06/1.136, allocations: 3.469 kB / 1.251 GB, free: 27.66 MB / 0.9981 GB Notification: Performance of matching and sorting (n=15): time 0.0007056/1.137, allocations: 234.6 kB / 1.251 GB, free: 27.63 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.142e-05/1.137, allocations: 55.83 kB / 1.252 GB, free: 27.57 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004281/1.138, allocations: 350.8 kB / 1.252 GB, free: 27.45 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 2.292e-05/1.138, allocations: 31.77 kB / 1.252 GB, free: 27.42 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001413/1.138, allocations: 219 kB / 1.252 GB, free: 27.32 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 4.582e-05/1.138, allocations: 58.03 kB / 1.252 GB, free: 27.29 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.408e-05/1.138, allocations: 55.36 kB / 1.252 GB, free: 27.27 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 7.579e-05/1.138, allocations: 341.8 kB / 1.253 GB, free: 26.96 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002119/1.138, allocations: 73.58 kB / 1.253 GB, free: 26.96 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002294/1.138, allocations: 146.4 kB / 1.253 GB, free: 26.87 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004107/1.139, allocations: 250.5 kB / 1.253 GB, free: 26.75 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.827e-06/1.139, allocations: 2.969 kB / 1.253 GB, free: 26.75 MB / 0.9981 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0006118/1.139, allocations: 313.6 kB / 1.253 GB, free: 26.67 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 3.609e-05/1.139, allocations: 37.11 kB / 1.253 GB, free: 26.64 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.965e-06/1.139, allocations: 3.359 kB / 1.253 GB, free: 26.64 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.882e-05/1.14, allocations: 9.031 kB / 1.253 GB, free: 26.64 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002328/1.14, allocations: 55.98 kB / 1.253 GB, free: 26.63 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.131e-05/1.14, allocations: 10 kB / 1.253 GB, free: 26.63 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002588/1.14, allocations: 37.67 kB / 1.253 GB, free: 26.62 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.917e-05/1.14, allocations: 13.7 kB / 1.253 GB, free: 26.62 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.0001429/1.14, allocations: 160.4 kB / 1.254 GB, free: 26.5 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.534e-05/1.14, allocations: 35.7 kB / 1.254 GB, free: 26.48 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004848/1.141, allocations: 193.3 kB / 1.254 GB, free: 26.44 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.639e-06/1.141, allocations: 1.719 kB / 1.254 GB, free: 26.44 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.559e-06/1.141, allocations: 3.969 kB / 1.254 GB, free: 26.44 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0004388/1.141, allocations: 495.5 kB / 1.254 GB, free: 26 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004499/1.142, allocations: 352.9 kB / 1.255 GB, free: 25.81 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.384e-06/1.142, allocations: 1.125 kB / 1.255 GB, free: 25.81 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001874/1.142, allocations: 29.16 kB / 1.255 GB, free: 25.81 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.248e-06/1.142, allocations: 2.016 kB / 1.255 GB, free: 25.81 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.79e-05/1.142, allocations: 8.812 kB / 1.255 GB, free: 25.81 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.376e-06/1.142, allocations: 2.312 kB / 1.255 GB, free: 25.81 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/1.142, allocations: 0 / 1.255 GB, free: 25.81 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006354/1.143, allocations: 288.9 kB / 1.255 GB, free: 25.72 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001102/1.143, allocations: 128.6 kB / 1.255 GB, free: 25.61 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.042e-05/1.143, allocations: 9.938 kB / 1.255 GB, free: 25.61 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002308/1.143, allocations: 12.95 kB / 1.255 GB, free: 25.61 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.014e-05/1.143, allocations: 20.05 kB / 1.255 GB, free: 25.61 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.305e-05/1.143, allocations: 6.266 kB / 1.255 GB, free: 25.61 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0002668/1.143, allocations: 249.7 kB / 1.255 GB, free: 25.53 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.41e-07/1.143, allocations: 0 / 1.255 GB, free: 25.53 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0004831/1.144, allocations: 127.2 kB / 1.255 GB, free: 25.52 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.0003771/1.144, allocations: 196.8 kB / 1.256 GB, free: 25.43 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.000571/1.145, allocations: 230.5 kB / 1.256 GB, free: 25.36 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/1.145, allocations: 0.7812 kB / 1.256 GB, free: 25.36 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002155/1.145, allocations: 70.09 kB / 1.256 GB, free: 25.36 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001015/1.146, allocations: 209.2 kB / 1.256 GB, free: 25.35 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001352/1.147, allocations: 0.7527 MB / 1.257 GB, free: 24.97 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002338/1.148, allocations: 0.7873 MB / 1.258 GB, free: 24.27 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.000267/1.148, allocations: 62 kB / 1.258 GB, free: 24.25 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.53e-05/1.148, allocations: 41.53 kB / 1.258 GB, free: 24.24 MB / 0.9981 GB Notification: Performance of SimCode: time 2.31e-07/1.148, allocations: 0 / 1.258 GB, free: 24.24 MB / 0.9981 GB Notification: Performance of Templates: time 0.01282/1.161, allocations: 7.187 MB / 1.265 GB, free: 23.67 MB / 0.9981 GB make -j1 -f Buildings_latest_Buildings.Fluid.Storage.Examples.ExpansionVessel.makefile (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 & ./Buildings_latest_Buildings.Fluid.Storage.Examples.ExpansionVessel -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Storage.Examples.ExpansionVessel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches