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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.001228/0.001228, allocations: 100.1 kB / 15.88 MB, free: 4 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.001275/0.001275, allocations: 201.6 kB / 16.8 MB, free: 6.82 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.388/1.388, allocations: 222.9 MB / 240.5 MB, free: 4.535 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.486/2.486, allocations: 390.2 MB / 0.6649 GB, free: 0.6094 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001405/0.001405, allocations: 71.88 kB / 0.8125 GB, free: 14.87 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7242/0.7256, allocations: 140.4 MB / 0.9496 GB, free: 9.172 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Examples.ExpansionVessel): time 0.01407/0.7398, allocations: 14.41 MB / 0.9636 GB, free: 13.62 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.005889/0.7457, allocations: 3.663 MB / 0.9672 GB, free: 10.67 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000791/0.7465, allocations: 18.38 kB / 0.9672 GB, free: 10.66 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0007293/0.7473, allocations: 169.7 kB / 0.9674 GB, free: 10.52 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.001678/0.749, allocations: 0.5485 MB / 0.9679 GB, free: 10.09 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.001036/0.7501, allocations: 351.3 kB / 0.9683 GB, free: 9.828 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.00184/0.7519, allocations: 1.457 MB / 0.9697 GB, free: 9.023 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004763/0.7524, allocations: 273.9 kB / 0.9699 GB, free: 8.848 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005747/0.753, allocations: 318.2 kB / 0.9702 GB, free: 8.684 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004328/0.7535, allocations: 316 kB / 0.9705 GB, free: 8.496 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 5.91e-05/0.7535, allocations: 17.28 kB / 0.9706 GB, free: 8.496 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007407/0.7543, allocations: 248 kB / 0.9708 GB, free: 8.363 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0001196/0.7544, allocations: 72.81 kB / 0.9709 GB, free: 8.312 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0002503/0.7547, allocations: 205.5 kB / 0.9711 GB, free: 8.184 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0006053/0.7553, allocations: 453.7 kB / 0.9715 GB, free: 7.887 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.91e-06/0.7553, allocations: 0.6875 kB / 0.9715 GB, free: 7.887 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.323e-06/0.7553, allocations: 0 / 0.9715 GB, free: 7.887 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 7.594e-06/0.7553, allocations: 0 / 0.9715 GB, free: 7.887 MB / 0.7325 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.001297/0.7566, allocations: 0.7525 MB / 0.9722 GB, free: 7.223 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.525e-05/0.7567, allocations: 8.906 kB / 0.9722 GB, free: 7.223 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002195/0.7569, allocations: 50.03 kB / 0.9723 GB, free: 7.199 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007818/0.7577, allocations: 481 kB / 0.9728 GB, free: 6.781 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.046e-05/0.7577, allocations: 23.03 kB / 0.9728 GB, free: 6.766 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.844e-05/0.7578, allocations: 25.81 kB / 0.9728 GB, free: 6.758 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006406/0.7584, allocations: 309.5 kB / 0.9731 GB, free: 6.547 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.57e-05/0.7585, allocations: 0 / 0.9731 GB, free: 6.547 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.645e-05/0.7585, allocations: 12.06 kB / 0.9731 GB, free: 6.539 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.611e-05/0.7585, allocations: 11.12 kB / 0.9731 GB, free: 6.535 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004981/0.759, allocations: 198.3 kB / 0.9733 GB, free: 6.441 MB / 0.7325 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.001857/0.7609, allocations: 1.485 MB / 0.9748 GB, free: 5.059 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000441/0.7614, allocations: 152.9 kB / 0.9749 GB, free: 4.973 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001734/0.7616, allocations: 66.59 kB / 0.975 GB, free: 4.938 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001718/0.7617, allocations: 95.91 kB / 0.9751 GB, free: 4.832 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003009/0.762, allocations: 126.4 kB / 0.9752 GB, free: 4.738 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=15): time 1.603e-06/0.7621, allocations: 0 / 0.9752 GB, free: 4.738 MB / 0.7325 GB Notification: Performance of matching and sorting (n=15): time 0.0006656/0.7627, allocations: 234.8 kB / 0.9754 GB, free: 4.613 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.679e-05/0.7628, allocations: 54.91 kB / 0.9755 GB, free: 4.551 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003797/0.7632, allocations: 330 kB / 0.9758 GB, free: 4.336 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 3.22e-05/0.7632, allocations: 35.86 kB / 0.9758 GB, free: 4.297 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001687/0.7634, allocations: 221.3 kB / 0.976 GB, free: 4.098 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 5.871e-05/0.7634, allocations: 53.75 kB / 0.9761 GB, free: 4.051 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001139/0.7636, allocations: 60.78 kB / 0.9761 GB, free: 4.004 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001659/0.7637, allocations: 338 kB / 0.9764 GB, free: 3.672 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002213/0.764, allocations: 69.3 kB / 0.9765 GB, free: 3.641 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002742/0.7642, allocations: 143.1 kB / 0.9766 GB, free: 3.512 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000494/0.7647, allocations: 243.3 kB / 0.9769 GB, free: 3.312 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.32e-06/0.7648, allocations: 5 kB / 0.9769 GB, free: 3.309 MB / 0.7325 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0007087/0.7655, allocations: 305.5 kB / 0.9772 GB, free: 3.133 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 5.507e-05/0.7655, allocations: 40.31 kB / 0.9772 GB, free: 3.094 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.422e-05/0.7656, allocations: 3.188 kB / 0.9772 GB, free: 3.094 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.947e-05/0.7656, allocations: 7.344 kB / 0.9772 GB, free: 3.09 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002567/0.7659, allocations: 58.75 kB / 0.9773 GB, free: 3.074 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.516e-05/0.7659, allocations: 8.141 kB / 0.9773 GB, free: 3.07 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003369/0.7662, allocations: 37.95 kB / 0.9773 GB, free: 3.047 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.552e-05/0.7663, allocations: 12.5 kB / 0.9773 GB, free: 3.043 MB / 0.7325 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.0002022/0.7665, allocations: 162.4 kB / 0.9775 GB, free: 2.895 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.065e-05/0.7666, allocations: 36 kB / 0.9775 GB, free: 2.875 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005424/0.7671, allocations: 199.6 kB / 0.9777 GB, free: 2.75 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.294e-06/0.7671, allocations: 5.062 kB / 0.9777 GB, free: 2.746 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.951e-06/0.7672, allocations: 0.9688 kB / 0.9777 GB, free: 2.746 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005243/0.7677, allocations: 480.8 kB / 0.9782 GB, free: 2.258 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000505/0.7682, allocations: 353.6 kB / 0.9785 GB, free: 1.938 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.725e-06/0.7682, allocations: 4 kB / 0.9785 GB, free: 1.934 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001715/0.7684, allocations: 35.77 kB / 0.9786 GB, free: 1.922 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.198e-06/0.7684, allocations: 0.7812 kB / 0.9786 GB, free: 1.922 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.704e-05/0.7684, allocations: 2.188 kB / 0.9786 GB, free: 1.922 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.669e-06/0.7684, allocations: 3.938 kB / 0.9786 GB, free: 1.918 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.7684, allocations: 1.125 kB / 0.9786 GB, free: 1.918 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006552/0.7691, allocations: 291.1 kB / 0.9788 GB, free: 1.738 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000137/0.7692, allocations: 122.4 kB / 0.979 GB, free: 1.613 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.371e-05/0.7693, allocations: 5.188 kB / 0.979 GB, free: 1.609 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002441/0.7696, allocations: 20.94 kB / 0.979 GB, free: 1.598 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.956e-05/0.7696, allocations: 19.39 kB / 0.979 GB, free: 1.586 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.328e-05/0.7697, allocations: 10.05 kB / 0.979 GB, free: 1.582 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0002898/0.77, allocations: 241 kB / 0.9792 GB, free: 1.426 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.4e-07/0.77, allocations: 0 / 0.9792 GB, free: 1.426 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0004964/0.7705, allocations: 115.5 kB / 0.9793 GB, free: 1.402 MB / 0.7325 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.0003765/0.7709, allocations: 189 kB / 0.9795 GB, free: 1.27 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0005204/0.7714, allocations: 223.9 kB / 0.9797 GB, free: 1.137 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 3.878e-06/0.7714, allocations: 1.531 kB / 0.9797 GB, free: 1.137 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001806/0.7716, allocations: 67.16 kB / 0.9798 GB, free: 1.109 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009711/0.7726, allocations: 208.7 kB / 0.98 GB, free: 1.012 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001538/0.7741, allocations: 0.8889 MB / 0.9809 GB, free: 340 kB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003684/0.7745, allocations: 0.7907 MB / 0.9816 GB, free: 15.58 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.92e-05/0.7746, allocations: 34.56 kB / 0.9817 GB, free: 15.57 MB / 0.7481 GB Notification: Performance of SimCode: time 4.71e-07/0.7746, allocations: 0 / 0.9817 GB, free: 15.57 MB / 0.7481 GB Notification: Performance of Templates: time 0.01001/0.7846, allocations: 5.935 MB / 0.9875 GB, free: 10.59 MB / 0.7481 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