Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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_latest_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_latest_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.00108/0.00108, allocations: 92.16 kB / 16.02 MB, free: 80 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.001592/0.001592, allocations: 173 kB / 16.92 MB, free: 6.652 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.375/1.375, allocations: 223.3 MB / 241 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.644/2.644, allocations: 462.6 MB / 0.737 GB, free: 15.57 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003585/0.0003586, allocations: 12.09 kB / 0.9034 GB, free: 36.37 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3196/0.32, allocations: 159.6 MB / 1.059 GB, free: 5.008 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger): time 0.03736/0.3574, allocations: 40.51 MB / 1.099 GB, free: 12.36 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.01406/0.3715, allocations: 10.35 MB / 1.109 GB, free: 1.98 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002232/0.3738, allocations: 51.62 kB / 1.109 GB, free: 1.93 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.00189/0.3757, allocations: 0.5284 MB / 1.11 GB, free: 1.398 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.005216/0.3809, allocations: 1.734 MB / 1.111 GB, free: 15.66 MB / 0.8731 GB Notification: Performance of NFTyping.typeClassSections: time 0.003038/0.384, allocations: 1.089 MB / 1.112 GB, free: 14.58 MB / 0.8731 GB Notification: Performance of NFFlatten.flatten: time 0.005352/0.3893, allocations: 4.51 MB / 1.117 GB, free: 10.06 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001419/0.3908, allocations: 0.8464 MB / 1.118 GB, free: 9.195 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002202/0.393, allocations: 1.011 MB / 1.119 GB, free: 8.18 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001338/0.3944, allocations: 0.8631 MB / 1.119 GB, free: 7.312 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 0.0001155/0.3945, allocations: 40 kB / 1.119 GB, free: 7.273 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001878/0.3964, allocations: 0.7715 MB / 1.12 GB, free: 6.5 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.0002365/0.3966, allocations: 207 kB / 1.12 GB, free: 6.297 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.0006838/0.3973, allocations: 0.5769 MB / 1.121 GB, free: 5.711 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.001687/0.399, allocations: 1.446 MB / 1.122 GB, free: 4.262 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.399, allocations: 0 / 1.122 GB, free: 4.262 MB / 0.8731 GB Notification: Performance of FrontEnd: time 3.506e-06/0.399, allocations: 0 / 1.122 GB, free: 4.262 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 1.572e-05/0.3991, allocations: 3.938 kB / 1.122 GB, free: 4.258 MB / 0.8731 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.002165/0.4012, allocations: 1.289 MB / 1.124 GB, free: 2.914 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 4.371e-05/0.4013, allocations: 19.97 kB / 1.124 GB, free: 2.895 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003149/0.4016, allocations: 139.4 kB / 1.124 GB, free: 2.758 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001564/0.4032, allocations: 1.068 MB / 1.125 GB, free: 1.648 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5e-05/0.4032, allocations: 57.94 kB / 1.125 GB, free: 1.59 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001075/0.4033, allocations: 79.84 kB / 1.125 GB, free: 1.512 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001351/0.4047, allocations: 0.8022 MB / 1.126 GB, free: 0.6758 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.214e-05/0.4047, allocations: 4 kB / 1.126 GB, free: 0.6719 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.755e-05/0.4048, allocations: 32 kB / 1.126 GB, free: 0.6406 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.321e-05/0.4049, allocations: 16 kB / 1.126 GB, free: 0.625 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001135/0.406, allocations: 0.5906 MB / 1.126 GB, free: 36 kB / 0.8731 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.004013/0.41, allocations: 3.551 MB / 1.13 GB, free: 12.26 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005655/0.4106, allocations: 278.4 kB / 1.13 GB, free: 11.98 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003475/0.411, allocations: 188.8 kB / 1.13 GB, free: 11.79 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004929/0.4115, allocations: 0.6609 MB / 1.131 GB, free: 10.98 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.852e-05/0.4115, allocations: 38.56 kB / 1.131 GB, free: 10.93 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=31): time 2.504e-06/0.4115, allocations: 0 / 1.131 GB, free: 10.93 MB / 0.8887 GB Notification: Performance of matching and sorting (n=31): time 0.001209/0.4127, allocations: 0.5481 MB / 1.131 GB, free: 10.38 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.889e-05/0.4128, allocations: 55.41 kB / 1.131 GB, free: 10.31 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001122/0.4139, allocations: 0.9376 MB / 1.132 GB, free: 9.355 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 4.147e-05/0.4139, allocations: 37.7 kB / 1.132 GB, free: 9.312 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003747/0.4143, allocations: 495.6 kB / 1.133 GB, free: 8.82 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 9.787e-05/0.4144, allocations: 114.4 kB / 1.133 GB, free: 8.707 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.302e-05/0.4145, allocations: 49.7 kB / 1.133 GB, free: 8.652 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0001124/0.4146, allocations: 333.8 kB / 1.133 GB, free: 8.32 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003542/0.415, allocations: 177 kB / 1.134 GB, free: 8.148 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000482/0.4155, allocations: 363 kB / 1.134 GB, free: 7.719 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008146/0.4163, allocations: 0.5342 MB / 1.134 GB, free: 7.113 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.32e-06/0.4163, allocations: 4 kB / 1.134 GB, free: 7.109 MB / 0.8887 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001125/0.4174, allocations: 0.6408 MB / 1.135 GB, free: 6.461 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 2.373e-05/0.4175, allocations: 9.719 kB / 1.135 GB, free: 6.453 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.024e-05/0.4175, allocations: 4 kB / 1.135 GB, free: 6.449 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.215e-05/0.4175, allocations: 8 kB / 1.135 GB, free: 6.441 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004395/0.418, allocations: 131.8 kB / 1.135 GB, free: 6.312 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.488e-05/0.418, allocations: 11.94 kB / 1.135 GB, free: 6.301 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007388/0.4187, allocations: 115.4 kB / 1.135 GB, free: 6.188 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.759e-05/0.4188, allocations: 27.94 kB / 1.135 GB, free: 6.16 MB / 0.8887 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.0003868/0.4192, allocations: 277.6 kB / 1.136 GB, free: 5.879 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001284/0.4193, allocations: 102.7 kB / 1.136 GB, free: 5.777 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009848/0.4203, allocations: 0.4946 MB / 1.136 GB, free: 5.273 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.145e-05/0.4203, allocations: 11.94 kB / 1.136 GB, free: 5.262 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.12e-06/0.4203, allocations: 0 / 1.136 GB, free: 5.262 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007135/0.4211, allocations: 471 kB / 1.137 GB, free: 4.773 MB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002/0.4231, allocations: 1.37 MB / 1.138 GB, free: 3.332 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.727e-06/0.4231, allocations: 0 / 1.138 GB, free: 3.332 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003331/0.4234, allocations: 87.98 kB / 1.138 GB, free: 3.246 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.312e-06/0.4234, allocations: 0 / 1.138 GB, free: 3.246 MB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.528e-05/0.4235, allocations: 15.98 kB / 1.138 GB, free: 3.23 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.336e-06/0.4235, allocations: 4 kB / 1.138 GB, free: 3.227 MB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.226e-06/0.4235, allocations: 4 kB / 1.138 GB, free: 3.223 MB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001263/0.4248, allocations: 0.7977 MB / 1.139 GB, free: 2.395 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003285/0.4251, allocations: 251.6 kB / 1.139 GB, free: 2.129 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001205/0.4252, allocations: 12.06 kB / 1.139 GB, free: 2.117 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000542/0.4258, allocations: 51.95 kB / 1.139 GB, free: 2.066 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.093e-05/0.4259, allocations: 27.95 kB / 1.139 GB, free: 2.039 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.844e-05/0.4259, allocations: 19.98 kB / 1.139 GB, free: 2.02 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 0.0007968/0.4267, allocations: 0.6471 MB / 1.14 GB, free: 1.363 MB / 0.8887 GB Notification: Performance of sort global known variables: time 1.5e-07/0.4267, allocations: 0 / 1.14 GB, free: 1.363 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.0009709/0.4277, allocations: 327.4 kB / 1.14 GB, free: 1.043 MB / 0.8887 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.0007566/0.4285, allocations: 393.6 kB / 1.141 GB, free: 0.6602 MB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 0.0009314/0.4294, allocations: 448 kB / 1.141 GB, free: 228 kB / 0.8887 GB Notification: Performance of simCode: created event and clocks part: time 5.5e-06/0.4294, allocations: 4 kB / 1.141 GB, free: 224 kB / 0.8887 GB Notification: Performance of simCode: created simulation system equations: time 0.00037/0.4298, allocations: 192.6 kB / 1.141 GB, free: 32 kB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003013/0.4328, allocations: 0.6035 MB / 1.142 GB, free: 15.44 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002699/0.4355, allocations: 2.024 MB / 1.144 GB, free: 13.36 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000574/0.4361, allocations: 1.032 MB / 1.145 GB, free: 12.3 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002183/0.4363, allocations: 91.41 kB / 1.145 GB, free: 12.21 MB / 0.9044 GB Notification: Performance of SimCode: time 8.92e-07/0.4363, allocations: 0 / 1.145 GB, free: 12.21 MB / 0.9044 GB Notification: Performance of Templates: time 0.02708/0.4634, allocations: 17.66 MB / 1.162 GB, free: 10.7 MB / 0.92 GB make -j1 -f Buildings_latest_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.makefile (rm -f Buildings_latest_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe >> ../files/Buildings_latest_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.sim & ./Buildings_latest_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Interfaces_Examples_FourPortHeatMassExchanger.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches