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.001314/0.001314, allocations: 105.9 kB / 16.4 MB, free: 6.508 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.001332/0.001332, allocations: 188 kB / 17.34 MB, free: 5.738 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.477/1.477, allocations: 222.9 MB / 241.1 MB, free: 15.15 MB / 206.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.743/2.743, allocations: 437.1 MB / 0.7112 GB, free: 4.375 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001884/0.001884, allocations: 63.89 kB / 1.019 GB, free: 9.375 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8104/0.8123, allocations: 151.6 MB / 1.167 GB, free: 3.805 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger): time 0.04736/0.8597, allocations: 41.6 MB / 1.208 GB, free: 10.05 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.01716/0.8769, allocations: 10.39 MB / 1.218 GB, free: 15.63 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001688/0.8786, allocations: 59.62 kB / 1.218 GB, free: 15.57 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.001824/0.8805, allocations: 0.6677 MB / 1.219 GB, free: 14.9 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.005532/0.8861, allocations: 1.967 MB / 1.221 GB, free: 12.92 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.003148/0.8892, allocations: 1.202 MB / 1.222 GB, free: 11.73 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.004955/0.8942, allocations: 3.399 MB / 1.225 GB, free: 8.32 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001936/0.8962, allocations: 1.052 MB / 1.226 GB, free: 7.25 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003411/0.8996, allocations: 1.272 MB / 1.227 GB, free: 5.977 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001875/0.9015, allocations: 0.8828 MB / 1.228 GB, free: 5.09 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 0.0003376/0.9018, allocations: 100 kB / 1.228 GB, free: 4.992 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002782/0.9046, allocations: 0.8656 MB / 1.229 GB, free: 4.125 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 0.0004998/0.9051, allocations: 275 kB / 1.23 GB, free: 3.855 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.00118/0.9063, allocations: 0.6338 MB / 1.23 GB, free: 3.219 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.004347/0.9107, allocations: 1.927 MB / 1.232 GB, free: 1.289 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 5.56e-06/0.9107, allocations: 4 kB / 1.232 GB, free: 1.285 MB / 0.9512 GB Notification: Performance of FrontEnd: time 2.224e-06/0.9107, allocations: 0 / 1.232 GB, free: 1.285 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 6.274e-05/0.9108, allocations: 0 / 1.232 GB, free: 1.285 MB / 0.9512 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.003429/0.9142, allocations: 1.558 MB / 1.234 GB, free: 15.67 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.164e-05/0.9143, allocations: 12.92 kB / 1.234 GB, free: 15.66 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004159/0.9147, allocations: 140.1 kB / 1.234 GB, free: 15.52 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002092/0.9168, allocations: 1.103 MB / 1.235 GB, free: 14.38 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.428e-05/0.9169, allocations: 61.94 kB / 1.235 GB, free: 14.32 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001213/0.917, allocations: 71.95 kB / 1.235 GB, free: 14.25 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001502/0.9185, allocations: 0.7944 MB / 1.236 GB, free: 13.42 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.358e-05/0.9186, allocations: 0 / 1.236 GB, free: 13.42 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.66e-05/0.9186, allocations: 35.92 kB / 1.236 GB, free: 13.38 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.998e-05/0.9187, allocations: 20 kB / 1.236 GB, free: 13.36 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001178/0.9199, allocations: 0.5711 MB / 1.236 GB, free: 12.79 MB / 0.9669 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.004768/0.9247, allocations: 3.552 MB / 1.24 GB, free: 9.012 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006419/0.9253, allocations: 265.8 kB / 1.24 GB, free: 8.746 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003779/0.9257, allocations: 187.2 kB / 1.24 GB, free: 8.562 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006575/0.9264, allocations: 0.6532 MB / 1.241 GB, free: 7.762 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.118e-05/0.9264, allocations: 42.5 kB / 1.241 GB, free: 7.711 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=31): time 2.255e-06/0.9264, allocations: 0 / 1.241 GB, free: 7.711 MB / 0.9669 GB Notification: Performance of matching and sorting (n=31): time 0.001443/0.9279, allocations: 0.5192 MB / 1.241 GB, free: 7.188 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.796e-05/0.928, allocations: 55.34 kB / 1.241 GB, free: 7.121 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001398/0.9294, allocations: 0.9495 MB / 1.242 GB, free: 6.152 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 5.658e-05/0.9294, allocations: 37.64 kB / 1.242 GB, free: 6.109 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005118/0.9299, allocations: 0.4965 MB / 1.243 GB, free: 5.605 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001481/0.9301, allocations: 119 kB / 1.243 GB, free: 5.488 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001888/0.9303, allocations: 126.1 kB / 1.243 GB, free: 5.359 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001737/0.9305, allocations: 322 kB / 1.243 GB, free: 5.039 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003893/0.9309, allocations: 161 kB / 1.244 GB, free: 4.879 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005603/0.9315, allocations: 354.9 kB / 1.244 GB, free: 4.461 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009087/0.9324, allocations: 0.5071 MB / 1.244 GB, free: 3.883 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.817e-06/0.9324, allocations: 0 / 1.244 GB, free: 3.883 MB / 0.9669 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001338/0.9337, allocations: 0.6253 MB / 1.245 GB, free: 3.25 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 2.529e-05/0.9338, allocations: 11.94 kB / 1.245 GB, free: 3.238 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.274e-05/0.9338, allocations: 8 kB / 1.245 GB, free: 3.23 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.045e-05/0.9338, allocations: 8 kB / 1.245 GB, free: 3.223 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004808/0.9343, allocations: 124.3 kB / 1.245 GB, free: 3.102 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.051e-05/0.9343, allocations: 11.94 kB / 1.245 GB, free: 3.09 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006801/0.935, allocations: 83.47 kB / 1.245 GB, free: 3.008 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.364e-05/0.9351, allocations: 28 kB / 1.245 GB, free: 2.98 MB / 0.9669 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.0004341/0.9355, allocations: 269.6 kB / 1.246 GB, free: 2.707 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001832/0.9357, allocations: 107.3 kB / 1.246 GB, free: 2.602 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001064/0.9368, allocations: 496.8 kB / 1.246 GB, free: 2.117 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.745e-05/0.9368, allocations: 11.98 kB / 1.246 GB, free: 2.105 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5e-06/0.9368, allocations: 0 / 1.246 GB, free: 2.105 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007897/0.9376, allocations: 449.2 kB / 1.247 GB, free: 1.637 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002278/0.9399, allocations: 1.367 MB / 1.248 GB, free: 204 kB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.609e-06/0.9399, allocations: 4.156 kB / 1.248 GB, free: 200 kB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003534/0.9403, allocations: 75.89 kB / 1.248 GB, free: 124 kB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.858e-06/0.9403, allocations: 4 kB / 1.248 GB, free: 120 kB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.086e-05/0.9404, allocations: 11.98 kB / 1.248 GB, free: 108 kB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.352e-06/0.9404, allocations: 4 kB / 1.248 GB, free: 104 kB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/0.9404, allocations: 0 / 1.248 GB, free: 104 kB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00149/0.9419, allocations: 0.7676 MB / 1.249 GB, free: 15.3 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003492/0.9422, allocations: 236.4 kB / 1.249 GB, free: 15.05 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001141/0.9424, allocations: 8 kB / 1.249 GB, free: 15.04 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005045/0.9429, allocations: 31.95 kB / 1.249 GB, free: 15.01 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.157e-05/0.943, allocations: 27.91 kB / 1.249 GB, free: 14.98 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.972e-05/0.943, allocations: 19.92 kB / 1.249 GB, free: 14.96 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0009364/0.9439, allocations: 0.6628 MB / 1.25 GB, free: 14.29 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.81e-07/0.944, allocations: 4 kB / 1.25 GB, free: 14.29 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0009783/0.9449, allocations: 343.2 kB / 1.25 GB, free: 13.95 MB / 0.9825 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.0007898/0.9457, allocations: 389.8 kB / 1.25 GB, free: 13.57 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0009725/0.9467, allocations: 432 kB / 1.251 GB, free: 13.15 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.9467, allocations: 0 / 1.251 GB, free: 13.15 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0004069/0.9472, allocations: 185.2 kB / 1.251 GB, free: 12.97 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002597/0.9498, allocations: 0.6052 MB / 1.252 GB, free: 12.38 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002677/0.9525, allocations: 1.627 MB / 1.253 GB, free: 10.7 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007403/0.9532, allocations: 1.036 MB / 1.254 GB, free: 9.633 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.0006421/0.9539, allocations: 196 kB / 1.254 GB, free: 9.441 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001853/0.9541, allocations: 83.41 kB / 1.254 GB, free: 9.359 MB / 0.9825 GB Notification: Performance of SimCode: time 6.01e-07/0.9541, allocations: 4 kB / 1.254 GB, free: 9.355 MB / 0.9825 GB Notification: Performance of Templates: time 0.04048/0.9946, allocations: 21.46 MB / 1.275 GB, free: 4.164 MB / 0.9981 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=480 -s cvode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches