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.001243/0.001243, allocations: 99.55 kB / 15.05 MB, free: 1.105 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.001534/0.001534, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.352/1.352, allocations: 223.2 MB / 239.9 MB, free: 5.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.581/2.581, allocations: 436.5 MB / 0.7104 GB, free: 7.84 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0004651/0.0004651, allocations: 16 kB / 0.8707 GB, free: 4.773 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6556/0.6561, allocations: 153.6 MB / 1.021 GB, free: 1.094 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger): time 0.03609/0.6922, allocations: 34.82 MB / 1.055 GB, free: 14.18 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.01314/0.7054, allocations: 8.958 MB / 1.064 GB, free: 5.203 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001649/0.7071, allocations: 51.62 kB / 1.064 GB, free: 5.152 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.002081/0.7092, allocations: 0.6102 MB / 1.064 GB, free: 4.539 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.006287/0.7155, allocations: 1.83 MB / 1.066 GB, free: 2.707 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.003867/0.7194, allocations: 1.353 MB / 1.067 GB, free: 1.379 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.003686/0.7231, allocations: 1.97 MB / 1.069 GB, free: 15.41 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001247/0.7243, allocations: 0.7457 MB / 1.07 GB, free: 14.65 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001672/0.726, allocations: 0.8757 MB / 1.071 GB, free: 13.77 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000751/0.7268, allocations: 0.5482 MB / 1.071 GB, free: 13.22 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 9.448e-05/0.7269, allocations: 36 kB / 1.071 GB, free: 13.18 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001578/0.7285, allocations: 0.5422 MB / 1.072 GB, free: 12.64 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0002127/0.7287, allocations: 195.2 kB / 1.072 GB, free: 12.45 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0002602/0.7289, allocations: 257.1 kB / 1.072 GB, free: 12.19 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.001568/0.7305, allocations: 1.366 MB / 1.074 GB, free: 10.82 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 2.786e-06/0.7305, allocations: 0 / 1.074 GB, free: 10.82 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.673e-06/0.7305, allocations: 0 / 1.074 GB, free: 10.82 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 2.04e-05/0.7306, allocations: 0 / 1.074 GB, free: 10.82 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: 174 * Number of variables: 174 Notification: Performance of Generate backend data structure: time 0.002316/0.7329, allocations: 1.316 MB / 1.075 GB, free: 9.453 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.707e-05/0.7329, allocations: 11.98 kB / 1.075 GB, free: 9.441 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003304/0.7333, allocations: 130.5 kB / 1.075 GB, free: 9.312 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001599/0.7349, allocations: 0.9748 MB / 1.076 GB, free: 8.297 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.075e-05/0.7349, allocations: 61.94 kB / 1.076 GB, free: 8.234 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.721e-05/0.7351, allocations: 75.91 kB / 1.076 GB, free: 8.16 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001324/0.7364, allocations: 0.7866 MB / 1.077 GB, free: 7.344 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.318e-05/0.7364, allocations: 4 kB / 1.077 GB, free: 7.34 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.181e-05/0.7365, allocations: 27.95 kB / 1.077 GB, free: 7.312 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.193e-05/0.7365, allocations: 27.98 kB / 1.077 GB, free: 7.285 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001091/0.7376, allocations: 0.5828 MB / 1.078 GB, free: 6.703 MB / 0.8262 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.00388/0.7415, allocations: 3.583 MB / 1.081 GB, free: 2.891 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005462/0.7421, allocations: 273.5 kB / 1.081 GB, free: 2.617 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004723/0.7426, allocations: 0.6609 MB / 1.082 GB, free: 1.809 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.576e-05/0.7426, allocations: 39.03 kB / 1.082 GB, free: 1.762 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=31): time 1.924e-06/0.7426, allocations: 0 / 1.082 GB, free: 1.762 MB / 0.8262 GB Notification: Performance of matching and sorting (n=31): time 0.001159/0.7438, allocations: 0.54 MB / 1.083 GB, free: 1.215 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.331e-05/0.7438, allocations: 59.41 kB / 1.083 GB, free: 1.145 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001108/0.7449, allocations: 0.9651 MB / 1.084 GB, free: 164 kB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 4.01e-05/0.745, allocations: 33.7 kB / 1.084 GB, free: 124 kB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003818/0.7454, allocations: 0.4957 MB / 1.084 GB, free: 15.62 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 9.267e-05/0.7455, allocations: 110.4 kB / 1.084 GB, free: 15.51 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.483e-05/0.7455, allocations: 11.94 kB / 1.084 GB, free: 15.5 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 9.889e-05/0.7456, allocations: 326 kB / 1.084 GB, free: 15.17 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003624/0.746, allocations: 177 kB / 1.085 GB, free: 15 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004635/0.7464, allocations: 355 kB / 1.085 GB, free: 14.58 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004237/0.7469, allocations: 235.8 kB / 1.085 GB, free: 14.35 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.817e-06/0.7469, allocations: 0 / 1.085 GB, free: 14.35 MB / 0.8419 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001101/0.748, allocations: 0.6406 MB / 1.086 GB, free: 13.7 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.812e-05/0.748, allocations: 5.875 kB / 1.086 GB, free: 13.7 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.608e-06/0.748, allocations: 8 kB / 1.086 GB, free: 13.69 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.824e-05/0.7481, allocations: 8 kB / 1.086 GB, free: 13.68 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00045/0.7485, allocations: 128.2 kB / 1.086 GB, free: 13.55 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.589e-05/0.7486, allocations: 19.92 kB / 1.086 GB, free: 13.54 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006908/0.7492, allocations: 115.2 kB / 1.086 GB, free: 13.42 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.422e-05/0.7493, allocations: 27.98 kB / 1.086 GB, free: 13.39 MB / 0.8419 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003629/0.7497, allocations: 273.6 kB / 1.086 GB, free: 13.12 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001265/0.7498, allocations: 102.7 kB / 1.087 GB, free: 13.02 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009669/0.7508, allocations: 0.4966 MB / 1.087 GB, free: 12.51 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.075e-05/0.7508, allocations: 4 kB / 1.087 GB, free: 12.51 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.009e-06/0.7508, allocations: 0 / 1.087 GB, free: 12.51 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007464/0.7516, allocations: 469.5 kB / 1.087 GB, free: 12.02 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00204/0.7536, allocations: 1.393 MB / 1.089 GB, free: 10.55 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.847e-06/0.7536, allocations: 4.156 kB / 1.089 GB, free: 10.55 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003364/0.754, allocations: 83.89 kB / 1.089 GB, free: 10.47 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.294e-06/0.754, allocations: 4 kB / 1.089 GB, free: 10.46 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.751e-05/0.754, allocations: 8 kB / 1.089 GB, free: 10.46 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.358e-06/0.754, allocations: 4 kB / 1.089 GB, free: 10.45 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.617e-06/0.754, allocations: 0 / 1.089 GB, free: 10.45 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001284/0.7553, allocations: 0.8759 MB / 1.09 GB, free: 9.523 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003575/0.7557, allocations: 259.7 kB / 1.09 GB, free: 9.25 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000115/0.7558, allocations: 8 kB / 1.09 GB, free: 9.242 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005663/0.7564, allocations: 59.8 kB / 1.09 GB, free: 9.184 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.778e-05/0.7565, allocations: 27.95 kB / 1.09 GB, free: 9.156 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.747e-05/0.7565, allocations: 27.98 kB / 1.09 GB, free: 9.129 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0008148/0.7574, allocations: 0.6667 MB / 1.091 GB, free: 8.453 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7574, allocations: 0 / 1.091 GB, free: 8.453 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0009276/0.7583, allocations: 343.4 kB / 1.091 GB, free: 8.117 MB / 0.8419 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006317/0.7589, allocations: 384.3 kB / 1.091 GB, free: 7.742 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0008762/0.7598, allocations: 444 kB / 1.092 GB, free: 7.309 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 3.537e-06/0.7598, allocations: 0 / 1.092 GB, free: 7.309 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0003763/0.7602, allocations: 200.6 kB / 1.092 GB, free: 7.113 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002666/0.7629, allocations: 0.5856 MB / 1.093 GB, free: 6.535 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00263/0.7655, allocations: 1.962 MB / 1.095 GB, free: 4.523 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006695/0.7662, allocations: 1.06 MB / 1.096 GB, free: 3.434 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0008673/0.7671, allocations: 203.4 kB / 1.096 GB, free: 3.234 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001774/0.7673, allocations: 79.42 kB / 1.096 GB, free: 3.156 MB / 0.8419 GB Notification: Performance of SimCode: time 7.31e-07/0.7673, allocations: 4 kB / 1.096 GB, free: 3.152 MB / 0.8419 GB Notification: Performance of Templates: time 0.03426/0.8016, allocations: 20.15 MB / 1.116 GB, free: 15.27 MB / 0.8731 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","../files/Buildings_latest_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches