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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.001/0.0009998, allocations: 91.84 kB / 15.06 MB, free: 1.098 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.001309/0.001309, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.542/1.542, allocations: 223.3 MB / 240 MB, free: 5.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.865/2.865, allocations: 437.7 MB / 0.7117 GB, free: 7.07 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003903/0.0003904, allocations: 8 kB / 0.8722 GB, free: 3.734 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8536/0.854, allocations: 153.8 MB / 1.022 GB, free: 232 kB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger): time 0.0411/0.8952, allocations: 38.34 MB / 1.06 GB, free: 9.781 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.01545/0.9107, allocations: 9.741 MB / 1.069 GB, free: 20 kB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00257/0.9133, allocations: 47.73 kB / 1.069 GB, free: 15.97 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.00225/0.9156, allocations: 465 kB / 1.07 GB, free: 15.52 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.005738/0.9213, allocations: 1.473 MB / 1.071 GB, free: 14.04 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.003522/0.9249, allocations: 0.8565 MB / 1.072 GB, free: 13.19 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.006253/0.9311, allocations: 3.862 MB / 1.076 GB, free: 9.32 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001785/0.9329, allocations: 0.7377 MB / 1.077 GB, free: 8.566 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00253/0.9355, allocations: 0.9916 MB / 1.078 GB, free: 7.57 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001207/0.9367, allocations: 0.8088 MB / 1.078 GB, free: 6.758 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 0.0001188/0.9368, allocations: 36 kB / 1.078 GB, free: 6.723 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002092/0.9389, allocations: 498.8 kB / 1.079 GB, free: 6.234 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0002797/0.9392, allocations: 199.1 kB / 1.079 GB, free: 6.039 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0004169/0.9397, allocations: 261.1 kB / 1.079 GB, free: 5.777 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.001848/0.9415, allocations: 1.366 MB / 1.081 GB, free: 4.41 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 7.614e-06/0.9415, allocations: 0 / 1.081 GB, free: 4.41 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.843e-06/0.9415, allocations: 3.938 kB / 1.081 GB, free: 4.406 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.68e-05/0.9416, allocations: 0 / 1.081 GB, free: 4.406 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.002772/0.9443, allocations: 1.316 MB / 1.082 GB, free: 3.035 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 5.213e-05/0.9444, allocations: 8.031 kB / 1.082 GB, free: 3.027 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003456/0.9448, allocations: 142.5 kB / 1.082 GB, free: 2.887 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001819/0.9466, allocations: 1.041 MB / 1.083 GB, free: 1.805 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.701e-05/0.9466, allocations: 50 kB / 1.083 GB, free: 1.754 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001504/0.9468, allocations: 75.98 kB / 1.083 GB, free: 1.68 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001491/0.9483, allocations: 0.7905 MB / 1.084 GB, free: 0.8594 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.126e-05/0.9483, allocations: 4 kB / 1.084 GB, free: 0.8555 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001332/0.9485, allocations: 39.95 kB / 1.084 GB, free: 0.8164 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.321e-05/0.9485, allocations: 16 kB / 1.084 GB, free: 0.8008 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001109/0.9496, allocations: 0.5867 MB / 1.085 GB, free: 220 kB / 0.8262 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.00415/0.9538, allocations: 3.544 MB / 1.088 GB, free: 12.44 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006154/0.9544, allocations: 278.5 kB / 1.088 GB, free: 12.16 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00034/0.9548, allocations: 177.3 kB / 1.089 GB, free: 11.98 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000691/0.9555, allocations: 0.6649 MB / 1.089 GB, free: 11.17 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.256e-05/0.9555, allocations: 34.55 kB / 1.089 GB, free: 11.13 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=31): time 2.785e-06/0.9555, allocations: 0 / 1.089 GB, free: 11.13 MB / 0.8419 GB Notification: Performance of matching and sorting (n=31): time 0.00125/0.9568, allocations: 0.5432 MB / 1.09 GB, free: 10.58 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.82e-05/0.9569, allocations: 59.34 kB / 1.09 GB, free: 10.51 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001276/0.9581, allocations: 0.9221 MB / 1.091 GB, free: 9.566 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 4.184e-05/0.9582, allocations: 33.7 kB / 1.091 GB, free: 9.527 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005305/0.9587, allocations: 0.4918 MB / 1.091 GB, free: 9.027 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001144/0.9588, allocations: 106.4 kB / 1.091 GB, free: 8.922 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.152e-05/0.9589, allocations: 12 kB / 1.091 GB, free: 8.91 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001316/0.959, allocations: 326 kB / 1.092 GB, free: 8.586 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003927/0.9594, allocations: 173 kB / 1.092 GB, free: 8.418 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005203/0.9599, allocations: 362.9 kB / 1.092 GB, free: 7.988 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004221/0.9604, allocations: 231.8 kB / 1.092 GB, free: 7.762 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.631e-06/0.9604, allocations: 4 kB / 1.092 GB, free: 7.758 MB / 0.8419 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001125/0.9615, allocations: 0.6405 MB / 1.093 GB, free: 7.109 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 2.429e-05/0.9616, allocations: 11.94 kB / 1.093 GB, free: 7.098 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.397e-05/0.9616, allocations: 4 kB / 1.093 GB, free: 7.094 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.127e-05/0.9616, allocations: 12 kB / 1.093 GB, free: 7.082 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004458/0.9621, allocations: 136.2 kB / 1.093 GB, free: 6.949 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.084e-05/0.9621, allocations: 11.98 kB / 1.093 GB, free: 6.938 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007539/0.9628, allocations: 111.2 kB / 1.093 GB, free: 6.828 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.2e-05/0.9629, allocations: 27.98 kB / 1.093 GB, free: 6.801 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004244/0.9633, allocations: 277.6 kB / 1.094 GB, free: 6.52 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001416/0.9635, allocations: 102.7 kB / 1.094 GB, free: 6.418 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009774/0.9645, allocations: 0.4966 MB / 1.094 GB, free: 5.914 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.41e-05/0.9645, allocations: 7.984 kB / 1.094 GB, free: 5.906 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.57e-06/0.9645, allocations: 0 / 1.094 GB, free: 5.906 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007188/0.9652, allocations: 474.1 kB / 1.095 GB, free: 5.414 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002178/0.9674, allocations: 1.375 MB / 1.096 GB, free: 3.969 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.452e-06/0.9674, allocations: 4 kB / 1.096 GB, free: 3.965 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003285/0.9678, allocations: 79.89 kB / 1.096 GB, free: 3.887 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.242e-06/0.9678, allocations: 4 kB / 1.096 GB, free: 3.883 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.55e-05/0.9678, allocations: 8 kB / 1.096 GB, free: 3.875 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.448e-06/0.9678, allocations: 4 kB / 1.096 GB, free: 3.871 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.954e-06/0.9678, allocations: 0 / 1.096 GB, free: 3.871 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001315/0.9692, allocations: 0.8126 MB / 1.097 GB, free: 3.027 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003303/0.9695, allocations: 239.7 kB / 1.097 GB, free: 2.773 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001082/0.9696, allocations: 11.98 kB / 1.097 GB, free: 2.762 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005271/0.9701, allocations: 55.92 kB / 1.097 GB, free: 2.707 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.71e-05/0.9702, allocations: 19.97 kB / 1.097 GB, free: 2.688 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.671e-05/0.9703, allocations: 19.98 kB / 1.097 GB, free: 2.668 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.001056/0.9713, allocations: 0.6471 MB / 1.098 GB, free: 2.012 MB / 0.8419 GB Notification: Performance of sort global known variables: time 2.3e-07/0.9713, allocations: 3.938 kB / 1.098 GB, free: 2.008 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.000951/0.9723, allocations: 335.5 kB / 1.098 GB, free: 1.68 MB / 0.8419 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007106/0.973, allocations: 350.6 kB / 1.098 GB, free: 1.34 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0008431/0.9739, allocations: 440.1 kB / 1.099 GB, free: 0.9102 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.9739, allocations: 0 / 1.099 GB, free: 0.9102 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0003546/0.9742, allocations: 200.5 kB / 1.099 GB, free: 0.7148 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002495/0.9768, allocations: 0.5951 MB / 1.1 GB, free: 132 kB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002911/0.9797, allocations: 1.958 MB / 1.102 GB, free: 14.12 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006114/0.9803, allocations: 1.04 MB / 1.103 GB, free: 13.05 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.0007141/0.981, allocations: 205.2 kB / 1.103 GB, free: 12.85 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001648/0.9812, allocations: 79.41 kB / 1.103 GB, free: 12.77 MB / 0.8575 GB Notification: Performance of SimCode: time 4.4e-07/0.9812, allocations: 0 / 1.103 GB, free: 12.77 MB / 0.8575 GB Notification: Performance of Templates: time 0.03513/1.016, allocations: 19.52 MB / 1.122 GB, free: 9.523 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=480 -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