Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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_9_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_9_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.009568/0.009568, allocations: 105.9 kB / 15.73 MB, free: 6 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.00282/0.002821, allocations: 189 kB / 16.67 MB, free: 5.926 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.413/1.413, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.309/2.309, allocations: 390.2 MB / 0.6648 GB, free: 0.6875 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001198/0.001198, allocations: 64.14 kB / 0.9508 GB, free: 7.672 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.02/1.021, allocations: 140.4 MB / 1.088 GB, free: 5.539 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger): time 0.04664/1.068, allocations: 41.58 MB / 1.129 GB, free: 7.711 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.01871/1.086, allocations: 10.4 MB / 1.139 GB, free: 256 kB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003296/1.09, allocations: 64 kB / 1.139 GB, free: 228 kB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.002423/1.092, allocations: 0.6521 MB / 1.139 GB, free: 15.82 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.007229/1.1, allocations: 1.983 MB / 1.141 GB, free: 14.65 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.00429/1.104, allocations: 1.184 MB / 1.142 GB, free: 14 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.00638/1.11, allocations: 3.404 MB / 1.146 GB, free: 12.36 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001997/1.112, allocations: 1.068 MB / 1.147 GB, free: 11.86 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00367/1.116, allocations: 1.268 MB / 1.148 GB, free: 11.26 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00183/1.118, allocations: 0.8788 MB / 1.149 GB, free: 10.85 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 0.0001963/1.118, allocations: 99.09 kB / 1.149 GB, free: 10.85 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002631/1.121, allocations: 0.8631 MB / 1.15 GB, free: 10.5 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0003842/1.121, allocations: 280.6 kB / 1.15 GB, free: 10.34 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.0009767/1.122, allocations: 0.6247 MB / 1.151 GB, free: 9.957 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.004168/1.126, allocations: 1.929 MB / 1.153 GB, free: 9.23 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 6.763e-06/1.126, allocations: 0.6094 kB / 1.153 GB, free: 9.23 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.803e-06/1.126, allocations: 1.188 kB / 1.153 GB, free: 9.23 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 3.294e-05/1.126, allocations: 0 / 1.153 GB, free: 9.23 MB / 0.9044 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.002996/1.129, allocations: 1.509 MB / 1.154 GB, free: 8.207 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 4.128e-05/1.129, allocations: 8.688 kB / 1.154 GB, free: 8.207 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004277/1.13, allocations: 134.7 kB / 1.154 GB, free: 8.145 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002268/1.132, allocations: 1.113 MB / 1.155 GB, free: 7.477 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.509e-05/1.132, allocations: 50.88 kB / 1.155 GB, free: 7.457 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001295/1.132, allocations: 72.12 kB / 1.155 GB, free: 7.434 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001696/1.134, allocations: 0.7978 MB / 1.156 GB, free: 7.047 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.739e-05/1.134, allocations: 0 / 1.156 GB, free: 7.047 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.479e-05/1.134, allocations: 31.34 kB / 1.156 GB, free: 7.023 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.079e-05/1.134, allocations: 24.03 kB / 1.156 GB, free: 7.02 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001287/1.135, allocations: 0.5671 MB / 1.157 GB, free: 6.828 MB / 0.9044 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.00483/1.14, allocations: 3.544 MB / 1.16 GB, free: 4.242 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006436/1.141, allocations: 265.6 kB / 1.161 GB, free: 4.137 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003644/1.141, allocations: 180.9 kB / 1.161 GB, free: 4.074 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005301/1.142, allocations: 0.6584 MB / 1.161 GB, free: 3.312 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.307e-05/1.142, allocations: 45.52 kB / 1.161 GB, free: 3.262 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=31): time 2.495e-06/1.142, allocations: 0 / 1.161 GB, free: 3.262 MB / 0.9044 GB Notification: Performance of matching and sorting (n=31): time 0.001317/1.143, allocations: 0.5135 MB / 1.162 GB, free: 3.062 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.044e-05/1.143, allocations: 55.88 kB / 1.162 GB, free: 3 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001394/1.145, allocations: 0.9483 MB / 1.163 GB, free: 2.598 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 4.381e-05/1.145, allocations: 32.39 kB / 1.163 GB, free: 2.562 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004422/1.145, allocations: 0.4889 MB / 1.163 GB, free: 2.172 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001333/1.145, allocations: 115.2 kB / 1.164 GB, free: 2.082 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001573/1.145, allocations: 111.5 kB / 1.164 GB, free: 2.023 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001119/1.146, allocations: 336 kB / 1.164 GB, free: 1.703 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003635/1.146, allocations: 163.3 kB / 1.164 GB, free: 1.648 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005126/1.147, allocations: 348.6 kB / 1.164 GB, free: 1.379 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008491/1.147, allocations: 0.5148 MB / 1.165 GB, free: 1.023 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.991e-06/1.147, allocations: 1.844 kB / 1.165 GB, free: 1.023 MB / 0.9044 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001334/1.149, allocations: 0.6153 MB / 1.166 GB, free: 0.7656 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 2.613e-05/1.149, allocations: 8.094 kB / 1.166 GB, free: 0.7656 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.301e-05/1.149, allocations: 9.531 kB / 1.166 GB, free: 0.7617 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.537e-05/1.149, allocations: 8.188 kB / 1.166 GB, free: 0.7617 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004736/1.149, allocations: 123.3 kB / 1.166 GB, free: 0.75 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.027e-05/1.149, allocations: 12.77 kB / 1.166 GB, free: 0.7461 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007298/1.15, allocations: 82.55 kB / 1.166 GB, free: 0.6992 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.469e-05/1.15, allocations: 26.67 kB / 1.166 GB, free: 0.6953 MB / 0.9044 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.0004106/1.151, allocations: 284.2 kB / 1.166 GB, free: 492 kB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001737/1.151, allocations: 98.97 kB / 1.166 GB, free: 440 kB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001052/1.152, allocations: 485.3 kB / 1.167 GB, free: 240 kB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.427e-05/1.152, allocations: 4.25 kB / 1.167 GB, free: 240 kB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.016e-06/1.152, allocations: 8.969 kB / 1.167 GB, free: 232 kB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007892/1.153, allocations: 448.8 kB / 1.167 GB, free: 15.97 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002249/1.155, allocations: 1.365 MB / 1.168 GB, free: 14.97 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.16e-06/1.155, allocations: 1.75 kB / 1.168 GB, free: 14.97 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003479/1.155, allocations: 80.03 kB / 1.168 GB, free: 14.95 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.312e-05/1.155, allocations: 7.094 kB / 1.168 GB, free: 14.94 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.22e-05/1.155, allocations: 12.41 kB / 1.168 GB, free: 14.93 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.88e-06/1.155, allocations: 6.688 kB / 1.168 GB, free: 14.93 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.699e-06/1.155, allocations: 5.859 kB / 1.168 GB, free: 14.93 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001385/1.157, allocations: 0.767 MB / 1.169 GB, free: 14.43 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003849/1.157, allocations: 226.4 kB / 1.169 GB, free: 14.23 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001232/1.157, allocations: 11.14 kB / 1.169 GB, free: 14.22 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005036/1.158, allocations: 26.28 kB / 1.169 GB, free: 14.21 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.528e-05/1.158, allocations: 28.25 kB / 1.17 GB, free: 14.2 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.051e-05/1.158, allocations: 20.95 kB / 1.17 GB, free: 14.19 MB / 0.92 GB Notification: Performance of sorting global known variables: time 0.0009883/1.159, allocations: 0.6597 MB / 1.17 GB, free: 13.8 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.5e-07/1.159, allocations: 0 / 1.17 GB, free: 13.8 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.001359/1.16, allocations: 329.1 kB / 1.171 GB, free: 13.73 MB / 0.92 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.0008963/1.161, allocations: 404.6 kB / 1.171 GB, free: 13.5 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.0009889/1.162, allocations: 413.1 kB / 1.171 GB, free: 13.33 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 8.737e-06/1.162, allocations: 5.5 kB / 1.171 GB, free: 13.33 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.0003903/1.163, allocations: 191.9 kB / 1.171 GB, free: 13.24 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002537/1.165, allocations: 0.6139 MB / 1.172 GB, free: 12.92 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002602/1.168, allocations: 1.595 MB / 1.174 GB, free: 11.89 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005913/1.168, allocations: 1.033 MB / 1.175 GB, free: 11.04 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 0.0007244/1.169, allocations: 201.5 kB / 1.175 GB, free: 10.95 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001678/1.169, allocations: 80.36 kB / 1.175 GB, free: 10.93 MB / 0.92 GB Notification: Performance of SimCode: time 4.51e-07/1.169, allocations: 0 / 1.175 GB, free: 10.93 MB / 0.92 GB Notification: Performance of Templates: time 0.04052/1.21, allocations: 21.35 MB / 1.196 GB, free: 15.06 MB / 0.9356 GB make -j1 -f Buildings_9_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.makefile (rm -f Buildings_9_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe ; mkfifo Buildings_9_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe >> ../files/Buildings_9_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.sim & ./Buildings_9_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Interfaces_Examples_FourPortHeatMassExchanger.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches