Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.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.Interfaces.Examples.FourPortHeatMassExchanger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|fouPor.Q1_flow|fouPor.Q2_flow|fouPor.vol1.T|fouPor.vol2.T|sou2.T|sou1.T_in|sin.T",fileNamePrefix="Buildings_9_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger") translateModel(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|fouPor.Q1_flow|fouPor.Q2_flow|fouPor.vol1.T|fouPor.vol2.T|sou2.T|sou1.T_in|sin.T",fileNamePrefix="Buildings_9_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001172/0.001172, allocations: 91.22 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.009083/0.009083, allocations: 172.7 kB / 16.26 MB, free: 6.613 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.358/1.358, 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 9.1.3-maint.9.1.x/package.mo): time 2.483/2.483, allocations: 390.9 MB / 0.6663 GB, free: 2.379 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003219/0.000322, allocations: 12.19 kB / 0.816 GB, free: 13.24 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.646/0.6464, allocations: 142.4 MB / 0.955 GB, free: 8.066 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger): time 0.03908/0.6855, allocations: 40.51 MB / 0.9946 GB, free: 7.004 MB / 0.7481 GB Notification: Performance of NFInst.instExpressions: time 0.01567/0.7012, allocations: 10.33 MB / 1.005 GB, free: 12.64 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002031/0.7033, allocations: 47.69 kB / 1.005 GB, free: 12.6 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 0.001638/0.7049, allocations: 0.5244 MB / 1.005 GB, free: 12.07 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 0.004902/0.7099, allocations: 1.734 MB / 1.007 GB, free: 10.33 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.002792/0.7127, allocations: 1.091 MB / 1.008 GB, free: 9.25 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.005167/0.7178, allocations: 4.514 MB / 1.012 GB, free: 4.727 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00133/0.7192, allocations: 0.8521 MB / 1.013 GB, free: 3.859 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002219/0.7214, allocations: 1.026 MB / 1.014 GB, free: 2.828 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001252/0.7227, allocations: 0.8554 MB / 1.015 GB, free: 1.969 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 0.0001018/0.7228, allocations: 36 kB / 1.015 GB, free: 1.934 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001856/0.7247, allocations: 0.7754 MB / 1.016 GB, free: 1.156 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 0.0002482/0.7249, allocations: 207 kB / 1.016 GB, free: 0.9531 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 0.0006679/0.7256, allocations: 0.5768 MB / 1.017 GB, free: 376 kB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.002493/0.7281, allocations: 1.83 MB / 1.018 GB, free: 14.53 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 6.522e-06/0.7281, allocations: 3.938 kB / 1.018 GB, free: 14.53 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.264e-06/0.7281, allocations: 0 / 1.018 GB, free: 14.53 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 1.524e-05/0.7282, allocations: 0 / 1.018 GB, free: 14.53 MB / 0.7794 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 174 * Number of variables: 174 Notification: Performance of Generate backend data structure: time 0.002408/0.7306, allocations: 1.304 MB / 1.02 GB, free: 13.17 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.889e-05/0.7306, allocations: 8.031 kB / 1.02 GB, free: 13.16 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003408/0.731, allocations: 135.5 kB / 1.02 GB, free: 13.03 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001666/0.7327, allocations: 1.08 MB / 1.021 GB, free: 11.91 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.394e-05/0.7327, allocations: 53.98 kB / 1.021 GB, free: 11.85 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001067/0.7328, allocations: 75.98 kB / 1.021 GB, free: 11.78 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001373/0.7342, allocations: 0.7983 MB / 1.022 GB, free: 10.95 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.713e-05/0.7343, allocations: 0 / 1.022 GB, free: 10.95 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.026e-05/0.7343, allocations: 35.94 kB / 1.022 GB, free: 10.91 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.478e-05/0.7344, allocations: 24 kB / 1.022 GB, free: 10.89 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001213/0.7356, allocations: 0.5906 MB / 1.022 GB, free: 10.29 MB / 0.7794 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.004256/0.7399, allocations: 3.559 MB / 1.026 GB, free: 6.508 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005926/0.7405, allocations: 277.1 kB / 1.026 GB, free: 6.23 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003797/0.7409, allocations: 186 kB / 1.026 GB, free: 6.047 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005553/0.7414, allocations: 0.6615 MB / 1.027 GB, free: 5.238 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.423e-05/0.7415, allocations: 42.5 kB / 1.027 GB, free: 5.188 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=31): time 1.924e-06/0.7415, allocations: 0 / 1.027 GB, free: 5.188 MB / 0.7794 GB Notification: Performance of matching and sorting (n=31): time 0.001245/0.7427, allocations: 0.5437 MB / 1.028 GB, free: 4.637 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.925e-05/0.7428, allocations: 59.41 kB / 1.028 GB, free: 4.566 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001129/0.7439, allocations: 0.9299 MB / 1.029 GB, free: 3.617 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 4.747e-05/0.744, allocations: 37.7 kB / 1.029 GB, free: 3.574 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003759/0.7444, allocations: 499.6 kB / 1.029 GB, free: 3.078 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 9.498e-05/0.7445, allocations: 110.4 kB / 1.029 GB, free: 2.969 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.773e-05/0.7445, allocations: 53.62 kB / 1.029 GB, free: 2.91 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001066/0.7446, allocations: 329.9 kB / 1.03 GB, free: 2.582 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003809/0.745, allocations: 181 kB / 1.03 GB, free: 2.406 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004877/0.7455, allocations: 358.9 kB / 1.03 GB, free: 1.977 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008507/0.7464, allocations: 0.5342 MB / 1.031 GB, free: 1.371 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.767e-06/0.7464, allocations: 0 / 1.031 GB, free: 1.371 MB / 0.7794 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001139/0.7475, allocations: 0.6328 MB / 1.031 GB, free: 0.7305 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.044e-05/0.7476, allocations: 8.531 kB / 1.031 GB, free: 0.7227 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.049e-05/0.7476, allocations: 11.98 kB / 1.031 GB, free: 0.7109 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.094e-05/0.7476, allocations: 8 kB / 1.031 GB, free: 0.7031 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004411/0.7481, allocations: 127.8 kB / 1.031 GB, free: 0.5781 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.439e-05/0.7481, allocations: 11.98 kB / 1.031 GB, free: 0.5664 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007399/0.7488, allocations: 119.1 kB / 1.031 GB, free: 460 kB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.761e-05/0.7489, allocations: 27.94 kB / 1.031 GB, free: 432 kB / 0.7794 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (65): * Single equations (assignments): 65 * Array equations: 0 * Algorithm blocks: 0 * 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.0003825/0.7493, allocations: 277.6 kB / 1.032 GB, free: 144 kB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001283/0.7494, allocations: 102.9 kB / 1.032 GB, free: 40 kB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001012/0.7504, allocations: 0.4925 MB / 1.032 GB, free: 15.54 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.25e-05/0.7505, allocations: 7.984 kB / 1.032 GB, free: 15.54 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.019e-06/0.7505, allocations: 0 / 1.032 GB, free: 15.54 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000732/0.7512, allocations: 473.4 kB / 1.033 GB, free: 15.04 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002071/0.7533, allocations: 1.374 MB / 1.034 GB, free: 13.6 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.911e-06/0.7533, allocations: 4 kB / 1.034 GB, free: 13.59 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003324/0.7537, allocations: 79.83 kB / 1.034 GB, free: 13.52 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.585e-06/0.7537, allocations: 8.156 kB / 1.034 GB, free: 13.51 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.788e-05/0.7537, allocations: 15.98 kB / 1.034 GB, free: 13.49 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.466e-06/0.7537, allocations: 3.938 kB / 1.034 GB, free: 13.49 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.248e-06/0.7537, allocations: 7.938 kB / 1.034 GB, free: 13.48 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001267/0.755, allocations: 0.7856 MB / 1.035 GB, free: 12.66 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003495/0.7554, allocations: 251.7 kB / 1.035 GB, free: 12.4 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001089/0.7555, allocations: 12.06 kB / 1.035 GB, free: 12.39 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005786/0.7561, allocations: 59.86 kB / 1.035 GB, free: 12.33 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.562e-05/0.7562, allocations: 35.89 kB / 1.035 GB, free: 12.29 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.353e-05/0.7562, allocations: 19.98 kB / 1.035 GB, free: 12.27 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0008741/0.7571, allocations: 0.6471 MB / 1.036 GB, free: 11.62 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.4e-07/0.7571, allocations: 0 / 1.036 GB, free: 11.62 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.00103/0.7581, allocations: 323.5 kB / 1.036 GB, free: 11.3 MB / 0.795 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (fouPor.vol1.dynBal.U,fouPor.vol2.dynBal.U) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (34): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * 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.0008072/0.7589, allocations: 393.5 kB / 1.037 GB, free: 10.92 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.000943/0.7599, allocations: 440.7 kB / 1.037 GB, free: 10.49 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 4.719e-06/0.7599, allocations: 4 kB / 1.037 GB, free: 10.48 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0004007/0.7603, allocations: 192.5 kB / 1.037 GB, free: 10.3 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003023/0.7634, allocations: 0.598 MB / 1.038 GB, free: 9.707 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00277/0.7661, allocations: 1.989 MB / 1.04 GB, free: 7.664 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000568/0.7667, allocations: 1.032 MB / 1.041 GB, free: 6.598 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0007471/0.7675, allocations: 201.1 kB / 1.041 GB, free: 6.402 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001573/0.7676, allocations: 83.36 kB / 1.041 GB, free: 6.324 MB / 0.795 GB Notification: Performance of SimCode: time 8.22e-07/0.7677, allocations: 4 kB / 1.041 GB, free: 6.32 MB / 0.795 GB Notification: Performance of Templates: time 0.03415/0.8018, allocations: 20.21 MB / 1.061 GB, free: 2.387 MB / 0.8106 GB make -j1 -f Buildings_9_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.makefile (rm -f Buildings_9_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe ; mkfifo Buildings_9_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe >> ../files/Buildings_9_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.sim & ./Buildings_9_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Interfaces_Examples_FourPortHeatMassExchanger.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches