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.001112/0.001112, allocations: 96.14 kB / 16.03 MB, free: 68 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.001039/0.001039, allocations: 183.8 kB / 16.92 MB, free: 6.906 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.463/1.463, allocations: 223.3 MB / 241 MB, free: 5.359 MB / 190.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.447/2.447, allocations: 390.9 MB / 0.667 GB, free: 2.34 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003579/0.000358, allocations: 8 kB / 0.8166 GB, free: 13.23 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7455/0.7459, allocations: 142.4 MB / 0.9557 GB, free: 7.656 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger): time 0.04112/0.7871, allocations: 40.51 MB / 0.9953 GB, free: 6.738 MB / 0.7481 GB Notification: Performance of NFInst.instExpressions: time 0.01538/0.8025, allocations: 10.33 MB / 1.005 GB, free: 12.38 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002198/0.8048, allocations: 55.62 kB / 1.005 GB, free: 12.32 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 0.001805/0.8066, allocations: 0.5244 MB / 1.006 GB, free: 11.8 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 0.005426/0.812, allocations: 1.734 MB / 1.008 GB, free: 10.05 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.003234/0.8153, allocations: 1.079 MB / 1.009 GB, free: 8.988 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.005725/0.821, allocations: 4.518 MB / 1.013 GB, free: 4.461 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001542/0.8226, allocations: 0.8597 MB / 1.014 GB, free: 3.586 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00228/0.8249, allocations: 1.015 MB / 1.015 GB, free: 2.566 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001382/0.8263, allocations: 0.8592 MB / 1.016 GB, free: 1.703 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 0.0001308/0.8264, allocations: 40 kB / 1.016 GB, free: 1.664 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001921/0.8284, allocations: 0.7715 MB / 1.017 GB, free: 0.8906 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 0.0002701/0.8286, allocations: 211 kB / 1.017 GB, free: 0.6836 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 0.0007039/0.8294, allocations: 0.5769 MB / 1.017 GB, free: 100 kB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.001783/0.8311, allocations: 1.434 MB / 1.019 GB, free: 14.66 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 5.72e-06/0.8312, allocations: 3.984 kB / 1.019 GB, free: 14.66 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.863e-06/0.8312, allocations: 0 / 1.019 GB, free: 14.66 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 1.956e-05/0.8312, allocations: 0 / 1.019 GB, free: 14.66 MB / 0.7794 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.002254/0.8335, allocations: 1.308 MB / 1.02 GB, free: 13.29 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.389e-05/0.8335, allocations: 12.03 kB / 1.02 GB, free: 13.28 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003432/0.8339, allocations: 131.5 kB / 1.02 GB, free: 13.15 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001684/0.8356, allocations: 1.068 MB / 1.021 GB, free: 12.04 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.086e-05/0.8356, allocations: 54 kB / 1.021 GB, free: 11.99 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001096/0.8357, allocations: 75.98 kB / 1.021 GB, free: 11.91 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001419/0.8372, allocations: 0.7983 MB / 1.022 GB, free: 11.08 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.574e-05/0.8372, allocations: 11.94 kB / 1.022 GB, free: 11.07 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.846e-05/0.8373, allocations: 28 kB / 1.022 GB, free: 11.04 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.316e-05/0.8373, allocations: 20 kB / 1.022 GB, free: 11.02 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001167/0.8385, allocations: 0.5945 MB / 1.023 GB, free: 10.43 MB / 0.7794 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.004212/0.8427, allocations: 3.551 MB / 1.026 GB, free: 6.648 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005942/0.8433, allocations: 270.4 kB / 1.026 GB, free: 6.375 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003681/0.8437, allocations: 184.8 kB / 1.027 GB, free: 6.191 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005355/0.8442, allocations: 0.6576 MB / 1.027 GB, free: 5.387 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.864e-05/0.8443, allocations: 46.44 kB / 1.027 GB, free: 5.332 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=31): time 2.394e-06/0.8443, allocations: 0 / 1.027 GB, free: 5.332 MB / 0.7794 GB Notification: Performance of matching and sorting (n=31): time 0.001256/0.8456, allocations: 0.5515 MB / 1.028 GB, free: 4.773 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.521e-05/0.8456, allocations: 55.34 kB / 1.028 GB, free: 4.707 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001133/0.8468, allocations: 0.9338 MB / 1.029 GB, free: 3.754 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 5.241e-05/0.8468, allocations: 37.7 kB / 1.029 GB, free: 3.711 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004175/0.8472, allocations: 495.6 kB / 1.029 GB, free: 3.219 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001039/0.8474, allocations: 110.4 kB / 1.029 GB, free: 3.109 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.776e-05/0.8474, allocations: 49.69 kB / 1.029 GB, free: 3.055 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001367/0.8476, allocations: 337.9 kB / 1.03 GB, free: 2.719 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003737/0.848, allocations: 173 kB / 1.03 GB, free: 2.551 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004998/0.8485, allocations: 366.9 kB / 1.03 GB, free: 2.113 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008599/0.8493, allocations: 0.5342 MB / 1.031 GB, free: 1.508 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.129e-06/0.8493, allocations: 4 kB / 1.031 GB, free: 1.504 MB / 0.7794 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001138/0.8505, allocations: 0.633 MB / 1.031 GB, free: 0.8633 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.017e-05/0.8505, allocations: 8 kB / 1.031 GB, free: 0.8555 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.488e-06/0.8505, allocations: 4 kB / 1.031 GB, free: 0.8516 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.903e-05/0.8506, allocations: 8 kB / 1.031 GB, free: 0.8438 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004602/0.851, allocations: 131.8 kB / 1.032 GB, free: 0.7148 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.69e-05/0.851, allocations: 12.25 kB / 1.032 GB, free: 0.7031 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007265/0.8518, allocations: 123.1 kB / 1.032 GB, free: 0.582 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.78e-05/0.8518, allocations: 27.94 kB / 1.032 GB, free: 0.5547 MB / 0.7794 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.0003856/0.8522, allocations: 273.6 kB / 1.032 GB, free: 284 kB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000127/0.8524, allocations: 98.86 kB / 1.032 GB, free: 184 kB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001032/0.8534, allocations: 0.4963 MB / 1.033 GB, free: 15.68 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.195e-05/0.8534, allocations: 7.984 kB / 1.033 GB, free: 15.67 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.893e-06/0.8534, allocations: 0 / 1.033 GB, free: 15.67 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007761/0.8542, allocations: 477.4 kB / 1.033 GB, free: 15.18 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002193/0.8564, allocations: 1.374 MB / 1.034 GB, free: 13.73 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.298e-06/0.8564, allocations: 0 / 1.034 GB, free: 13.73 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003444/0.8568, allocations: 83.98 kB / 1.034 GB, free: 13.65 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.723e-06/0.8568, allocations: 4 kB / 1.034 GB, free: 13.64 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.644e-05/0.8568, allocations: 15.98 kB / 1.034 GB, free: 13.63 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.804e-06/0.8568, allocations: 8.062 kB / 1.034 GB, free: 13.62 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.8569, allocations: 3.938 kB / 1.034 GB, free: 13.62 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001334/0.8582, allocations: 0.7896 MB / 1.035 GB, free: 12.8 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003592/0.8586, allocations: 251.7 kB / 1.036 GB, free: 12.53 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001059/0.8587, allocations: 8 kB / 1.036 GB, free: 12.52 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005933/0.8593, allocations: 59.73 kB / 1.036 GB, free: 12.46 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.393e-05/0.8594, allocations: 31.89 kB / 1.036 GB, free: 12.43 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.962e-05/0.8594, allocations: 19.98 kB / 1.036 GB, free: 12.41 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0008484/0.8603, allocations: 0.651 MB / 1.036 GB, free: 11.75 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.6e-07/0.8603, allocations: 4 kB / 1.036 GB, free: 11.75 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.001011/0.8613, allocations: 327.5 kB / 1.037 GB, free: 11.43 MB / 0.795 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.0007779/0.8621, allocations: 388.3 kB / 1.037 GB, free: 11.05 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0009504/0.863, allocations: 444.6 kB / 1.037 GB, free: 10.62 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 3.788e-06/0.8631, allocations: 0 / 1.037 GB, free: 10.62 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0004112/0.8635, allocations: 196.6 kB / 1.038 GB, free: 10.43 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003077/0.8666, allocations: 0.6096 MB / 1.038 GB, free: 9.828 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002809/0.8694, allocations: 2.014 MB / 1.04 GB, free: 7.754 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005777/0.87, allocations: 1.032 MB / 1.041 GB, free: 6.688 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002402/0.8702, allocations: 91.34 kB / 1.041 GB, free: 6.602 MB / 0.795 GB Notification: Performance of SimCode: time 1.022e-06/0.8702, allocations: 0 / 1.041 GB, free: 6.602 MB / 0.795 GB Notification: Performance of Templates: time 0.02722/0.8975, allocations: 17.67 MB / 1.058 GB, free: 5.09 MB / 0.8106 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/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