Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Interfaces.Examples.EightPortHeatMassExchanger.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.EightPortHeatMassExchanger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|eigPor.Q1_flow|eigPor.Q2_flow|eigPor.Q3_flow|eigPor.Q4_flow|eigPor.vol1.T|eigPor.vol2.T|eigPor.vol3.T|eigPor.vol4.T|sou1.T|sou2.T_in|sou3.T|sou4.T_in|sin.T",fileNamePrefix="Buildings_9_Buildings.Fluid.Interfaces.Examples.EightPortHeatMassExchanger") translateModel(Buildings.Fluid.Interfaces.Examples.EightPortHeatMassExchanger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|eigPor.Q1_flow|eigPor.Q2_flow|eigPor.Q3_flow|eigPor.Q4_flow|eigPor.vol1.T|eigPor.vol2.T|eigPor.vol3.T|eigPor.vol4.T|sou1.T|sou2.T_in|sou3.T|sou4.T_in|sin.T",fileNamePrefix="Buildings_9_Buildings.Fluid.Interfaces.Examples.EightPortHeatMassExchanger") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008452/0.0008453, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.005777/0.005777, allocations: 168.9 kB / 16.26 MB, free: 6.656 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.419/1.419, allocations: 223.3 MB / 240.3 MB, free: 5.348 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.38/2.38, allocations: 390.9 MB / 0.6663 GB, free: 2.367 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.000361/0.0003612, allocations: 12 kB / 0.816 GB, free: 13.25 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6637/0.6641, allocations: 142.4 MB / 0.955 GB, free: 7.723 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.EightPortHeatMassExchanger): time 0.08689/0.7511, allocations: 75.3 MB / 1.029 GB, free: 3.832 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.03038/0.7815, allocations: 18.77 MB / 1.047 GB, free: 1.02 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004444/0.786, allocations: 91.38 kB / 1.047 GB, free: 0.9297 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.003788/0.7898, allocations: 1.029 MB / 1.048 GB, free: 15.89 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.01127/0.8011, allocations: 3.37 MB / 1.051 GB, free: 12.51 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.006202/0.8073, allocations: 1.905 MB / 1.053 GB, free: 10.62 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.01256/0.8199, allocations: 8.899 MB / 1.062 GB, free: 1.703 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003202/0.8231, allocations: 1.685 MB / 1.063 GB, free: 15.97 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004144/0.8273, allocations: 1.886 MB / 1.065 GB, free: 14.08 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002838/0.8301, allocations: 1.699 MB / 1.067 GB, free: 12.38 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 0.0002641/0.8304, allocations: 76 kB / 1.067 GB, free: 12.3 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003594/0.834, allocations: 1.446 MB / 1.068 GB, free: 10.85 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0004783/0.8345, allocations: 414 kB / 1.069 GB, free: 10.45 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.001356/0.8359, allocations: 1.125 MB / 1.07 GB, free: 9.309 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.004668/0.8405, allocations: 3.563 MB / 1.073 GB, free: 5.734 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 6.723e-06/0.8406, allocations: 4 kB / 1.073 GB, free: 5.73 MB / 0.8262 GB Notification: Performance of FrontEnd: time 4.519e-06/0.8406, allocations: 4 kB / 1.073 GB, free: 5.727 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 3.882e-05/0.8406, allocations: 0 / 1.073 GB, free: 5.727 MB / 0.8262 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 344 * Number of variables: 344 Notification: Performance of Generate backend data structure: time 0.003951/0.8446, allocations: 2.283 MB / 1.076 GB, free: 3.379 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.309e-05/0.8446, allocations: 12.03 kB / 1.076 GB, free: 3.367 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005979/0.8452, allocations: 269.9 kB / 1.076 GB, free: 3.102 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003006/0.8483, allocations: 1.965 MB / 1.078 GB, free: 1.086 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001059/0.8484, allocations: 110.7 kB / 1.078 GB, free: 0.9766 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002189/0.8486, allocations: 143.9 kB / 1.078 GB, free: 0.8359 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002879/0.8515, allocations: 1.54 MB / 1.08 GB, free: 15.22 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.775e-05/0.8515, allocations: 7.938 kB / 1.08 GB, free: 15.21 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001271/0.8517, allocations: 59.98 kB / 1.08 GB, free: 15.15 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.03e-05/0.8517, allocations: 36 kB / 1.08 GB, free: 15.12 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002313/0.8541, allocations: 1.173 MB / 1.081 GB, free: 13.94 MB / 0.8419 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.008483/0.8626, allocations: 7.587 MB / 1.088 GB, free: 5.773 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001041/0.8636, allocations: 0.501 MB / 1.089 GB, free: 5.266 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006628/0.8643, allocations: 350.3 kB / 1.089 GB, free: 4.922 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008783/0.8652, allocations: 1.156 MB / 1.09 GB, free: 3.508 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.008e-05/0.8652, allocations: 39.12 kB / 1.09 GB, free: 3.457 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=59): time 4.328e-06/0.8652, allocations: 3.984 kB / 1.09 GB, free: 3.453 MB / 0.8419 GB Notification: Performance of matching and sorting (n=59): time 0.002679/0.8679, allocations: 1.032 MB / 1.091 GB, free: 2.414 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.292e-05/0.868, allocations: 59.97 kB / 1.091 GB, free: 2.344 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002733/0.8707, allocations: 1.755 MB / 1.093 GB, free: 0.5508 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 0.0001099/0.8709, allocations: 45.7 kB / 1.093 GB, free: 0.5 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008473/0.8717, allocations: 0.9278 MB / 1.094 GB, free: 15.56 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002706/0.872, allocations: 221 kB / 1.094 GB, free: 15.34 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001408/0.8721, allocations: 97.67 kB / 1.094 GB, free: 15.24 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001687/0.8723, allocations: 349.9 kB / 1.095 GB, free: 14.89 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007611/0.8731, allocations: 354.4 kB / 1.095 GB, free: 14.55 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001026/0.8741, allocations: 0.7056 MB / 1.096 GB, free: 13.69 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001757/0.8759, allocations: 1.059 MB / 1.097 GB, free: 12.5 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.522e-06/0.8759, allocations: 0 / 1.097 GB, free: 12.5 MB / 0.8575 GB Notification: Performance of matching and sorting (n=135) (initialization): time 0.002515/0.8784, allocations: 1.26 MB / 1.098 GB, free: 11.23 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.487e-05/0.8785, allocations: 8 kB / 1.098 GB, free: 11.22 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.758e-05/0.8785, allocations: 12 kB / 1.098 GB, free: 11.21 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.972e-05/0.8785, allocations: 16 kB / 1.098 GB, free: 11.19 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001077/0.8796, allocations: 320.2 kB / 1.098 GB, free: 10.88 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.454e-05/0.8796, allocations: 27.86 kB / 1.098 GB, free: 10.85 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001663/0.8813, allocations: 242.4 kB / 1.099 GB, free: 10.61 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.268e-05/0.8814, allocations: 52 kB / 1.099 GB, free: 10.56 MB / 0.8575 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 45 * 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 (135): * Single equations (assignments): 135 * 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.0008041/0.8822, allocations: 441.3 kB / 1.099 GB, free: 10.12 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002491/0.8825, allocations: 189.7 kB / 1.099 GB, free: 9.934 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001929/0.8844, allocations: 0.9071 MB / 1.1 GB, free: 9.02 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.765e-05/0.8844, allocations: 12 kB / 1.1 GB, free: 9.008 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.165e-06/0.8844, allocations: 3.938 kB / 1.1 GB, free: 9.004 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001398/0.8859, allocations: 0.8425 MB / 1.101 GB, free: 8.113 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004484/0.8903, allocations: 2.478 MB / 1.103 GB, free: 5.543 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.558e-06/0.8904, allocations: 7.938 kB / 1.103 GB, free: 5.535 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008269/0.8912, allocations: 204 kB / 1.104 GB, free: 5.336 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.25e-05/0.8912, allocations: 8 kB / 1.104 GB, free: 5.328 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.11e-05/0.8913, allocations: 16 kB / 1.104 GB, free: 5.312 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.257e-06/0.8913, allocations: 11.98 kB / 1.104 GB, free: 5.301 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.096e-06/0.8913, allocations: 0 / 1.104 GB, free: 5.301 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002455/0.8938, allocations: 1.394 MB / 1.105 GB, free: 3.863 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007028/0.8945, allocations: 410.2 kB / 1.105 GB, free: 3.441 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002975/0.8948, allocations: 12 kB / 1.105 GB, free: 3.43 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001298/0.8961, allocations: 135.6 kB / 1.105 GB, free: 3.297 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001244/0.8962, allocations: 48.44 kB / 1.105 GB, free: 3.25 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.823e-05/0.8963, allocations: 39.97 kB / 1.106 GB, free: 3.211 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.001896/0.8982, allocations: 1.216 MB / 1.107 GB, free: 1.977 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.51e-07/0.8982, allocations: 3.938 kB / 1.107 GB, free: 1.973 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.002257/0.9005, allocations: 0.6396 MB / 1.107 GB, free: 1.332 MB / 0.8575 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 4 (eigPor.vol1.dynBal.U,eigPor.vol2.dynBal.U,eigPor.vol3.dynBal.U,eigPor.vol4.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 (64): * Single equations (assignments): 59 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 5 * 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.001518/0.902, allocations: 0.5781 MB / 1.108 GB, free: 0.7578 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.001882/0.9039, allocations: 0.8508 MB / 1.109 GB, free: 15.91 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 9.087e-06/0.9039, allocations: 4 kB / 1.109 GB, free: 15.91 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0007357/0.9047, allocations: 384.4 kB / 1.109 GB, free: 15.53 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006463/0.9111, allocations: 1.209 MB / 1.11 GB, free: 14.34 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005218/0.9164, allocations: 3.821 MB / 1.114 GB, free: 10.46 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001003/0.9174, allocations: 1.409 MB / 1.115 GB, free: 9.012 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.001598/0.919, allocations: 380.9 kB / 1.116 GB, free: 8.645 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003116/0.9193, allocations: 147.4 kB / 1.116 GB, free: 8.5 MB / 0.8731 GB Notification: Performance of SimCode: time 2.234e-06/0.9193, allocations: 0 / 1.116 GB, free: 8.5 MB / 0.8731 GB Notification: Performance of Templates: time 0.07127/0.9906, allocations: 40.1 MB / 1.155 GB, free: 0.9141 MB / 0.9044 GB make -j1 -f Buildings_9_Buildings.Fluid.Interfaces.Examples.EightPortHeatMassExchanger.makefile (rm -f Buildings_9_Buildings.Fluid.Interfaces.Examples.EightPortHeatMassExchanger.pipe ; mkfifo Buildings_9_Buildings.Fluid.Interfaces.Examples.EightPortHeatMassExchanger.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Interfaces.Examples.EightPortHeatMassExchanger.pipe >> ../files/Buildings_9_Buildings.Fluid.Interfaces.Examples.EightPortHeatMassExchanger.sim & ./Buildings_9_Buildings.Fluid.Interfaces.Examples.EightPortHeatMassExchanger -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Interfaces.Examples.EightPortHeatMassExchanger.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Interfaces.Examples.EightPortHeatMassExchanger_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Interfaces_Examples_EightPortHeatMassExchanger.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Interfaces.Examples.EightPortHeatMassExchanger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches