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.001575/0.001575, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.00195/0.00195, allocations: 198.1 kB / 16.14 MB, free: 6.711 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.491/1.491, allocations: 222.9 MB / 239.8 MB, free: 4.613 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.87/2.87, allocations: 472.6 MB / 0.7447 GB, free: 4.957 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00186/0.00186, allocations: 66.73 kB / 0.9114 GB, free: 33.55 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3655/0.3674, allocations: 159.9 MB / 1.068 GB, free: 10.91 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Examples.ExpansionVessel): time 0.01601/0.3835, allocations: 14.4 MB / 1.082 GB, free: 12.45 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.0054/0.3889, allocations: 3.678 MB / 1.085 GB, free: 8.758 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004921/0.3894, allocations: 19.88 kB / 1.085 GB, free: 8.738 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0006477/0.3901, allocations: 163.1 kB / 1.085 GB, free: 8.578 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.001401/0.3916, allocations: 0.5483 MB / 1.086 GB, free: 8.027 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.000917/0.3925, allocations: 350.7 kB / 1.086 GB, free: 7.688 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.00148/0.394, allocations: 1.475 MB / 1.088 GB, free: 6.211 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004218/0.3944, allocations: 264.4 kB / 1.088 GB, free: 5.949 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004463/0.3949, allocations: 326.5 kB / 1.088 GB, free: 5.629 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003431/0.3952, allocations: 302.6 kB / 1.089 GB, free: 5.332 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 4.939e-05/0.3953, allocations: 16 kB / 1.089 GB, free: 5.316 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000581/0.3959, allocations: 251.4 kB / 1.089 GB, free: 5.07 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0001072/0.396, allocations: 79.61 kB / 1.089 GB, free: 4.992 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0002109/0.3962, allocations: 199 kB / 1.089 GB, free: 4.797 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0006902/0.3969, allocations: 0.5766 MB / 1.09 GB, free: 4.219 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.949e-06/0.3969, allocations: 0 / 1.09 GB, free: 4.219 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.002e-06/0.3969, allocations: 0 / 1.09 GB, free: 4.219 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 1.095e-05/0.3969, allocations: 0 / 1.09 GB, free: 4.219 MB / 0.8419 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.001246/0.3982, allocations: 0.7418 MB / 1.09 GB, free: 3.422 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.037e-05/0.3982, allocations: 12.03 kB / 1.09 GB, free: 3.41 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002016/0.3984, allocations: 52.47 kB / 1.09 GB, free: 3.359 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007453/0.3992, allocations: 483.7 kB / 1.091 GB, free: 2.844 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.815e-05/0.3992, allocations: 28.67 kB / 1.091 GB, free: 2.816 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.098e-05/0.3993, allocations: 24 kB / 1.091 GB, free: 2.793 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007153/0.4, allocations: 314.2 kB / 1.091 GB, free: 2.469 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.434e-05/0.4001, allocations: 0 / 1.091 GB, free: 2.469 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.168e-05/0.4001, allocations: 12 kB / 1.091 GB, free: 2.457 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.488e-05/0.4002, allocations: 8 kB / 1.091 GB, free: 2.449 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005304/0.4007, allocations: 190.1 kB / 1.091 GB, free: 2.262 MB / 0.8419 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.002087/0.4028, allocations: 1.477 MB / 1.093 GB, free: 0.6562 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004702/0.4033, allocations: 162.6 kB / 1.093 GB, free: 500 kB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001803/0.4035, allocations: 60.83 kB / 1.093 GB, free: 436 kB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002444/0.4037, allocations: 93.03 kB / 1.093 GB, free: 324 kB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003124/0.404, allocations: 127.2 kB / 1.093 GB, free: 184 kB / 0.8419 GB Notification: Performance of pre-optimization done (n=15): time 1.793e-06/0.4041, allocations: 4 kB / 1.093 GB, free: 180 kB / 0.8419 GB Notification: Performance of matching and sorting (n=15): time 0.0006974/0.4048, allocations: 242.7 kB / 1.094 GB, free: 15.93 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.695e-05/0.4048, allocations: 59.41 kB / 1.094 GB, free: 15.86 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003752/0.4052, allocations: 337.6 kB / 1.094 GB, free: 15.53 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.823e-05/0.4052, allocations: 33.7 kB / 1.094 GB, free: 15.49 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001554/0.4054, allocations: 211.8 kB / 1.094 GB, free: 15.28 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 5.504e-05/0.4055, allocations: 59.23 kB / 1.094 GB, free: 15.22 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.358e-05/0.4056, allocations: 49.7 kB / 1.094 GB, free: 15.16 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001263/0.4057, allocations: 342.8 kB / 1.095 GB, free: 14.82 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002022/0.4059, allocations: 75.94 kB / 1.095 GB, free: 14.75 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002352/0.4061, allocations: 146.6 kB / 1.095 GB, free: 14.57 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004279/0.4066, allocations: 240.5 kB / 1.095 GB, free: 14.3 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.416e-06/0.4066, allocations: 0 / 1.095 GB, free: 14.3 MB / 0.8575 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0006059/0.4072, allocations: 316.4 kB / 1.095 GB, free: 13.98 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 4.171e-05/0.4073, allocations: 30.8 kB / 1.095 GB, free: 13.94 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.823e-06/0.4073, allocations: 4 kB / 1.095 GB, free: 13.94 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.056e-05/0.4073, allocations: 7.938 kB / 1.095 GB, free: 13.93 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00023/0.4075, allocations: 60.22 kB / 1.095 GB, free: 13.87 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.282e-05/0.4076, allocations: 11.94 kB / 1.095 GB, free: 13.86 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000284/0.4078, allocations: 39.66 kB / 1.095 GB, free: 13.82 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.686e-05/0.4079, allocations: 12 kB / 1.095 GB, free: 13.81 MB / 0.8575 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.000179/0.4081, allocations: 153.8 kB / 1.096 GB, free: 13.65 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.398e-05/0.4081, allocations: 31.62 kB / 1.096 GB, free: 13.62 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004869/0.4086, allocations: 194.2 kB / 1.096 GB, free: 13.43 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.035e-06/0.4086, allocations: 7.938 kB / 1.096 GB, free: 13.42 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.061e-06/0.4086, allocations: 0 / 1.096 GB, free: 13.42 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005013/0.4092, allocations: 491.6 kB / 1.096 GB, free: 12.85 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004504/0.4096, allocations: 349.3 kB / 1.097 GB, free: 12.46 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.4096, allocations: 0 / 1.097 GB, free: 12.46 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001701/0.4098, allocations: 31.98 kB / 1.097 GB, free: 12.43 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.927e-06/0.4098, allocations: 4 kB / 1.097 GB, free: 12.43 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.059e-05/0.4098, allocations: 11.92 kB / 1.097 GB, free: 12.41 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.707e-06/0.4099, allocations: 3.938 kB / 1.097 GB, free: 12.41 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.283e-06/0.4099, allocations: 0 / 1.097 GB, free: 12.41 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006264/0.4105, allocations: 282.3 kB / 1.097 GB, free: 12.12 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001321/0.4106, allocations: 124.7 kB / 1.097 GB, free: 11.98 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.339e-05/0.4107, allocations: 15.98 kB / 1.097 GB, free: 11.96 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002468/0.4109, allocations: 19.83 kB / 1.097 GB, free: 11.94 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.521e-05/0.411, allocations: 19.92 kB / 1.097 GB, free: 11.92 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.062e-05/0.4111, allocations: 7.984 kB / 1.097 GB, free: 11.91 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0002453/0.4113, allocations: 239.2 kB / 1.097 GB, free: 11.68 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.61e-07/0.4113, allocations: 0 / 1.097 GB, free: 11.68 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0004589/0.4118, allocations: 116 kB / 1.097 GB, free: 11.57 MB / 0.8575 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.0003615/0.4122, allocations: 179.2 kB / 1.098 GB, free: 11.38 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0005357/0.4127, allocations: 235.1 kB / 1.098 GB, free: 11.14 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 5.029e-06/0.4127, allocations: 0 / 1.098 GB, free: 11.14 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.000194/0.4129, allocations: 71.89 kB / 1.098 GB, free: 11.07 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009703/0.4139, allocations: 205.1 kB / 1.098 GB, free: 10.87 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001509/0.4154, allocations: 0.8515 MB / 1.099 GB, free: 9.988 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003489/0.4158, allocations: 0.7804 MB / 1.1 GB, free: 9.18 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.0002624/0.416, allocations: 75.17 kB / 1.1 GB, free: 9.109 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.429e-05/0.4161, allocations: 35.38 kB / 1.1 GB, free: 9.074 MB / 0.8575 GB Notification: Performance of SimCode: time 2.81e-07/0.4161, allocations: 4 kB / 1.1 GB, free: 9.07 MB / 0.8575 GB Notification: Performance of Templates: time 0.01171/0.4278, allocations: 6.551 MB / 1.106 GB, free: 2.602 MB / 0.8575 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