Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_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.001679/0.001679, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001691/0.001691, allocations: 195.2 kB / 16.14 MB, free: 6.629 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.455/1.455, allocations: 222.9 MB / 239.8 MB, free: 4.613 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.809/2.809, allocations: 437 MB / 0.7099 GB, free: 5.359 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001899/0.001899, allocations: 67.88 kB / 0.8686 GB, free: 5.199 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6994/0.7013, allocations: 151.6 MB / 1.017 GB, free: 2.809 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger): time 0.04803/0.7494, allocations: 41.36 MB / 1.057 GB, free: 9.301 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.01779/0.7672, allocations: 10.45 MB / 1.067 GB, free: 14.82 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002641/0.7699, allocations: 55.62 kB / 1.067 GB, free: 14.77 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.001944/0.7719, allocations: 0.5323 MB / 1.068 GB, free: 14.23 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.005313/0.7772, allocations: 1.746 MB / 1.07 GB, free: 12.48 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.003289/0.7806, allocations: 1.071 MB / 1.071 GB, free: 11.42 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.006315/0.7869, allocations: 4.514 MB / 1.075 GB, free: 6.898 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001674/0.7886, allocations: 0.8731 MB / 1.076 GB, free: 6.008 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002534/0.7911, allocations: 1.042 MB / 1.077 GB, free: 4.961 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001781/0.7929, allocations: 0.8982 MB / 1.078 GB, free: 4.059 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 0.0003188/0.7932, allocations: 48 kB / 1.078 GB, free: 4.012 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002796/0.7961, allocations: 0.7794 MB / 1.079 GB, free: 3.23 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0004515/0.7965, allocations: 231 kB / 1.079 GB, free: 3.004 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.001242/0.7978, allocations: 0.5752 MB / 1.079 GB, free: 2.426 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.003558/0.8013, allocations: 1.877 MB / 1.081 GB, free: 0.543 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 6.172e-06/0.8014, allocations: 0 / 1.081 GB, free: 0.543 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.162e-06/0.8014, allocations: 0 / 1.081 GB, free: 0.543 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 3.009e-05/0.8014, allocations: 0 / 1.081 GB, free: 0.543 MB / 0.8262 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.003094/0.8045, allocations: 1.522 MB / 1.083 GB, free: 14.96 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.716e-05/0.8046, allocations: 8.031 kB / 1.083 GB, free: 14.96 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003967/0.805, allocations: 131.4 kB / 1.083 GB, free: 14.83 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001972/0.807, allocations: 1.08 MB / 1.084 GB, free: 13.71 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.647e-05/0.807, allocations: 54 kB / 1.084 GB, free: 13.65 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001071/0.8071, allocations: 68 kB / 1.084 GB, free: 13.59 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001479/0.8086, allocations: 0.7944 MB / 1.085 GB, free: 12.76 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.414e-05/0.8087, allocations: 4 kB / 1.085 GB, free: 12.75 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.793e-05/0.8087, allocations: 28 kB / 1.085 GB, free: 12.73 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.666e-05/0.8088, allocations: 20 kB / 1.085 GB, free: 12.71 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001171/0.81, allocations: 0.5711 MB / 1.085 GB, free: 12.14 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.005162/0.8151, allocations: 3.547 MB / 1.089 GB, free: 8.359 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006513/0.8158, allocations: 266.4 kB / 1.089 GB, free: 8.09 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003861/0.8162, allocations: 176.8 kB / 1.089 GB, free: 7.914 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001145/0.8174, allocations: 0.6609 MB / 1.09 GB, free: 7.105 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.012e-05/0.8174, allocations: 46.55 kB / 1.09 GB, free: 7.051 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=31): time 3.868e-06/0.8174, allocations: 0 / 1.09 GB, free: 7.051 MB / 0.8419 GB Notification: Performance of matching and sorting (n=31): time 0.001523/0.819, allocations: 0.5046 MB / 1.09 GB, free: 6.539 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002425/0.8192, allocations: 59.34 kB / 1.09 GB, free: 6.469 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00144/0.8207, allocations: 0.9299 MB / 1.091 GB, free: 5.52 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 5.535e-05/0.8207, allocations: 37.7 kB / 1.091 GB, free: 5.477 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004879/0.8212, allocations: 499.6 kB / 1.092 GB, free: 4.98 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001405/0.8214, allocations: 114.4 kB / 1.092 GB, free: 4.867 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001772/0.8216, allocations: 110.1 kB / 1.092 GB, free: 4.754 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001558/0.8217, allocations: 333.9 kB / 1.092 GB, free: 4.422 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003656/0.8221, allocations: 161 kB / 1.093 GB, free: 4.262 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005685/0.8227, allocations: 354.9 kB / 1.093 GB, free: 3.84 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008902/0.8236, allocations: 0.5032 MB / 1.093 GB, free: 3.266 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.412e-06/0.8236, allocations: 4 kB / 1.093 GB, free: 3.262 MB / 0.8419 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.00126/0.8248, allocations: 0.6212 MB / 1.094 GB, free: 2.633 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 2.782e-05/0.8249, allocations: 12.12 kB / 1.094 GB, free: 2.621 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.241e-05/0.8249, allocations: 4 kB / 1.094 GB, free: 2.617 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.691e-05/0.8249, allocations: 8 kB / 1.094 GB, free: 2.609 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004701/0.8254, allocations: 123.8 kB / 1.094 GB, free: 2.488 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.563e-05/0.8254, allocations: 11.94 kB / 1.094 GB, free: 2.477 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007873/0.8262, allocations: 111.2 kB / 1.094 GB, free: 2.367 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.909e-05/0.8263, allocations: 27.94 kB / 1.094 GB, free: 2.34 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.0004311/0.8267, allocations: 285.5 kB / 1.095 GB, free: 2.051 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001688/0.8269, allocations: 98.78 kB / 1.095 GB, free: 1.953 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001089/0.828, allocations: 486 kB / 1.095 GB, free: 1.469 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.558e-06/0.828, allocations: 0 / 1.095 GB, free: 1.469 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.33e-06/0.828, allocations: 4 kB / 1.095 GB, free: 1.465 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000779/0.8288, allocations: 457.2 kB / 1.096 GB, free: 0.9883 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002339/0.8312, allocations: 1.351 MB / 1.097 GB, free: 15.57 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.853e-06/0.8312, allocations: 4 kB / 1.097 GB, free: 15.56 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003501/0.8315, allocations: 83.94 kB / 1.097 GB, free: 15.48 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.624e-06/0.8316, allocations: 3.938 kB / 1.097 GB, free: 15.48 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.729e-05/0.8316, allocations: 8 kB / 1.097 GB, free: 15.47 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.847e-06/0.8316, allocations: 4.156 kB / 1.097 GB, free: 15.46 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.109e-06/0.8316, allocations: 8 kB / 1.097 GB, free: 15.46 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001508/0.8331, allocations: 0.766 MB / 1.098 GB, free: 14.66 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003539/0.8335, allocations: 223.7 kB / 1.098 GB, free: 14.42 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001159/0.8336, allocations: 11.98 kB / 1.098 GB, free: 14.41 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005713/0.8342, allocations: 55.89 kB / 1.098 GB, free: 14.36 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.242e-05/0.8343, allocations: 23.97 kB / 1.098 GB, free: 14.33 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.123e-05/0.8343, allocations: 19.98 kB / 1.098 GB, free: 14.31 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0009923/0.8353, allocations: 0.651 MB / 1.099 GB, free: 13.65 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.9e-07/0.8353, allocations: 4 kB / 1.099 GB, free: 13.65 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.001033/0.8364, allocations: 331.5 kB / 1.099 GB, free: 13.32 MB / 0.8575 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.0007904/0.8372, allocations: 384.5 kB / 1.099 GB, free: 12.95 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.001001/0.8382, allocations: 420.1 kB / 1.1 GB, free: 12.54 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 6.172e-06/0.8382, allocations: 4 kB / 1.1 GB, free: 12.54 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0004207/0.8386, allocations: 179.8 kB / 1.1 GB, free: 12.36 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002956/0.8416, allocations: 0.6013 MB / 1.101 GB, free: 11.77 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003185/0.8448, allocations: 1.946 MB / 1.102 GB, free: 9.773 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007573/0.8456, allocations: 1.036 MB / 1.103 GB, free: 8.707 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.0008474/0.8464, allocations: 199.7 kB / 1.104 GB, free: 8.512 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001877/0.8466, allocations: 83.41 kB / 1.104 GB, free: 8.43 MB / 0.8575 GB Notification: Performance of SimCode: time 4.51e-07/0.8466, allocations: 0 / 1.104 GB, free: 8.43 MB / 0.8575 GB Notification: Performance of Templates: time 0.0397/0.8863, allocations: 20.17 MB / 1.123 GB, free: 4.531 MB / 0.8731 GB make -j1 -f Buildings_10_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.makefile (rm -f Buildings_10_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe ; mkfifo Buildings_10_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe >> ../files/Buildings_10_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.sim & ./Buildings_10_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_Interfaces_Examples_FourPortHeatMassExchanger.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches