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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.001477/0.001477, allocations: 103.4 kB / 16.35 MB, free: 6.289 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.001835/0.001836, allocations: 193.4 kB / 17.29 MB, free: 5.863 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.509/1.509, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.225/2.225, allocations: 390.3 MB / 0.6655 GB, free: 0.6055 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.002043/0.002044, allocations: 67.69 kB / 0.814 GB, free: 32.59 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3196/0.3216, allocations: 140.4 MB / 0.9511 GB, free: 8.043 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger): time 0.04077/0.3624, allocations: 41.58 MB / 0.9917 GB, free: 14.31 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.01497/0.3775, allocations: 10.4 MB / 1.002 GB, free: 3.879 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001964/0.3795, allocations: 55.69 kB / 1.002 GB, free: 3.824 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.00166/0.3812, allocations: 0.6404 MB / 1.003 GB, free: 3.18 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.004625/0.3858, allocations: 1.881 MB / 1.004 GB, free: 1.289 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.002925/0.3888, allocations: 1.183 MB / 1.006 GB, free: 120 kB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.004473/0.3932, allocations: 3.399 MB / 1.009 GB, free: 12.71 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002068/0.3953, allocations: 1.064 MB / 1.01 GB, free: 11.63 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00321/0.3986, allocations: 1.236 MB / 1.011 GB, free: 10.4 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001189/0.3998, allocations: 0.8866 MB / 1.012 GB, free: 9.508 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 0.0001515/0.3999, allocations: 100 kB / 1.012 GB, free: 9.41 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002383/0.4023, allocations: 0.8656 MB / 1.013 GB, free: 8.543 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.0004786/0.4028, allocations: 279 kB / 1.013 GB, free: 8.27 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.001088/0.4039, allocations: 0.6298 MB / 1.014 GB, free: 7.637 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.004208/0.4081, allocations: 1.92 MB / 1.016 GB, free: 5.711 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 6.863e-06/0.4082, allocations: 4 kB / 1.016 GB, free: 5.707 MB / 0.795 GB Notification: Performance of FrontEnd: time 2.404e-06/0.4082, allocations: 4 kB / 1.016 GB, free: 5.703 MB / 0.795 GB Notification: Performance of Transformations before backend: time 1.565e-05/0.4082, allocations: 0 / 1.016 GB, free: 5.703 MB / 0.795 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.002533/0.4107, allocations: 1.515 MB / 1.017 GB, free: 4.137 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.841e-05/0.4108, allocations: 8.031 kB / 1.017 GB, free: 4.129 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003481/0.4111, allocations: 127.5 kB / 1.017 GB, free: 4.004 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001725/0.4129, allocations: 1.103 MB / 1.018 GB, free: 2.855 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.809e-05/0.4129, allocations: 54 kB / 1.018 GB, free: 2.805 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001069/0.4131, allocations: 72 kB / 1.018 GB, free: 2.734 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001299/0.4144, allocations: 0.7905 MB / 1.019 GB, free: 1.906 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.362e-05/0.4144, allocations: 4 kB / 1.019 GB, free: 1.902 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.057e-05/0.4145, allocations: 28 kB / 1.019 GB, free: 1.875 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.398e-05/0.4145, allocations: 27.94 kB / 1.019 GB, free: 1.848 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001066/0.4156, allocations: 0.5594 MB / 1.02 GB, free: 1.285 MB / 0.795 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.003932/0.4195, allocations: 3.555 MB / 1.023 GB, free: 13.5 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005703/0.4201, allocations: 262.9 kB / 1.024 GB, free: 13.23 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003309/0.4204, allocations: 176.8 kB / 1.024 GB, free: 13.06 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005194/0.421, allocations: 0.6576 MB / 1.024 GB, free: 12.25 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.725e-05/0.421, allocations: 34.56 kB / 1.024 GB, free: 12.21 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=31): time 2.224e-06/0.421, allocations: 0 / 1.024 GB, free: 12.21 MB / 0.8106 GB Notification: Performance of matching and sorting (n=31): time 0.00119/0.4222, allocations: 0.5236 MB / 1.025 GB, free: 11.68 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.948e-05/0.4223, allocations: 55.41 kB / 1.025 GB, free: 11.61 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001218/0.4235, allocations: 0.9456 MB / 1.026 GB, free: 10.65 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 4.727e-05/0.4236, allocations: 41.58 kB / 1.026 GB, free: 10.6 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004466/0.424, allocations: 0.4918 MB / 1.026 GB, free: 10.11 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001351/0.4241, allocations: 110.4 kB / 1.027 GB, free: 9.996 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001858/0.4243, allocations: 110.2 kB / 1.027 GB, free: 9.883 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0002456/0.4246, allocations: 329.9 kB / 1.027 GB, free: 9.555 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003535/0.425, allocations: 173 kB / 1.027 GB, free: 9.383 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004817/0.4255, allocations: 348.9 kB / 1.027 GB, free: 8.969 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007825/0.4262, allocations: 0.5147 MB / 1.028 GB, free: 8.383 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.24e-06/0.4263, allocations: 4 kB / 1.028 GB, free: 8.379 MB / 0.8106 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001167/0.4274, allocations: 0.6173 MB / 1.029 GB, free: 7.754 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 2.096e-05/0.4275, allocations: 8 kB / 1.029 GB, free: 7.746 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.465e-05/0.4275, allocations: 4 kB / 1.029 GB, free: 7.742 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.408e-05/0.4275, allocations: 11.98 kB / 1.029 GB, free: 7.73 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004356/0.428, allocations: 123.8 kB / 1.029 GB, free: 7.609 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.399e-05/0.428, allocations: 8 kB / 1.029 GB, free: 7.602 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007055/0.4287, allocations: 83.53 kB / 1.029 GB, free: 7.52 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.315e-05/0.4288, allocations: 27.98 kB / 1.029 GB, free: 7.492 MB / 0.8106 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.0003673/0.4291, allocations: 273.6 kB / 1.029 GB, free: 7.215 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000151/0.4293, allocations: 102.7 kB / 1.029 GB, free: 7.113 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009771/0.4303, allocations: 492.1 kB / 1.03 GB, free: 6.625 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.147e-05/0.4303, allocations: 4 kB / 1.03 GB, free: 6.621 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.633e-06/0.4303, allocations: 4.062 kB / 1.03 GB, free: 6.617 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007211/0.431, allocations: 449.5 kB / 1.03 GB, free: 6.148 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002125/0.4332, allocations: 1.362 MB / 1.031 GB, free: 4.715 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.891e-06/0.4332, allocations: 4 kB / 1.031 GB, free: 4.711 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003374/0.4335, allocations: 71.89 kB / 1.031 GB, free: 4.641 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.244e-06/0.4335, allocations: 8.094 kB / 1.031 GB, free: 4.633 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.841e-05/0.4336, allocations: 8 kB / 1.032 GB, free: 4.625 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.891e-06/0.4336, allocations: 4 kB / 1.032 GB, free: 4.621 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.407e-06/0.4336, allocations: 4 kB / 1.032 GB, free: 4.617 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001276/0.4349, allocations: 0.7718 MB / 1.032 GB, free: 3.812 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000351/0.4352, allocations: 231.7 kB / 1.032 GB, free: 3.566 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001137/0.4354, allocations: 8 kB / 1.032 GB, free: 3.559 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004845/0.4359, allocations: 32.03 kB / 1.033 GB, free: 3.527 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.013e-05/0.4359, allocations: 27.91 kB / 1.033 GB, free: 3.5 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.374e-05/0.436, allocations: 23.92 kB / 1.033 GB, free: 3.477 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0008357/0.4368, allocations: 0.6588 MB / 1.033 GB, free: 2.809 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4368, allocations: 0 / 1.033 GB, free: 2.809 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0009905/0.4378, allocations: 339.4 kB / 1.034 GB, free: 2.477 MB / 0.8106 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.0008405/0.4387, allocations: 399.8 kB / 1.034 GB, free: 2.082 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0009182/0.4396, allocations: 424.9 kB / 1.034 GB, free: 1.668 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.4396, allocations: 0 / 1.034 GB, free: 1.668 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0003701/0.44, allocations: 188.3 kB / 1.035 GB, free: 1.484 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002358/0.4424, allocations: 0.6207 MB / 1.035 GB, free: 0.8828 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002491/0.4449, allocations: 1.582 MB / 1.037 GB, free: 15.25 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006007/0.4455, allocations: 1.032 MB / 1.038 GB, free: 14.19 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0006609/0.4462, allocations: 200.3 kB / 1.038 GB, free: 14 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001562/0.4463, allocations: 83.36 kB / 1.038 GB, free: 13.91 MB / 0.8262 GB Notification: Performance of SimCode: time 1.212e-06/0.4463, allocations: 0 / 1.038 GB, free: 13.91 MB / 0.8262 GB Notification: Performance of Templates: time 0.03494/0.4813, allocations: 21.2 MB / 1.059 GB, free: 9 MB / 0.8419 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 -s cvode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches