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.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.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.006018/0.006018, allocations: 101.1 kB / 15.88 MB, free: 5.867 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.001485/0.001485, allocations: 193.5 kB / 16.79 MB, free: 5.809 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.356/1.356, allocations: 222.9 MB / 240.5 MB, free: 4.539 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.365/2.365, allocations: 390.2 MB / 0.6649 GB, free: 0.5742 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0014/0.0014, allocations: 63.91 kB / 0.8125 GB, free: 14.86 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7063/0.7077, allocations: 140.4 MB / 0.9496 GB, free: 9.168 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger): time 0.03957/0.7473, allocations: 41.35 MB / 0.99 GB, free: 8.023 MB / 0.7481 GB Notification: Performance of NFInst.instExpressions: time 0.0151/0.7625, allocations: 10.46 MB / 1 GB, free: 14.13 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002717/0.7653, allocations: 51.69 kB / 1 GB, free: 14.08 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 0.002071/0.7674, allocations: 0.5322 MB / 1.001 GB, free: 13.54 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 0.005663/0.773, allocations: 1.742 MB / 1.002 GB, free: 11.79 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.00322/0.7763, allocations: 1.067 MB / 1.003 GB, free: 10.74 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.005363/0.7817, allocations: 4.526 MB / 1.008 GB, free: 6.203 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00151/0.7832, allocations: 0.877 MB / 1.009 GB, free: 5.309 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002395/0.7856, allocations: 1.042 MB / 1.01 GB, free: 4.262 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00134/0.787, allocations: 0.8982 MB / 1.011 GB, free: 3.359 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 0.0001389/0.7871, allocations: 52 kB / 1.011 GB, free: 3.309 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002066/0.7892, allocations: 0.7716 MB / 1.011 GB, free: 2.535 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 0.0002671/0.7895, allocations: 227 kB / 1.012 GB, free: 2.312 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 0.0007214/0.7902, allocations: 0.5713 MB / 1.012 GB, free: 1.738 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.001773/0.792, allocations: 1.466 MB / 1.014 GB, free: 276 kB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 7.023e-06/0.792, allocations: 15.92 kB / 1.014 GB, free: 260 kB / 0.7637 GB Notification: Performance of FrontEnd: time 1.212e-06/0.792, allocations: 0 / 1.014 GB, free: 260 kB / 0.7637 GB Notification: Performance of Transformations before backend: time 1.768e-05/0.792, allocations: 0 / 1.014 GB, free: 260 kB / 0.7637 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.002456/0.7945, allocations: 1.511 MB / 1.015 GB, free: 14.69 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.094e-05/0.7945, allocations: 8.031 kB / 1.015 GB, free: 14.68 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003389/0.7949, allocations: 139.4 kB / 1.015 GB, free: 14.54 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001556/0.7965, allocations: 1.068 MB / 1.016 GB, free: 13.43 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.443e-05/0.7965, allocations: 61.98 kB / 1.016 GB, free: 13.37 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001003/0.7966, allocations: 72 kB / 1.016 GB, free: 13.3 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001304/0.7979, allocations: 0.7866 MB / 1.017 GB, free: 12.48 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.254e-05/0.798, allocations: 0 / 1.017 GB, free: 12.48 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.694e-05/0.798, allocations: 39.86 kB / 1.017 GB, free: 12.45 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.977e-05/0.7981, allocations: 20 kB / 1.017 GB, free: 12.43 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001058/0.7991, allocations: 0.575 MB / 1.018 GB, free: 11.85 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.003806/0.803, allocations: 3.543 MB / 1.021 GB, free: 8.078 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005815/0.8035, allocations: 257.2 kB / 1.022 GB, free: 7.82 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003233/0.8039, allocations: 181.3 kB / 1.022 GB, free: 7.641 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005129/0.8044, allocations: 0.657 MB / 1.022 GB, free: 6.836 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.683e-05/0.8045, allocations: 42.5 kB / 1.022 GB, free: 6.785 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=31): time 2.324e-06/0.8045, allocations: 0 / 1.022 GB, free: 6.785 MB / 0.7794 GB Notification: Performance of matching and sorting (n=31): time 0.001175/0.8056, allocations: 0.5124 MB / 1.023 GB, free: 6.266 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.777e-05/0.8057, allocations: 55.41 kB / 1.023 GB, free: 6.199 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001046/0.8067, allocations: 0.9338 MB / 1.024 GB, free: 5.246 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 4.086e-05/0.8068, allocations: 33.7 kB / 1.024 GB, free: 5.207 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003606/0.8072, allocations: 499.6 kB / 1.024 GB, free: 4.711 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 9.767e-05/0.8073, allocations: 118.4 kB / 1.025 GB, free: 4.594 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001624/0.8074, allocations: 110.2 kB / 1.025 GB, free: 4.48 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001437/0.8076, allocations: 333.9 kB / 1.025 GB, free: 4.148 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003375/0.8079, allocations: 165 kB / 1.025 GB, free: 3.984 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004641/0.8084, allocations: 346.9 kB / 1.025 GB, free: 3.57 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007798/0.8092, allocations: 0.5186 MB / 1.026 GB, free: 2.98 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.849e-06/0.8092, allocations: 8 kB / 1.026 GB, free: 2.973 MB / 0.7794 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001063/0.8103, allocations: 0.6093 MB / 1.027 GB, free: 2.355 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.022e-05/0.8103, allocations: 8 kB / 1.027 GB, free: 2.348 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.167e-06/0.8103, allocations: 4 kB / 1.027 GB, free: 2.344 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.438e-05/0.8104, allocations: 8 kB / 1.027 GB, free: 2.336 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004367/0.8108, allocations: 127.8 kB / 1.027 GB, free: 2.211 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.367e-05/0.8108, allocations: 8.5 kB / 1.027 GB, free: 2.203 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006889/0.8115, allocations: 119.2 kB / 1.027 GB, free: 2.086 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.797e-05/0.8116, allocations: 24 kB / 1.027 GB, free: 2.062 MB / 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.0003641/0.8119, allocations: 281.5 kB / 1.027 GB, free: 1.777 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001488/0.8121, allocations: 102.8 kB / 1.027 GB, free: 1.676 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009458/0.8131, allocations: 479.5 kB / 1.028 GB, free: 1.207 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.327e-05/0.8131, allocations: 7.984 kB / 1.028 GB, free: 1.199 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.823e-06/0.8131, allocations: 0 / 1.028 GB, free: 1.199 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006829/0.8138, allocations: 453.4 kB / 1.028 GB, free: 0.7266 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002128/0.8159, allocations: 1.354 MB / 1.029 GB, free: 15.3 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.108e-06/0.8159, allocations: 0 / 1.029 GB, free: 15.3 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003339/0.8163, allocations: 80.05 kB / 1.029 GB, free: 15.22 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.707e-06/0.8163, allocations: 7.938 kB / 1.029 GB, free: 15.21 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.819e-05/0.8163, allocations: 11.98 kB / 1.029 GB, free: 15.2 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.26e-06/0.8163, allocations: 4 kB / 1.029 GB, free: 15.2 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.657e-06/0.8163, allocations: 3.938 kB / 1.029 GB, free: 15.19 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001251/0.8176, allocations: 0.7582 MB / 1.03 GB, free: 14.4 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003234/0.8179, allocations: 235.7 kB / 1.03 GB, free: 14.15 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001198/0.8181, allocations: 12.06 kB / 1.03 GB, free: 14.14 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005516/0.8186, allocations: 51.78 kB / 1.031 GB, free: 14.09 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.104e-05/0.8187, allocations: 31.91 kB / 1.031 GB, free: 14.06 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.207e-05/0.8188, allocations: 23.98 kB / 1.031 GB, free: 14.04 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0008331/0.8196, allocations: 0.6471 MB / 1.031 GB, free: 13.38 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.3e-07/0.8196, allocations: 0 / 1.031 GB, free: 13.38 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.001046/0.8207, allocations: 335.4 kB / 1.032 GB, free: 13.05 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.0008496/0.8215, allocations: 387.6 kB / 1.032 GB, free: 12.68 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0009331/0.8225, allocations: 419.8 kB / 1.032 GB, free: 12.27 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 3.687e-06/0.8225, allocations: 0 / 1.032 GB, free: 12.27 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.000383/0.8229, allocations: 185.5 kB / 1.032 GB, free: 12.09 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002713/0.8256, allocations: 0.6001 MB / 1.033 GB, free: 11.5 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002859/0.8285, allocations: 1.973 MB / 1.035 GB, free: 9.469 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000639/0.8291, allocations: 1.028 MB / 1.036 GB, free: 8.406 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000218/0.8293, allocations: 83.42 kB / 1.036 GB, free: 8.328 MB / 0.795 GB Notification: Performance of SimCode: time 7.42e-07/0.8293, allocations: 3.938 kB / 1.036 GB, free: 8.324 MB / 0.795 GB Notification: Performance of Templates: time 0.02644/0.8558, allocations: 17.82 MB / 1.053 GB, free: 6.664 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches