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.001342/0.001342, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001491/0.001491, allocations: 194.6 kB / 16.53 MB, free: 6.664 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.526/1.526, allocations: 222.9 MB / 240.2 MB, free: 4.395 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.768/2.768, allocations: 437 MB / 0.7104 GB, free: 5.086 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001989/0.001989, allocations: 67.89 kB / 0.8692 GB, free: 4.633 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7204/0.7224, allocations: 151.6 MB / 1.017 GB, free: 2.469 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger): time 0.04854/0.771, allocations: 41.58 MB / 1.058 GB, free: 8.738 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.01618/0.7872, allocations: 10.39 MB / 1.068 GB, free: 14.32 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002153/0.7894, allocations: 59.62 kB / 1.068 GB, free: 14.26 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.001952/0.7914, allocations: 0.6521 MB / 1.069 GB, free: 13.6 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.005125/0.7965, allocations: 1.875 MB / 1.071 GB, free: 11.72 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.003019/0.7996, allocations: 1.174 MB / 1.072 GB, free: 10.55 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.004413/0.804, allocations: 3.406 MB / 1.075 GB, free: 7.145 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001565/0.8056, allocations: 1.046 MB / 1.076 GB, free: 6.078 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002915/0.8085, allocations: 1.227 MB / 1.077 GB, free: 4.852 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00144/0.81, allocations: 0.8828 MB / 1.078 GB, free: 3.965 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 0.0001808/0.8101, allocations: 100 kB / 1.078 GB, free: 3.867 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002247/0.8124, allocations: 0.8656 MB / 1.079 GB, free: 3 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0003375/0.8127, allocations: 279 kB / 1.079 GB, free: 2.727 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0008184/0.8136, allocations: 0.6221 MB / 1.08 GB, free: 2.102 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.002823/0.8164, allocations: 1.905 MB / 1.082 GB, free: 196 kB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.898e-06/0.8164, allocations: 0 / 1.082 GB, free: 196 kB / 0.8262 GB Notification: Performance of FrontEnd: time 1.413e-06/0.8164, allocations: 4 kB / 1.082 GB, free: 192 kB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.357e-05/0.8164, allocations: 0 / 1.082 GB, free: 192 kB / 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.002431/0.8189, allocations: 1.511 MB / 1.083 GB, free: 14.62 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.871e-05/0.8189, allocations: 12.03 kB / 1.083 GB, free: 14.61 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003564/0.8193, allocations: 131.4 kB / 1.083 GB, free: 14.48 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001618/0.8209, allocations: 1.045 MB / 1.084 GB, free: 13.39 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.537e-05/0.821, allocations: 54 kB / 1.084 GB, free: 13.34 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001161/0.8211, allocations: 71.98 kB / 1.085 GB, free: 13.27 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001392/0.8225, allocations: 0.7905 MB / 1.085 GB, free: 12.45 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.589e-05/0.8225, allocations: 4 kB / 1.085 GB, free: 12.45 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.725e-05/0.8226, allocations: 28 kB / 1.085 GB, free: 12.42 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.51e-05/0.8227, allocations: 23.98 kB / 1.085 GB, free: 12.39 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001175/0.8238, allocations: 0.5672 MB / 1.086 GB, free: 11.82 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.004336/0.8282, allocations: 3.583 MB / 1.089 GB, free: 8.012 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005909/0.8288, allocations: 256.6 kB / 1.09 GB, free: 7.754 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003625/0.8292, allocations: 176.8 kB / 1.09 GB, free: 7.578 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006/0.8298, allocations: 0.6609 MB / 1.09 GB, free: 6.77 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.142e-05/0.8298, allocations: 46.53 kB / 1.091 GB, free: 6.715 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=31): time 2.244e-06/0.8298, allocations: 0 / 1.091 GB, free: 6.715 MB / 0.8419 GB Notification: Performance of matching and sorting (n=31): time 0.001277/0.8311, allocations: 0.5129 MB / 1.091 GB, free: 6.195 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.481e-05/0.8312, allocations: 55.41 kB / 1.091 GB, free: 6.129 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001216/0.8324, allocations: 0.9533 MB / 1.092 GB, free: 5.156 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 3.979e-05/0.8324, allocations: 33.64 kB / 1.092 GB, free: 5.117 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004361/0.8329, allocations: 499.5 kB / 1.093 GB, free: 4.625 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001153/0.833, allocations: 118.4 kB / 1.093 GB, free: 4.508 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000169/0.8332, allocations: 110.2 kB / 1.093 GB, free: 4.395 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001538/0.8333, allocations: 333.9 kB / 1.093 GB, free: 4.062 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003781/0.8337, allocations: 165 kB / 1.093 GB, free: 3.898 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005568/0.8343, allocations: 346.9 kB / 1.094 GB, free: 3.488 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00091/0.8352, allocations: 0.5109 MB / 1.094 GB, free: 2.906 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.827e-06/0.8352, allocations: 4 kB / 1.094 GB, free: 2.902 MB / 0.8419 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001175/0.8364, allocations: 0.6132 MB / 1.095 GB, free: 2.281 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.831e-05/0.8364, allocations: 8 kB / 1.095 GB, free: 2.273 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.085e-05/0.8364, allocations: 8 kB / 1.095 GB, free: 2.266 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.016e-05/0.8365, allocations: 8 kB / 1.095 GB, free: 2.258 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004389/0.8369, allocations: 123.8 kB / 1.095 GB, free: 2.137 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.53e-05/0.8369, allocations: 11.98 kB / 1.095 GB, free: 2.125 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005661/0.8375, allocations: 91.59 kB / 1.095 GB, free: 2.035 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.419e-05/0.8376, allocations: 24 kB / 1.095 GB, free: 2.012 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.0003949/0.838, allocations: 278.6 kB / 1.095 GB, free: 1.73 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001629/0.8381, allocations: 98.78 kB / 1.095 GB, free: 1.633 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001031/0.8392, allocations: 488.6 kB / 1.096 GB, free: 1.141 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.026e-05/0.8392, allocations: 4 kB / 1.096 GB, free: 1.137 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.097e-06/0.8392, allocations: 0 / 1.096 GB, free: 1.137 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007775/0.84, allocations: 449.2 kB / 1.096 GB, free: 0.668 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002163/0.8422, allocations: 1.366 MB / 1.098 GB, free: 15.23 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.566e-06/0.8422, allocations: 160 / 1.098 GB, free: 15.23 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003443/0.8425, allocations: 83.88 kB / 1.098 GB, free: 15.14 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.424e-06/0.8425, allocations: 7.938 kB / 1.098 GB, free: 15.14 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.445e-05/0.8426, allocations: 8 kB / 1.098 GB, free: 15.13 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.708e-06/0.8426, allocations: 4 kB / 1.098 GB, free: 15.12 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.469e-06/0.8426, allocations: 4.062 kB / 1.098 GB, free: 15.12 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001353/0.8439, allocations: 0.7621 MB / 1.098 GB, free: 14.33 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003101/0.8443, allocations: 231.9 kB / 1.099 GB, free: 14.08 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001185/0.8444, allocations: 8 kB / 1.099 GB, free: 14.07 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005045/0.8449, allocations: 31.95 kB / 1.099 GB, free: 14.04 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.322e-05/0.845, allocations: 27.91 kB / 1.099 GB, free: 14.02 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.665e-05/0.845, allocations: 15.98 kB / 1.099 GB, free: 14 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0009016/0.8459, allocations: 0.6628 MB / 1.099 GB, free: 13.33 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.5e-07/0.8459, allocations: 0 / 1.099 GB, free: 13.33 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0009397/0.8469, allocations: 347.4 kB / 1.1 GB, free: 12.99 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.0007865/0.8477, allocations: 397.7 kB / 1.1 GB, free: 12.61 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.001/0.8487, allocations: 451.8 kB / 1.1 GB, free: 12.16 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.8487, allocations: 0 / 1.1 GB, free: 12.16 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0004094/0.8491, allocations: 184.8 kB / 1.101 GB, free: 11.98 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002724/0.8519, allocations: 0.6182 MB / 1.101 GB, free: 11.39 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002568/0.8544, allocations: 1.614 MB / 1.103 GB, free: 9.727 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006902/0.8551, allocations: 1.036 MB / 1.104 GB, free: 8.66 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.0006998/0.8559, allocations: 197.6 kB / 1.104 GB, free: 8.465 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001621/0.856, allocations: 83.42 kB / 1.104 GB, free: 8.383 MB / 0.8575 GB Notification: Performance of SimCode: time 2.61e-07/0.856, allocations: 0 / 1.104 GB, free: 8.383 MB / 0.8575 GB Notification: Performance of Templates: time 0.03757/0.8936, allocations: 21.25 MB / 1.125 GB, free: 3.434 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