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.001229/0.001229, allocations: 103.9 kB / 16.35 MB, free: 5.875 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.001212/0.001213, allocations: 195.5 kB / 17.29 MB, free: 5.516 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.331/1.331, allocations: 222.9 MB / 241 MB, free: 14.98 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.493/2.493, allocations: 442.6 MB / 0.7165 GB, free: 14.65 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.002092/0.002093, allocations: 68.17 kB / 0.8773 GB, free: 10.98 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3415/0.3436, allocations: 153 MB / 1.027 GB, free: 2.066 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger): time 0.04213/0.3858, allocations: 41.59 MB / 1.067 GB, free: 8.328 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.6439/1.03, allocations: 10.38 MB / 1.077 GB, free: 11.7 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002522/1.032, allocations: 59.16 kB / 1.078 GB, free: 11.7 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.002174/1.035, allocations: 0.6407 MB / 1.078 GB, free: 11.7 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.006325/1.041, allocations: 1.884 MB / 1.08 GB, free: 11.65 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.003309/1.044, allocations: 1.186 MB / 1.081 GB, free: 11.62 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.005757/1.05, allocations: 3.396 MB / 1.084 GB, free: 11.62 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002323/1.052, allocations: 1.068 MB / 1.086 GB, free: 11.49 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004348/1.057, allocations: 1.232 MB / 1.087 GB, free: 11.44 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002159/1.059, allocations: 0.882 MB / 1.088 GB, free: 11.28 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 0.0002312/1.059, allocations: 99.72 kB / 1.088 GB, free: 11.28 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00402/1.063, allocations: 0.8536 MB / 1.088 GB, free: 11.26 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0005249/1.064, allocations: 282.7 kB / 1.089 GB, free: 11.22 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.001399/1.065, allocations: 0.6285 MB / 1.089 GB, free: 11.04 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.004631/1.07, allocations: 1.921 MB / 1.091 GB, free: 10.8 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 7.273e-06/1.07, allocations: 0.6094 kB / 1.091 GB, free: 10.8 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.733e-06/1.07, allocations: 5 kB / 1.091 GB, free: 10.79 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 3.067e-05/1.07, allocations: 0 / 1.091 GB, free: 10.79 MB / 0.8419 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.003198/1.073, allocations: 1.515 MB / 1.093 GB, free: 9.977 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.794e-05/1.073, allocations: 9.594 kB / 1.093 GB, free: 9.977 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004007/1.073, allocations: 134.3 kB / 1.093 GB, free: 9.918 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001936/1.075, allocations: 1.099 MB / 1.094 GB, free: 9.562 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.015e-05/1.075, allocations: 54.41 kB / 1.094 GB, free: 9.562 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001148/1.076, allocations: 83.02 kB / 1.094 GB, free: 9.551 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001392/1.077, allocations: 0.7899 MB / 1.095 GB, free: 9.422 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.353e-05/1.077, allocations: 13 kB / 1.095 GB, free: 9.414 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.704e-05/1.077, allocations: 28.56 kB / 1.095 GB, free: 9.414 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.802e-05/1.077, allocations: 22.39 kB / 1.095 GB, free: 9.414 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001208/1.078, allocations: 0.5691 MB / 1.095 GB, free: 9.41 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.005098/1.083, allocations: 3.544 MB / 1.099 GB, free: 7.586 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006458/1.084, allocations: 265.3 kB / 1.099 GB, free: 7.559 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003724/1.085, allocations: 175.8 kB / 1.099 GB, free: 7.551 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004535/1.085, allocations: 0.6645 MB / 1.1 GB, free: 6.797 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.396e-05/1.085, allocations: 38.77 kB / 1.1 GB, free: 6.758 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=31): time 2.174e-06/1.085, allocations: 0 / 1.1 GB, free: 6.758 MB / 0.8419 GB Notification: Performance of matching and sorting (n=31): time 0.00143/1.086, allocations: 0.5168 MB / 1.101 GB, free: 6.668 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.45e-05/1.087, allocations: 56.66 kB / 1.101 GB, free: 6.605 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001528/1.088, allocations: 0.9486 MB / 1.102 GB, free: 6.453 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 4.878e-05/1.088, allocations: 33.48 kB / 1.102 GB, free: 6.422 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004485/1.089, allocations: 496.5 kB / 1.102 GB, free: 6.23 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001326/1.089, allocations: 116.2 kB / 1.102 GB, free: 6.16 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001747/1.089, allocations: 111.4 kB / 1.102 GB, free: 6.133 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 8.654e-05/1.089, allocations: 325.8 kB / 1.103 GB, free: 5.82 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003554/1.089, allocations: 169.4 kB / 1.103 GB, free: 5.766 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004583/1.09, allocations: 352.6 kB / 1.103 GB, free: 5.496 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008072/1.091, allocations: 0.5103 MB / 1.104 GB, free: 5.168 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.509e-06/1.091, allocations: 0.6562 kB / 1.104 GB, free: 5.168 MB / 0.8419 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001221/1.092, allocations: 0.6214 MB / 1.104 GB, free: 4.934 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 2.195e-05/1.092, allocations: 9.219 kB / 1.104 GB, free: 4.934 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.324e-05/1.092, allocations: 6.438 kB / 1.104 GB, free: 4.934 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.58e-05/1.092, allocations: 8.25 kB / 1.104 GB, free: 4.934 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004561/1.092, allocations: 124.9 kB / 1.104 GB, free: 4.93 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.739e-05/1.092, allocations: 10.95 kB / 1.104 GB, free: 4.93 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007371/1.093, allocations: 92.5 kB / 1.104 GB, free: 4.875 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.063e-05/1.093, allocations: 24.98 kB / 1.104 GB, free: 4.871 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004025/1.094, allocations: 274.9 kB / 1.105 GB, free: 4.672 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001754/1.094, allocations: 99.59 kB / 1.105 GB, free: 4.621 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001026/1.095, allocations: 485.9 kB / 1.105 GB, free: 4.43 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.618e-05/1.095, allocations: 4.047 kB / 1.105 GB, free: 4.43 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.795e-06/1.095, allocations: 3.938 kB / 1.105 GB, free: 4.426 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00071/1.096, allocations: 451.6 kB / 1.106 GB, free: 4.176 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00235/1.098, allocations: 1.366 MB / 1.107 GB, free: 3.453 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.671e-06/1.098, allocations: 1.062 kB / 1.107 GB, free: 3.453 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003567/1.098, allocations: 73.53 kB / 1.107 GB, free: 3.453 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.464e-06/1.098, allocations: 7.5 kB / 1.107 GB, free: 3.449 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.681e-05/1.098, allocations: 9.844 kB / 1.107 GB, free: 3.445 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.073e-06/1.098, allocations: 8.547 kB / 1.107 GB, free: 3.441 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.136e-06/1.098, allocations: 5.312 kB / 1.107 GB, free: 3.441 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001239/1.1, allocations: 0.7624 MB / 1.108 GB, free: 3.043 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003982/1.1, allocations: 221.9 kB / 1.108 GB, free: 2.867 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001217/1.1, allocations: 11.94 kB / 1.108 GB, free: 2.859 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004946/1.101, allocations: 36 kB / 1.108 GB, free: 2.848 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.935e-05/1.101, allocations: 24.58 kB / 1.108 GB, free: 2.844 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.742e-05/1.101, allocations: 21.39 kB / 1.108 GB, free: 2.84 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0009561/1.102, allocations: 0.6568 MB / 1.109 GB, free: 2.555 MB / 0.8419 GB Notification: Performance of sort global known variables: time 3.81e-07/1.102, allocations: 0 / 1.109 GB, free: 2.555 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.001275/1.103, allocations: 335 kB / 1.109 GB, free: 2.484 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 (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.0009267/1.104, allocations: 407.6 kB / 1.11 GB, free: 2.305 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0009816/1.105, allocations: 426.2 kB / 1.11 GB, free: 2.195 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 3.868e-06/1.105, allocations: 0 / 1.11 GB, free: 2.195 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0003855/1.105, allocations: 185.8 kB / 1.11 GB, free: 2.152 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002545/1.108, allocations: 0.6071 MB / 1.111 GB, free: 1.965 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002529/1.111, allocations: 1.606 MB / 1.112 GB, free: 1.051 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005871/1.111, allocations: 1.033 MB / 1.113 GB, free: 328 kB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.00083/1.112, allocations: 195.8 kB / 1.113 GB, free: 280 kB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001908/1.112, allocations: 79.64 kB / 1.114 GB, free: 268 kB / 0.8419 GB Notification: Performance of SimCode: time 9.41e-07/1.112, allocations: 0 / 1.114 GB, free: 268 kB / 0.8419 GB Notification: Performance of Templates: time 0.04858/1.161, allocations: 21.22 MB / 1.134 GB, free: 9.789 MB / 0.8575 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 -s cvode -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