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.001239/0.001239, allocations: 105.6 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.001141/0.001141, allocations: 189.8 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.354/1.354, allocations: 222.9 MB / 240.9 MB, free: 15.27 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.242/2.242, allocations: 390.3 MB / 0.6653 GB, free: 0.6992 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001311/0.001312, allocations: 65.12 kB / 0.8132 GB, free: 33.04 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2998/0.3011, allocations: 140.4 MB / 0.9503 GB, free: 8.875 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger): time 0.04841/0.3496, allocations: 41.57 MB / 0.9909 GB, free: 15.15 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.0167/0.3664, allocations: 10.4 MB / 1.001 GB, free: 4.723 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002759/0.3692, allocations: 59.62 kB / 1.001 GB, free: 4.664 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.002434/0.3717, allocations: 0.6404 MB / 1.002 GB, free: 4.02 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.006955/0.3787, allocations: 1.878 MB / 1.004 GB, free: 2.133 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.003659/0.3824, allocations: 1.179 MB / 1.005 GB, free: 0.9648 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.005592/0.388, allocations: 3.393 MB / 1.008 GB, free: 13.57 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001793/0.3898, allocations: 1.076 MB / 1.009 GB, free: 12.47 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003666/0.3935, allocations: 1.219 MB / 1.01 GB, free: 11.25 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001809/0.3953, allocations: 0.8789 MB / 1.011 GB, free: 10.37 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 0.0001987/0.3955, allocations: 104 kB / 1.011 GB, free: 10.27 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002346/0.3979, allocations: 0.8539 MB / 1.012 GB, free: 9.414 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.0003245/0.3982, allocations: 291 kB / 1.012 GB, free: 9.129 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.0008116/0.3991, allocations: 0.6221 MB / 1.013 GB, free: 8.504 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.003238/0.4023, allocations: 1.901 MB / 1.015 GB, free: 6.598 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 8.035e-06/0.4023, allocations: 4 kB / 1.015 GB, free: 6.594 MB / 0.795 GB Notification: Performance of FrontEnd: time 2.405e-06/0.4023, allocations: 0 / 1.015 GB, free: 6.594 MB / 0.795 GB Notification: Performance of Transformations before backend: time 1.661e-05/0.4024, allocations: 0 / 1.015 GB, free: 6.594 MB / 0.795 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.002695/0.4051, allocations: 1.511 MB / 1.016 GB, free: 5.031 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 4.811e-05/0.4051, allocations: 12.03 kB / 1.016 GB, free: 5.02 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003841/0.4055, allocations: 127.5 kB / 1.016 GB, free: 4.895 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00169/0.4072, allocations: 1.049 MB / 1.017 GB, free: 3.801 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.282e-05/0.4073, allocations: 54 kB / 1.017 GB, free: 3.75 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001095/0.4074, allocations: 72 kB / 1.018 GB, free: 3.68 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001405/0.4088, allocations: 0.7943 MB / 1.018 GB, free: 2.848 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.192e-05/0.4088, allocations: 4 kB / 1.018 GB, free: 2.844 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.884e-05/0.4089, allocations: 32 kB / 1.018 GB, free: 2.812 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.071e-05/0.4089, allocations: 16 kB / 1.018 GB, free: 2.797 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001123/0.4101, allocations: 0.5672 MB / 1.019 GB, free: 2.23 MB / 0.795 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.004582/0.4147, allocations: 3.571 MB / 1.022 GB, free: 14.43 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006022/0.4153, allocations: 272 kB / 1.023 GB, free: 14.16 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003568/0.4156, allocations: 185.2 kB / 1.023 GB, free: 13.98 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006047/0.4163, allocations: 0.6609 MB / 1.023 GB, free: 13.17 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.233e-05/0.4163, allocations: 38.56 kB / 1.024 GB, free: 13.12 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=31): time 2.575e-06/0.4163, allocations: 0 / 1.024 GB, free: 13.12 MB / 0.8106 GB Notification: Performance of matching and sorting (n=31): time 0.001286/0.4176, allocations: 0.5158 MB / 1.024 GB, free: 12.6 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.359e-05/0.4177, allocations: 55.41 kB / 1.024 GB, free: 12.53 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001224/0.4189, allocations: 0.9417 MB / 1.025 GB, free: 11.57 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 5.185e-05/0.419, allocations: 33.64 kB / 1.025 GB, free: 11.53 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004354/0.4194, allocations: 0.4918 MB / 1.026 GB, free: 11.04 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001175/0.4195, allocations: 114.4 kB / 1.026 GB, free: 10.92 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001845/0.4197, allocations: 118.1 kB / 1.026 GB, free: 10.8 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.00015/0.4199, allocations: 333.9 kB / 1.026 GB, free: 10.47 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003828/0.4203, allocations: 157 kB / 1.026 GB, free: 10.31 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005273/0.4208, allocations: 348.9 kB / 1.027 GB, free: 9.898 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008854/0.4217, allocations: 0.5265 MB / 1.027 GB, free: 9.301 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.599e-06/0.4217, allocations: 3.938 kB / 1.027 GB, free: 9.297 MB / 0.8106 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001219/0.4229, allocations: 0.6171 MB / 1.028 GB, free: 8.672 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 2.081e-05/0.423, allocations: 4 kB / 1.028 GB, free: 8.668 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.407e-05/0.423, allocations: 8 kB / 1.028 GB, free: 8.66 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.592e-05/0.423, allocations: 8 kB / 1.028 GB, free: 8.652 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004581/0.4235, allocations: 120.2 kB / 1.028 GB, free: 8.535 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.558e-05/0.4235, allocations: 15.94 kB / 1.028 GB, free: 8.52 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006623/0.4242, allocations: 83.23 kB / 1.028 GB, free: 8.438 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.49e-05/0.4242, allocations: 24 kB / 1.028 GB, free: 8.414 MB / 0.8106 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.0004062/0.4246, allocations: 277.6 kB / 1.028 GB, free: 8.133 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001701/0.4248, allocations: 98.78 kB / 1.028 GB, free: 8.035 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009945/0.4258, allocations: 492.1 kB / 1.029 GB, free: 7.547 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.61e-05/0.4258, allocations: 7.984 kB / 1.029 GB, free: 7.539 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.71e-06/0.4259, allocations: 3.938 kB / 1.029 GB, free: 7.535 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007313/0.4266, allocations: 449.5 kB / 1.029 GB, free: 7.066 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002157/0.4288, allocations: 1.362 MB / 1.03 GB, free: 5.633 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.708e-06/0.4288, allocations: 0 / 1.03 GB, free: 5.633 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003431/0.4291, allocations: 75.89 kB / 1.031 GB, free: 5.559 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.488e-06/0.4291, allocations: 7.938 kB / 1.031 GB, free: 5.551 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.728e-05/0.4292, allocations: 11.98 kB / 1.031 GB, free: 5.539 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.951e-06/0.4292, allocations: 4 kB / 1.031 GB, free: 5.535 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/0.4292, allocations: 0 / 1.031 GB, free: 5.535 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001316/0.4305, allocations: 0.7671 MB / 1.031 GB, free: 4.738 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003609/0.4309, allocations: 231.7 kB / 1.032 GB, free: 4.492 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001118/0.431, allocations: 8 kB / 1.032 GB, free: 4.484 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004821/0.4315, allocations: 31.89 kB / 1.032 GB, free: 4.453 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.124e-05/0.4316, allocations: 23.97 kB / 1.032 GB, free: 4.43 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.275e-05/0.4316, allocations: 19.98 kB / 1.032 GB, free: 4.41 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0009111/0.4326, allocations: 0.6667 MB / 1.032 GB, free: 3.734 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.61e-07/0.4326, allocations: 0 / 1.032 GB, free: 3.734 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.001067/0.4336, allocations: 339.4 kB / 1.033 GB, free: 3.402 MB / 0.8106 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.0008859/0.4345, allocations: 383.4 kB / 1.033 GB, free: 3.027 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.001038/0.4356, allocations: 451.8 kB / 1.033 GB, free: 2.586 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 3.217e-06/0.4356, allocations: 0 / 1.033 GB, free: 2.586 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0004012/0.436, allocations: 189.6 kB / 1.034 GB, free: 2.402 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002714/0.4387, allocations: 0.618 MB / 1.034 GB, free: 1.809 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002748/0.4415, allocations: 1.646 MB / 1.036 GB, free: 108 kB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006554/0.4422, allocations: 1.04 MB / 1.037 GB, free: 15.03 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001955/0.4424, allocations: 83.42 kB / 1.037 GB, free: 14.95 MB / 0.8262 GB Notification: Performance of SimCode: time 8.11e-07/0.4424, allocations: 0 / 1.037 GB, free: 14.95 MB / 0.8262 GB Notification: Performance of Templates: time 0.03028/0.4727, allocations: 17.99 MB / 1.054 GB, free: 13.12 MB / 0.8419 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