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.001789/0.001789, allocations: 108 kB / 15.6 MB, free: 132 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.00224/0.00224, allocations: 193.1 kB / 16.53 MB, free: 6.391 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.524/1.524, allocations: 222.9 MB / 240.2 MB, free: 4.387 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.875/2.875, allocations: 437.1 MB / 0.7104 GB, free: 5.074 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.002525/0.002526, allocations: 63.89 kB / 0.8692 GB, free: 4.641 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7085/0.7111, allocations: 151.6 MB / 1.017 GB, free: 2.621 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Examples.ExpansionVessel): time 0.01922/0.7304, allocations: 14.44 MB / 1.031 GB, free: 4.117 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.006354/0.7368, allocations: 3.636 MB / 1.035 GB, free: 480 kB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006393/0.7375, allocations: 19.88 kB / 1.035 GB, free: 460 kB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0007082/0.7382, allocations: 206.7 kB / 1.035 GB, free: 252 kB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.001544/0.7398, allocations: 0.5909 MB / 1.036 GB, free: 15.65 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009633/0.7408, allocations: 394.5 kB / 1.036 GB, free: 15.27 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.001334/0.7422, allocations: 1.085 MB / 1.037 GB, free: 14.18 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004945/0.7427, allocations: 312.5 kB / 1.037 GB, free: 13.88 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001009/0.7437, allocations: 388.7 kB / 1.038 GB, free: 13.5 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004382/0.7441, allocations: 302.7 kB / 1.038 GB, free: 13.2 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 6.544e-05/0.7442, allocations: 32 kB / 1.038 GB, free: 13.17 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006171/0.7448, allocations: 259.5 kB / 1.038 GB, free: 12.91 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.0001368/0.745, allocations: 95.66 kB / 1.038 GB, free: 12.82 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.0002553/0.7452, allocations: 222.9 kB / 1.039 GB, free: 12.6 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0008923/0.7461, allocations: 0.5785 MB / 1.039 GB, free: 12.02 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 5.29e-06/0.7462, allocations: 4 kB / 1.039 GB, free: 12.02 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.684e-06/0.7462, allocations: 0 / 1.039 GB, free: 12.02 MB / 0.795 GB Notification: Performance of Transformations before backend: time 8.075e-06/0.7462, allocations: 0 / 1.039 GB, free: 12.02 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.001368/0.7476, allocations: 0.747 MB / 1.04 GB, free: 11.22 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.791e-05/0.7476, allocations: 8.031 kB / 1.04 GB, free: 11.21 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002046/0.7478, allocations: 48.45 kB / 1.04 GB, free: 11.16 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007783/0.7486, allocations: 439.8 kB / 1.04 GB, free: 10.69 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.177e-05/0.7486, allocations: 20.94 kB / 1.04 GB, free: 10.67 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.45e-05/0.7487, allocations: 31.94 kB / 1.041 GB, free: 10.64 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006298/0.7494, allocations: 306.2 kB / 1.041 GB, free: 10.32 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.922e-05/0.7494, allocations: 0 / 1.041 GB, free: 10.32 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.516e-05/0.7494, allocations: 16 kB / 1.041 GB, free: 10.3 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.528e-05/0.7495, allocations: 8 kB / 1.041 GB, free: 10.3 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005124/0.75, allocations: 198 kB / 1.041 GB, free: 10.11 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.002162/0.7521, allocations: 1.489 MB / 1.042 GB, free: 8.488 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004989/0.7527, allocations: 154.6 kB / 1.043 GB, free: 8.328 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001921/0.7529, allocations: 72.81 kB / 1.043 GB, free: 8.254 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001635/0.753, allocations: 81.11 kB / 1.043 GB, free: 8.156 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003563/0.7534, allocations: 135.2 kB / 1.043 GB, free: 8.012 MB / 0.795 GB Notification: Performance of pre-optimization done (n=15): time 1.613e-06/0.7534, allocations: 0 / 1.043 GB, free: 8.012 MB / 0.795 GB Notification: Performance of matching and sorting (n=15): time 0.0007098/0.7541, allocations: 238.5 kB / 1.043 GB, free: 7.773 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.613e-05/0.7542, allocations: 59.34 kB / 1.043 GB, free: 7.703 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004008/0.7546, allocations: 341.7 kB / 1.044 GB, free: 7.359 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 3.83e-05/0.7546, allocations: 33.7 kB / 1.044 GB, free: 7.32 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001999/0.7549, allocations: 223.6 kB / 1.044 GB, free: 7.098 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 5.805e-05/0.7549, allocations: 55.23 kB / 1.044 GB, free: 7.043 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.496e-05/0.755, allocations: 61.59 kB / 1.044 GB, free: 6.977 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001803/0.7552, allocations: 342.8 kB / 1.044 GB, free: 6.633 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002157/0.7554, allocations: 67.95 kB / 1.044 GB, free: 6.566 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000298/0.7557, allocations: 142.6 kB / 1.044 GB, free: 6.395 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004668/0.7562, allocations: 252.4 kB / 1.045 GB, free: 6.109 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.418e-06/0.7562, allocations: 4 kB / 1.045 GB, free: 6.105 MB / 0.795 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0006248/0.7569, allocations: 306.7 kB / 1.045 GB, free: 5.793 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 4.504e-05/0.7569, allocations: 41.69 kB / 1.045 GB, free: 5.746 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.662e-06/0.7569, allocations: 0 / 1.045 GB, free: 5.746 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.864e-05/0.757, allocations: 4 kB / 1.045 GB, free: 5.742 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002314/0.7572, allocations: 59.84 kB / 1.045 GB, free: 5.684 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.137e-05/0.7572, allocations: 4 kB / 1.045 GB, free: 5.68 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002602/0.7575, allocations: 39.95 kB / 1.045 GB, free: 5.641 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.727e-05/0.7575, allocations: 12 kB / 1.045 GB, free: 5.629 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.000183/0.7577, allocations: 157.8 kB / 1.045 GB, free: 5.465 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.025e-05/0.7578, allocations: 35.62 kB / 1.045 GB, free: 5.43 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004873/0.7583, allocations: 189.8 kB / 1.045 GB, free: 5.242 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.734e-06/0.7583, allocations: 7.938 kB / 1.045 GB, free: 5.234 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.879e-06/0.7583, allocations: 0 / 1.045 GB, free: 5.234 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005707/0.7589, allocations: 492.4 kB / 1.046 GB, free: 4.668 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004923/0.7594, allocations: 353.4 kB / 1.046 GB, free: 4.273 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.7594, allocations: 0 / 1.046 GB, free: 4.273 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001703/0.7596, allocations: 27.98 kB / 1.046 GB, free: 4.246 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.913e-06/0.7596, allocations: 0 / 1.046 GB, free: 4.246 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.005e-05/0.7596, allocations: 11.98 kB / 1.046 GB, free: 4.234 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.657e-06/0.7596, allocations: 3.938 kB / 1.046 GB, free: 4.23 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.61e-07/0.7596, allocations: 0 / 1.046 GB, free: 4.23 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006621/0.7603, allocations: 285.1 kB / 1.047 GB, free: 3.934 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001547/0.7604, allocations: 120.8 kB / 1.047 GB, free: 3.797 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.532e-05/0.7605, allocations: 7.984 kB / 1.047 GB, free: 3.789 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002397/0.7608, allocations: 19.92 kB / 1.047 GB, free: 3.77 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.365e-05/0.7608, allocations: 15.92 kB / 1.047 GB, free: 3.754 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.696e-05/0.7609, allocations: 19.98 kB / 1.047 GB, free: 3.734 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0002945/0.7612, allocations: 243.2 kB / 1.047 GB, free: 3.5 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.81e-07/0.7612, allocations: 3.938 kB / 1.047 GB, free: 3.496 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0005364/0.7617, allocations: 124 kB / 1.047 GB, free: 3.375 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.0004904/0.7622, allocations: 199.1 kB / 1.047 GB, free: 3.172 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0006143/0.7628, allocations: 242.7 kB / 1.048 GB, free: 2.926 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.7629, allocations: 0 / 1.048 GB, free: 2.926 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0002068/0.7631, allocations: 67.89 kB / 1.048 GB, free: 2.859 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001024/0.7641, allocations: 219.3 kB / 1.048 GB, free: 2.66 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001672/0.7658, allocations: 0.7386 MB / 1.049 GB, free: 1.891 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005366/0.7663, allocations: 0.7879 MB / 1.049 GB, free: 1.078 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0003225/0.7667, allocations: 71.17 kB / 1.049 GB, free: 1.012 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.403e-05/0.7668, allocations: 39.42 kB / 1.049 GB, free: 0.9727 MB / 0.795 GB Notification: Performance of SimCode: time 8.41e-07/0.7668, allocations: 0 / 1.049 GB, free: 0.9727 MB / 0.795 GB Notification: Performance of Templates: time 0.01541/0.7822, allocations: 7.135 MB / 1.056 GB, free: 9.953 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=400 -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