Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_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_9_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.00172/0.00172, allocations: 103.1 kB / 16.27 MB, free: 6.414 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.001815/0.001815, allocations: 191.5 kB / 17.2 MB, free: 5.953 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.344/1.344, allocations: 222.9 MB / 240.9 MB, free: 15.23 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.215/2.215, allocations: 390.3 MB / 0.6653 GB, free: 0.6914 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001367/0.001367, allocations: 67.3 kB / 0.8132 GB, free: 33.09 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.287/0.2884, allocations: 140.4 MB / 0.9503 GB, free: 8.891 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Examples.ExpansionVessel): time 0.01756/0.306, allocations: 14.44 MB / 0.9644 GB, free: 10.39 MB / 0.7481 GB Notification: Performance of NFInst.instExpressions: time 0.005532/0.3116, allocations: 3.643 MB / 0.9679 GB, free: 6.734 MB / 0.7481 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008862/0.3125, allocations: 19.88 kB / 0.9679 GB, free: 6.715 MB / 0.7481 GB Notification: Performance of NFTyping.typeComponents: time 0.0008697/0.3134, allocations: 210.7 kB / 0.9681 GB, free: 6.508 MB / 0.7481 GB Notification: Performance of NFTyping.typeBindings: time 0.001774/0.3152, allocations: 0.5791 MB / 0.9687 GB, free: 5.926 MB / 0.7481 GB Notification: Performance of NFTyping.typeClassSections: time 0.001069/0.3163, allocations: 394 kB / 0.9691 GB, free: 5.543 MB / 0.7481 GB Notification: Performance of NFFlatten.flatten: time 0.00151/0.3179, allocations: 1.081 MB / 0.9701 GB, free: 4.457 MB / 0.7481 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006005/0.3185, allocations: 316.5 kB / 0.9704 GB, free: 4.148 MB / 0.7481 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001246/0.3197, allocations: 392.8 kB / 0.9708 GB, free: 3.766 MB / 0.7481 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005936/0.3203, allocations: 298.7 kB / 0.9711 GB, free: 3.473 MB / 0.7481 GB Notification: Performance of NFPackage.collectConstants: time 0.0001295/0.3205, allocations: 36 kB / 0.9711 GB, free: 3.438 MB / 0.7481 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007115/0.3212, allocations: 259.5 kB / 0.9714 GB, free: 3.184 MB / 0.7481 GB Notification: Performance of NFScalarize.scalarize: time 0.0001685/0.3214, allocations: 99.66 kB / 0.9715 GB, free: 3.086 MB / 0.7481 GB Notification: Performance of NFVerifyModel.verify: time 0.0003487/0.3217, allocations: 211 kB / 0.9717 GB, free: 2.879 MB / 0.7481 GB Notification: Performance of NFConvertDAE.convert: time 0.00105/0.3228, allocations: 0.5883 MB / 0.9722 GB, free: 2.289 MB / 0.7481 GB Notification: Performance of FrontEnd - DAE generated: time 4.919e-06/0.3228, allocations: 0 / 0.9722 GB, free: 2.289 MB / 0.7481 GB Notification: Performance of FrontEnd: time 1.473e-06/0.3228, allocations: 0 / 0.9722 GB, free: 2.289 MB / 0.7481 GB Notification: Performance of Transformations before backend: time 2.059e-05/0.3228, allocations: 0 / 0.9722 GB, free: 2.289 MB / 0.7481 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.001452/0.3243, allocations: 0.7419 MB / 0.973 GB, free: 1.492 MB / 0.7481 GB Notification: Performance of prepare preOptimizeDAE: time 4.219e-05/0.3243, allocations: 19.97 kB / 0.973 GB, free: 1.473 MB / 0.7481 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002359/0.3246, allocations: 44.47 kB / 0.973 GB, free: 1.43 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007595/0.3253, allocations: 443.7 kB / 0.9735 GB, free: 0.9609 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.609e-05/0.3254, allocations: 16.94 kB / 0.9735 GB, free: 0.9414 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.042e-05/0.3255, allocations: 31.94 kB / 0.9735 GB, free: 0.9102 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006189/0.3261, allocations: 314.2 kB / 0.9738 GB, free: 0.582 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.701e-05/0.3261, allocations: 0 / 0.9738 GB, free: 0.582 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.385e-05/0.3262, allocations: 12 kB / 0.9738 GB, free: 0.5703 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.021e-05/0.3262, allocations: 4 kB / 0.9738 GB, free: 0.5664 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000501/0.3267, allocations: 198 kB / 0.974 GB, free: 384 kB / 0.7481 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.002089/0.3288, allocations: 1.497 MB / 0.9755 GB, free: 14.75 MB / 0.7637 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004687/0.3293, allocations: 158.6 kB / 0.9756 GB, free: 14.58 MB / 0.7637 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001758/0.3295, allocations: 68.75 kB / 0.9757 GB, free: 14.51 MB / 0.7637 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001706/0.3296, allocations: 89.09 kB / 0.9758 GB, free: 14.41 MB / 0.7637 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003172/0.33, allocations: 127.3 kB / 0.9759 GB, free: 14.27 MB / 0.7637 GB Notification: Performance of pre-optimization done (n=15): time 2.124e-06/0.33, allocations: 0 / 0.9759 GB, free: 14.27 MB / 0.7637 GB Notification: Performance of matching and sorting (n=15): time 0.0006823/0.3307, allocations: 236 kB / 0.9761 GB, free: 14.04 MB / 0.7637 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.991e-05/0.3307, allocations: 59.34 kB / 0.9762 GB, free: 13.96 MB / 0.7637 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004076/0.3311, allocations: 345.7 kB / 0.9765 GB, free: 13.62 MB / 0.7637 GB Notification: Performance of collectPreVariables (initialization): time 3.445e-05/0.3312, allocations: 29.7 kB / 0.9765 GB, free: 13.58 MB / 0.7637 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001734/0.3314, allocations: 227.6 kB / 0.9767 GB, free: 13.36 MB / 0.7637 GB Notification: Performance of collectInitialBindings (initialization): time 5.298e-05/0.3314, allocations: 47.34 kB / 0.9768 GB, free: 13.31 MB / 0.7637 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.981e-05/0.3315, allocations: 53.61 kB / 0.9768 GB, free: 13.25 MB / 0.7637 GB Notification: Performance of setup shared object (initialization): time 0.0001481/0.3317, allocations: 346.8 kB / 0.9772 GB, free: 12.9 MB / 0.7637 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002026/0.3319, allocations: 67.95 kB / 0.9772 GB, free: 12.84 MB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00025/0.3321, allocations: 154.3 kB / 0.9774 GB, free: 12.65 MB / 0.7637 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004415/0.3326, allocations: 236.9 kB / 0.9776 GB, free: 12.38 MB / 0.7637 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.126e-06/0.3326, allocations: 0 / 0.9776 GB, free: 12.38 MB / 0.7637 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0006462/0.3333, allocations: 320.7 kB / 0.9779 GB, free: 12.06 MB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 3.775e-05/0.3333, allocations: 29.7 kB / 0.9779 GB, free: 12.02 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.217e-06/0.3333, allocations: 4 kB / 0.978 GB, free: 12.02 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.871e-05/0.3333, allocations: 4 kB / 0.978 GB, free: 12.02 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002379/0.3336, allocations: 68.16 kB / 0.978 GB, free: 11.95 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.999e-06/0.3336, allocations: 4 kB / 0.978 GB, free: 11.95 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002639/0.3339, allocations: 35.67 kB / 0.9781 GB, free: 11.91 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.593e-05/0.3339, allocations: 11.98 kB / 0.9781 GB, free: 11.9 MB / 0.7637 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.000186/0.3341, allocations: 165.2 kB / 0.9782 GB, free: 11.73 MB / 0.7637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.156e-05/0.3342, allocations: 31.62 kB / 0.9783 GB, free: 11.7 MB / 0.7637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000488/0.3347, allocations: 196.5 kB / 0.9784 GB, free: 11.5 MB / 0.7637 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.522e-06/0.3347, allocations: 11.86 kB / 0.9785 GB, free: 11.48 MB / 0.7637 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/0.3347, allocations: 0 / 0.9785 GB, free: 11.48 MB / 0.7637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005128/0.3352, allocations: 491.7 kB / 0.9789 GB, free: 10.92 MB / 0.7637 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004515/0.3357, allocations: 349.4 kB / 0.9793 GB, free: 10.53 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.228e-06/0.3357, allocations: 0 / 0.9793 GB, free: 10.53 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001678/0.3359, allocations: 31.97 kB / 0.9793 GB, free: 10.5 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.537e-06/0.3359, allocations: 0 / 0.9793 GB, free: 10.5 MB / 0.7637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.694e-05/0.3359, allocations: 7.938 kB / 0.9793 GB, free: 10.49 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.06e-06/0.3359, allocations: 7.938 kB / 0.9793 GB, free: 10.48 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/0.3359, allocations: 0 / 0.9793 GB, free: 10.48 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006297/0.3366, allocations: 293.6 kB / 0.9796 GB, free: 10.18 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001413/0.3367, allocations: 128.7 kB / 0.9797 GB, free: 10.04 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.269e-05/0.3368, allocations: 4 kB / 0.9797 GB, free: 10.03 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002348/0.337, allocations: 19.92 kB / 0.9797 GB, free: 10.01 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.089e-05/0.3371, allocations: 19.97 kB / 0.9797 GB, free: 9.992 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.123e-05/0.3371, allocations: 8 kB / 0.9798 GB, free: 9.984 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.0002604/0.3374, allocations: 247.2 kB / 0.98 GB, free: 9.742 MB / 0.7637 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3374, allocations: 0 / 0.98 GB, free: 9.742 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.0004602/0.3379, allocations: 128 kB / 0.9801 GB, free: 9.617 MB / 0.7637 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.0003828/0.3382, allocations: 187.1 kB / 0.9803 GB, free: 9.426 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.0005402/0.3388, allocations: 239.1 kB / 0.9805 GB, free: 9.18 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 4.899e-06/0.3388, allocations: 4 kB / 0.9805 GB, free: 9.176 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.0001973/0.339, allocations: 67.91 kB / 0.9806 GB, free: 9.109 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009932/0.34, allocations: 212.4 kB / 0.9808 GB, free: 8.918 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001546/0.3416, allocations: 0.7716 MB / 0.9815 GB, free: 8.113 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000387/0.342, allocations: 0.784 MB / 0.9823 GB, free: 7.301 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001025/0.3421, allocations: 39.42 kB / 0.9823 GB, free: 7.262 MB / 0.7637 GB Notification: Performance of SimCode: time 3.61e-07/0.3421, allocations: 0 / 0.9823 GB, free: 7.262 MB / 0.7637 GB Notification: Performance of Templates: time 0.01017/0.3523, allocations: 6.126 MB / 0.9883 GB, free: 1.18 MB / 0.7637 GB make -j1 -f Buildings_9_Buildings.Fluid.Storage.Examples.ExpansionVessel.makefile (rm -f Buildings_9_Buildings.Fluid.Storage.Examples.ExpansionVessel.pipe ; mkfifo Buildings_9_Buildings.Fluid.Storage.Examples.ExpansionVessel.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Storage.Examples.ExpansionVessel.pipe >> ../files/Buildings_9_Buildings.Fluid.Storage.Examples.ExpansionVessel.sim & ./Buildings_9_Buildings.Fluid.Storage.Examples.ExpansionVessel -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Storage.Examples.ExpansionVessel.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Storage.Examples.ExpansionVessel_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Storage_Examples_ExpansionVessel.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Storage.Examples.ExpansionVessel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches