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: 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.0009956/0.0009958, allocations: 90.52 kB / 15.36 MB, free: 0.7383 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.008004/0.008005, allocations: 171.1 kB / 16.26 MB, free: 6.676 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.379/1.379, allocations: 223.3 MB / 240.3 MB, free: 5.336 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.616/2.616, allocations: 437.8 MB / 0.7121 GB, free: 6.984 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.000343/0.0003428, allocations: 12 kB / 0.8728 GB, free: 3.328 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7889/0.7893, allocations: 153.8 MB / 1.023 GB, free: 15.9 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Examples.ExpansionVessel): time 0.01852/0.8079, allocations: 13.88 MB / 1.037 GB, free: 1.957 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.005388/0.8133, allocations: 3.628 MB / 1.04 GB, free: 14.32 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005926/0.8139, allocations: 11.94 kB / 1.04 GB, free: 14.3 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.0006248/0.8146, allocations: 171.1 kB / 1.04 GB, free: 14.14 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.001515/0.8161, allocations: 0.5483 MB / 1.041 GB, free: 13.59 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009488/0.8171, allocations: 355 kB / 1.041 GB, free: 13.25 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.00207/0.8191, allocations: 1.457 MB / 1.043 GB, free: 11.79 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005429/0.8197, allocations: 260.9 kB / 1.043 GB, free: 11.53 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004893/0.8202, allocations: 314.6 kB / 1.043 GB, free: 11.22 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003936/0.8206, allocations: 294.6 kB / 1.043 GB, free: 10.93 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 4.014e-05/0.8207, allocations: 16 kB / 1.043 GB, free: 10.91 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005534/0.8212, allocations: 243.4 kB / 1.044 GB, free: 10.68 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 9.943e-05/0.8213, allocations: 75.66 kB / 1.044 GB, free: 10.6 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.0002027/0.8215, allocations: 212.7 kB / 1.044 GB, free: 10.39 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0006535/0.8222, allocations: 0.5625 MB / 1.044 GB, free: 9.824 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 2.775e-06/0.8222, allocations: 0 / 1.044 GB, free: 9.824 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.333e-06/0.8222, allocations: 0 / 1.044 GB, free: 9.824 MB / 0.795 GB Notification: Performance of Transformations before backend: time 5.931e-06/0.8222, allocations: 0 / 1.044 GB, free: 9.824 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.001139/0.8234, allocations: 0.6813 MB / 1.045 GB, free: 9.09 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 4.285e-05/0.8234, allocations: 8.031 kB / 1.045 GB, free: 9.082 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001753/0.8236, allocations: 48.45 kB / 1.045 GB, free: 9.035 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007234/0.8243, allocations: 479.8 kB / 1.046 GB, free: 8.527 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.967e-05/0.8244, allocations: 28.61 kB / 1.046 GB, free: 8.496 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.457e-05/0.8245, allocations: 28 kB / 1.046 GB, free: 8.469 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005697/0.825, allocations: 310.2 kB / 1.046 GB, free: 8.148 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.606e-05/0.8251, allocations: 3.984 kB / 1.046 GB, free: 8.145 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.525e-05/0.8251, allocations: 12 kB / 1.046 GB, free: 8.133 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.986e-05/0.8251, allocations: 8 kB / 1.046 GB, free: 8.125 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004851/0.8256, allocations: 206 kB / 1.046 GB, free: 7.926 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.001791/0.8274, allocations: 1.493 MB / 1.048 GB, free: 6.305 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004523/0.8279, allocations: 158.6 kB / 1.048 GB, free: 6.141 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000178/0.8281, allocations: 76.81 kB / 1.048 GB, free: 6.062 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001748/0.8283, allocations: 93.09 kB / 1.048 GB, free: 5.953 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002965/0.8286, allocations: 133.4 kB / 1.048 GB, free: 5.812 MB / 0.795 GB Notification: Performance of pre-optimization done (n=15): time 1.493e-06/0.8286, allocations: 0 / 1.048 GB, free: 5.812 MB / 0.795 GB Notification: Performance of matching and sorting (n=15): time 0.0006457/0.8292, allocations: 249.1 kB / 1.048 GB, free: 5.562 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.999e-05/0.8293, allocations: 63.34 kB / 1.048 GB, free: 5.488 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003374/0.8296, allocations: 333.6 kB / 1.049 GB, free: 5.152 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 3.023e-05/0.8297, allocations: 33.7 kB / 1.049 GB, free: 5.113 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001598/0.8298, allocations: 211.8 kB / 1.049 GB, free: 4.898 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 4.827e-05/0.8299, allocations: 51.3 kB / 1.049 GB, free: 4.848 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.786e-05/0.8299, allocations: 29.7 kB / 1.049 GB, free: 4.812 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001225/0.8301, allocations: 346.7 kB / 1.049 GB, free: 4.465 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000201/0.8303, allocations: 79.95 kB / 1.049 GB, free: 4.387 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002386/0.8305, allocations: 153.3 kB / 1.05 GB, free: 4.203 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004282/0.831, allocations: 252.5 kB / 1.05 GB, free: 3.918 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.149e-06/0.831, allocations: 7.984 kB / 1.05 GB, free: 3.91 MB / 0.795 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005903/0.8316, allocations: 322.5 kB / 1.05 GB, free: 3.582 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 4.416e-05/0.8316, allocations: 34.02 kB / 1.05 GB, free: 3.543 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.754e-06/0.8316, allocations: 8 kB / 1.05 GB, free: 3.535 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.647e-05/0.8317, allocations: 7.938 kB / 1.05 GB, free: 3.527 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002423/0.8319, allocations: 63.89 kB / 1.05 GB, free: 3.465 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.538e-06/0.8319, allocations: 4 kB / 1.05 GB, free: 3.461 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002769/0.8322, allocations: 35.77 kB / 1.05 GB, free: 3.426 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.482e-05/0.8322, allocations: 16 kB / 1.05 GB, free: 3.41 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.000167/0.8324, allocations: 157.8 kB / 1.05 GB, free: 3.246 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.752e-05/0.8325, allocations: 31.62 kB / 1.051 GB, free: 3.215 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004798/0.8329, allocations: 214.7 kB / 1.051 GB, free: 3.004 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.49e-06/0.833, allocations: 3.938 kB / 1.051 GB, free: 3 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.007e-06/0.833, allocations: 4 kB / 1.051 GB, free: 2.996 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005102/0.8335, allocations: 491.8 kB / 1.051 GB, free: 2.43 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004197/0.8339, allocations: 345.4 kB / 1.052 GB, free: 2.043 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.834e-06/0.8339, allocations: 0 / 1.052 GB, free: 2.043 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001727/0.8341, allocations: 51.91 kB / 1.052 GB, free: 1.992 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.447e-06/0.8341, allocations: 0 / 1.052 GB, free: 1.992 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.51e-05/0.8341, allocations: 0 / 1.052 GB, free: 1.992 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.937e-06/0.8342, allocations: 7.938 kB / 1.052 GB, free: 1.984 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.404e-06/0.8342, allocations: 3.984 kB / 1.052 GB, free: 1.98 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006337/0.8348, allocations: 300.5 kB / 1.052 GB, free: 1.668 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001229/0.8349, allocations: 128.7 kB / 1.052 GB, free: 1.523 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.568e-05/0.835, allocations: 4 kB / 1.052 GB, free: 1.52 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002522/0.8353, allocations: 39.78 kB / 1.052 GB, free: 1.48 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.111e-05/0.8353, allocations: 11.98 kB / 1.052 GB, free: 1.469 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.49e-05/0.8354, allocations: 11.98 kB / 1.052 GB, free: 1.457 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0002244/0.8356, allocations: 243.1 kB / 1.052 GB, free: 1.219 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.4e-07/0.8356, allocations: 0 / 1.052 GB, free: 1.219 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0004411/0.836, allocations: 116 kB / 1.052 GB, free: 1.105 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.0003648/0.8364, allocations: 195.1 kB / 1.053 GB, free: 0.9062 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0005344/0.837, allocations: 242.1 kB / 1.053 GB, free: 0.6602 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.865e-06/0.837, allocations: 0 / 1.053 GB, free: 0.6602 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0001961/0.8372, allocations: 71.91 kB / 1.053 GB, free: 0.5898 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001047/0.8382, allocations: 200.8 kB / 1.053 GB, free: 408 kB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001641/0.8399, allocations: 0.9308 MB / 1.054 GB, free: 15.44 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003631/0.8403, allocations: 0.7882 MB / 1.055 GB, free: 14.62 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.0002591/0.8405, allocations: 71.12 kB / 1.055 GB, free: 14.56 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.791e-05/0.8406, allocations: 39.42 kB / 1.055 GB, free: 14.52 MB / 0.8106 GB Notification: Performance of SimCode: time 3.51e-07/0.8406, allocations: 0 / 1.055 GB, free: 14.52 MB / 0.8106 GB Notification: Performance of Templates: time 0.01329/0.8539, allocations: 6.515 MB / 1.061 GB, free: 8.109 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.Storage.Examples.ExpansionVessel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches