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.001172/0.001171, allocations: 110 kB / 16.37 MB, free: 6.469 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.001182/0.001182, allocations: 195.8 kB / 17.31 MB, free: 5.824 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.319/1.319, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.437/2.437, allocations: 442.6 MB / 0.7165 GB, free: 14.72 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001256/0.001256, allocations: 73.2 kB / 0.8773 GB, free: 11 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2621/0.2634, allocations: 153 MB / 1.027 GB, free: 2.094 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger): time 0.03791/0.3013, allocations: 41.59 MB / 1.067 GB, free: 8.355 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.5317/0.833, allocations: 10.39 MB / 1.077 GB, free: 11.67 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001777/0.8349, allocations: 56.81 kB / 1.078 GB, free: 11.67 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.001651/0.8366, allocations: 0.6378 MB / 1.078 GB, free: 11.67 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.004836/0.8414, allocations: 1.883 MB / 1.08 GB, free: 11.62 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.00298/0.8444, allocations: 1.187 MB / 1.081 GB, free: 11.59 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.004812/0.8493, allocations: 3.395 MB / 1.084 GB, free: 11.59 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001662/0.8509, allocations: 1.06 MB / 1.086 GB, free: 11.46 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002998/0.8539, allocations: 1.234 MB / 1.087 GB, free: 11.4 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001665/0.8556, allocations: 0.883 MB / 1.088 GB, free: 11.24 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 0.000208/0.8558, allocations: 100.6 kB / 1.088 GB, free: 11.24 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002404/0.8583, allocations: 0.8627 MB / 1.089 GB, free: 11.22 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0003697/0.8586, allocations: 275.1 kB / 1.089 GB, free: 11.18 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0008777/0.8595, allocations: 0.6317 MB / 1.089 GB, free: 11 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.003308/0.8628, allocations: 1.926 MB / 1.091 GB, free: 10.75 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 5.21e-06/0.8629, allocations: 1.125 kB / 1.091 GB, free: 10.75 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.442e-06/0.8629, allocations: 0 / 1.091 GB, free: 10.75 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 2.622e-05/0.8629, allocations: 0 / 1.091 GB, free: 10.75 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.002726/0.8656, allocations: 1.514 MB / 1.093 GB, free: 9.938 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.64e-05/0.8657, allocations: 9.312 kB / 1.093 GB, free: 9.938 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004325/0.8661, allocations: 131.6 kB / 1.093 GB, free: 9.879 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001987/0.8681, allocations: 1.107 MB / 1.094 GB, free: 9.52 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.474e-05/0.8682, allocations: 56.19 kB / 1.094 GB, free: 9.52 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001184/0.8683, allocations: 73.06 kB / 1.094 GB, free: 9.516 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001427/0.8697, allocations: 0.7916 MB / 1.095 GB, free: 9.383 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.28e-05/0.8698, allocations: 4 kB / 1.095 GB, free: 9.383 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.71e-05/0.8698, allocations: 33.27 kB / 1.095 GB, free: 9.379 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.174e-05/0.8699, allocations: 19.83 kB / 1.095 GB, free: 9.379 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001128/0.871, allocations: 0.5712 MB / 1.095 GB, free: 9.371 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.004048/0.8751, allocations: 3.549 MB / 1.099 GB, free: 7.551 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005711/0.8757, allocations: 265.3 kB / 1.099 GB, free: 7.52 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003469/0.876, allocations: 179 kB / 1.099 GB, free: 7.512 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003634/0.8764, allocations: 0.6557 MB / 1.1 GB, free: 6.762 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.029e-05/0.8764, allocations: 35.55 kB / 1.1 GB, free: 6.723 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=31): time 2.064e-06/0.8764, allocations: 1.031 kB / 1.1 GB, free: 6.723 MB / 0.8419 GB Notification: Performance of matching and sorting (n=31): time 0.001305/0.8777, allocations: 0.5215 MB / 1.101 GB, free: 6.633 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.573e-05/0.8778, allocations: 56.22 kB / 1.101 GB, free: 6.57 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001358/0.8791, allocations: 0.9434 MB / 1.102 GB, free: 6.418 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 5.026e-05/0.8792, allocations: 35.86 kB / 1.102 GB, free: 6.387 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.00034/0.8795, allocations: 0.4933 MB / 1.102 GB, free: 6.191 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001027/0.8797, allocations: 114.7 kB / 1.102 GB, free: 6.121 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001593/0.8798, allocations: 111.3 kB / 1.102 GB, free: 6.102 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 5.863e-05/0.8799, allocations: 328.7 kB / 1.103 GB, free: 5.797 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003523/0.8802, allocations: 161.8 kB / 1.103 GB, free: 5.773 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000444/0.8807, allocations: 356 kB / 1.103 GB, free: 5.5 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007625/0.8815, allocations: 0.5139 MB / 1.104 GB, free: 5.172 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.481e-06/0.8815, allocations: 2.75 kB / 1.104 GB, free: 5.172 MB / 0.8419 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001147/0.8826, allocations: 0.619 MB / 1.104 GB, free: 4.941 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.91e-05/0.8827, allocations: 6.594 kB / 1.104 GB, free: 4.941 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.909e-06/0.8827, allocations: 6 kB / 1.104 GB, free: 4.941 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.706e-05/0.8827, allocations: 12.89 kB / 1.104 GB, free: 4.938 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004708/0.8832, allocations: 120 kB / 1.104 GB, free: 4.934 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.58e-05/0.8832, allocations: 17.09 kB / 1.104 GB, free: 4.93 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007184/0.8839, allocations: 83.86 kB / 1.104 GB, free: 4.883 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.269e-05/0.884, allocations: 30.28 kB / 1.104 GB, free: 4.875 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.0003771/0.8844, allocations: 275.5 kB / 1.105 GB, free: 4.676 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001572/0.8846, allocations: 102.6 kB / 1.105 GB, free: 4.621 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009646/0.8855, allocations: 485.2 kB / 1.105 GB, free: 4.434 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.333e-05/0.8856, allocations: 8.094 kB / 1.105 GB, free: 4.43 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.701e-06/0.8856, allocations: 4.062 kB / 1.105 GB, free: 4.426 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006966/0.8863, allocations: 457 kB / 1.106 GB, free: 4.172 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002286/0.8886, allocations: 1.358 MB / 1.107 GB, free: 3.457 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.2e-06/0.8886, allocations: 1.094 kB / 1.107 GB, free: 3.457 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003534/0.8889, allocations: 77.31 kB / 1.107 GB, free: 3.453 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.091e-06/0.889, allocations: 3.75 kB / 1.107 GB, free: 3.453 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.834e-05/0.889, allocations: 8.938 kB / 1.107 GB, free: 3.449 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.561e-06/0.889, allocations: 7.188 kB / 1.107 GB, free: 3.445 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.995e-06/0.889, allocations: 2.562 kB / 1.107 GB, free: 3.445 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0012/0.8902, allocations: 0.7673 MB / 1.108 GB, free: 3.043 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000365/0.8906, allocations: 221.2 kB / 1.108 GB, free: 2.867 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001251/0.8907, allocations: 7.922 kB / 1.108 GB, free: 2.863 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005238/0.8912, allocations: 35.81 kB / 1.108 GB, free: 2.852 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.208e-05/0.8913, allocations: 28.75 kB / 1.108 GB, free: 2.848 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.308e-05/0.8914, allocations: 15.92 kB / 1.108 GB, free: 2.848 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0008517/0.8922, allocations: 0.6655 MB / 1.109 GB, free: 2.555 MB / 0.8419 GB Notification: Performance of sort global known variables: time 2.8e-07/0.8922, allocations: 1.094 kB / 1.109 GB, free: 2.555 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.001075/0.8933, allocations: 334.1 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.0007775/0.8941, allocations: 398.5 kB / 1.11 GB, free: 2.316 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0009182/0.895, allocations: 424.3 kB / 1.11 GB, free: 2.207 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 4.168e-06/0.8951, allocations: 2.344 kB / 1.11 GB, free: 2.207 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0003809/0.8954, allocations: 191.5 kB / 1.11 GB, free: 2.16 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002412/0.8979, allocations: 0.6009 MB / 1.111 GB, free: 1.977 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002181/0.9001, allocations: 1.597 MB / 1.112 GB, free: 1.066 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004917/0.9006, allocations: 1.038 MB / 1.113 GB, free: 340 kB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0006295/0.9012, allocations: 197.1 kB / 1.113 GB, free: 292 kB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001586/0.9014, allocations: 85.94 kB / 1.114 GB, free: 276 kB / 0.8419 GB Notification: Performance of SimCode: time 5.51e-07/0.9014, allocations: 0 / 1.114 GB, free: 276 kB / 0.8419 GB Notification: Performance of Templates: time 0.03768/0.9391, allocations: 21.22 MB / 1.134 GB, free: 9.82 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 gbode -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