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.001081/0.001081, allocations: 97.72 kB / 15.36 MB, free: 0.7344 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.01261/0.01261, allocations: 168.5 kB / 16.26 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.391/1.391, allocations: 223.3 MB / 240.3 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.728/2.728, allocations: 462.6 MB / 0.7363 GB, free: 15.61 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.000525/0.000525, allocations: 13.67 kB / 0.9027 GB, free: 36.52 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3792/0.3797, 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.04385/0.4236, allocations: 40.5 MB / 1.098 GB, free: 12.37 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.01648/0.4402, allocations: 10.35 MB / 1.108 GB, free: 1.988 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001994/0.4422, allocations: 51.62 kB / 1.108 GB, free: 1.938 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.001676/0.4439, allocations: 0.5283 MB / 1.109 GB, free: 1.406 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.005268/0.4492, allocations: 1.738 MB / 1.111 GB, free: 15.66 MB / 0.8731 GB Notification: Performance of NFTyping.typeClassSections: time 0.003076/0.4523, allocations: 1.077 MB / 1.112 GB, free: 14.59 MB / 0.8731 GB Notification: Performance of NFFlatten.flatten: time 0.005384/0.4577, allocations: 4.514 MB / 1.116 GB, free: 10.07 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001597/0.4593, allocations: 0.8503 MB / 1.117 GB, free: 9.207 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00234/0.4616, allocations: 1.011 MB / 1.118 GB, free: 8.191 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001613/0.4633, allocations: 0.8553 MB / 1.119 GB, free: 7.332 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 0.0002408/0.4635, allocations: 40 kB / 1.119 GB, free: 7.293 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002275/0.4658, allocations: 0.7677 MB / 1.119 GB, free: 6.523 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.0003898/0.4662, allocations: 219 kB / 1.12 GB, free: 6.309 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.001079/0.4673, allocations: 0.5769 MB / 1.12 GB, free: 5.723 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.003046/0.4703, allocations: 1.838 MB / 1.122 GB, free: 3.879 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 6.452e-06/0.4704, allocations: 4 kB / 1.122 GB, free: 3.875 MB / 0.8731 GB Notification: Performance of FrontEnd: time 1.893e-06/0.4704, allocations: 3.938 kB / 1.122 GB, free: 3.871 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 6.469e-05/0.4704, allocations: 0 / 1.122 GB, free: 3.871 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.002884/0.4733, allocations: 1.297 MB / 1.123 GB, free: 2.52 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 5.335e-05/0.4734, allocations: 15.97 kB / 1.123 GB, free: 2.504 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005222/0.4739, allocations: 135.4 kB / 1.123 GB, free: 2.371 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002162/0.4761, allocations: 1.076 MB / 1.124 GB, free: 1.254 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.057e-05/0.4762, allocations: 62 kB / 1.125 GB, free: 1.191 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001433/0.4763, allocations: 75.91 kB / 1.125 GB, free: 1.117 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00163/0.478, allocations: 0.7983 MB / 1.125 GB, free: 292 kB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.61e-05/0.478, allocations: 8 kB / 1.125 GB, free: 284 kB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.521e-05/0.4781, allocations: 28 kB / 1.125 GB, free: 256 kB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.099e-05/0.4781, allocations: 16 kB / 1.125 GB, free: 240 kB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001327/0.4795, allocations: 0.5906 MB / 1.126 GB, free: 15.64 MB / 0.8887 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.004563/0.484, allocations: 3.555 MB / 1.129 GB, free: 11.86 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006358/0.4847, allocations: 276.9 kB / 1.13 GB, free: 11.59 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003892/0.4851, allocations: 186.5 kB / 1.13 GB, free: 11.4 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005296/0.4856, allocations: 0.661 MB / 1.131 GB, free: 10.59 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.636e-05/0.4857, allocations: 34.56 kB / 1.131 GB, free: 10.55 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=31): time 2.205e-06/0.4857, allocations: 0 / 1.131 GB, free: 10.55 MB / 0.8887 GB Notification: Performance of matching and sorting (n=31): time 0.001305/0.487, allocations: 0.5558 MB / 1.131 GB, free: 9.988 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.524e-05/0.487, allocations: 55.41 kB / 1.131 GB, free: 9.922 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001282/0.4883, allocations: 0.9338 MB / 1.132 GB, free: 8.969 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 4.984e-05/0.4884, allocations: 33.7 kB / 1.132 GB, free: 8.93 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004184/0.4888, allocations: 0.4918 MB / 1.133 GB, free: 8.43 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001077/0.4889, allocations: 106.4 kB / 1.133 GB, free: 8.324 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.168e-05/0.489, allocations: 53.69 kB / 1.133 GB, free: 8.266 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0001135/0.4891, allocations: 333.9 kB / 1.133 GB, free: 7.934 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003955/0.4895, allocations: 169 kB / 1.133 GB, free: 7.77 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005158/0.4901, allocations: 370.9 kB / 1.134 GB, free: 7.332 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008975/0.491, allocations: 0.5342 MB / 1.134 GB, free: 6.727 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.925e-06/0.491, allocations: 4 kB / 1.134 GB, free: 6.723 MB / 0.8887 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.0013/0.4923, allocations: 0.637 MB / 1.135 GB, free: 6.078 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 2.427e-05/0.4923, allocations: 8 kB / 1.135 GB, free: 6.07 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.112e-05/0.4924, allocations: 4 kB / 1.135 GB, free: 6.066 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.409e-05/0.4924, allocations: 8 kB / 1.135 GB, free: 6.059 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004863/0.4929, allocations: 131.8 kB / 1.135 GB, free: 5.93 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.8e-05/0.4929, allocations: 8 kB / 1.135 GB, free: 5.922 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008371/0.4937, allocations: 119.2 kB / 1.135 GB, free: 5.805 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.061e-05/0.4938, allocations: 35.86 kB / 1.135 GB, free: 5.77 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.0004015/0.4942, allocations: 273.6 kB / 1.135 GB, free: 5.492 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001692/0.4944, allocations: 98.78 kB / 1.135 GB, free: 5.395 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001062/0.4955, allocations: 0.4966 MB / 1.136 GB, free: 4.887 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.033e-05/0.4955, allocations: 0 / 1.136 GB, free: 4.887 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.731e-06/0.4955, allocations: 8 kB / 1.136 GB, free: 4.879 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007783/0.4963, allocations: 475 kB / 1.136 GB, free: 4.387 MB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002199/0.4985, allocations: 1.366 MB / 1.138 GB, free: 2.949 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.69e-06/0.4985, allocations: 3.984 kB / 1.138 GB, free: 2.945 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003488/0.4989, allocations: 91.98 kB / 1.138 GB, free: 2.855 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.901e-06/0.4989, allocations: 64 / 1.138 GB, free: 2.855 MB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.064e-05/0.4989, allocations: 12 kB / 1.138 GB, free: 2.844 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.08e-06/0.4989, allocations: 4 kB / 1.138 GB, free: 2.84 MB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.757e-06/0.4989, allocations: 4 kB / 1.138 GB, free: 2.836 MB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001347/0.5003, allocations: 0.8016 MB / 1.139 GB, free: 2.004 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004072/0.5007, allocations: 247.6 kB / 1.139 GB, free: 1.742 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001537/0.5009, allocations: 8.062 kB / 1.139 GB, free: 1.734 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006585/0.5016, allocations: 59.94 kB / 1.139 GB, free: 1.676 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.115e-05/0.5016, allocations: 27.97 kB / 1.139 GB, free: 1.648 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.977e-05/0.5017, allocations: 15.98 kB / 1.139 GB, free: 1.633 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 0.0009284/0.5026, allocations: 0.6471 MB / 1.14 GB, free: 0.9766 MB / 0.8887 GB Notification: Performance of sort global known variables: time 1.583e-06/0.5026, allocations: 0 / 1.14 GB, free: 0.9766 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.001083/0.5037, allocations: 339.4 kB / 1.14 GB, free: 0.6445 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.0008991/0.5046, allocations: 380.5 kB / 1.14 GB, free: 280 kB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 0.001012/0.5056, allocations: 448 kB / 1.141 GB, free: 15.84 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 3.297e-06/0.5057, allocations: 0 / 1.141 GB, free: 15.84 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0004271/0.5061, allocations: 204.5 kB / 1.141 GB, free: 15.64 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003366/0.5095, allocations: 0.6038 MB / 1.141 GB, free: 15.04 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00298/0.5125, allocations: 1.985 MB / 1.143 GB, free: 13.01 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007814/0.5133, allocations: 1.044 MB / 1.144 GB, free: 11.94 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 0.0009307/0.5142, allocations: 195.5 kB / 1.145 GB, free: 11.75 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002111/0.5144, allocations: 83.42 kB / 1.145 GB, free: 11.66 MB / 0.9044 GB Notification: Performance of SimCode: time 2.234e-06/0.5144, allocations: 0 / 1.145 GB, free: 11.66 MB / 0.9044 GB Notification: Performance of Templates: time 0.03638/0.5508, allocations: 20.21 MB / 1.164 GB, free: 7.723 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches