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.0009771/0.0009768, allocations: 91.3 kB / 15.36 MB, free: 0.7383 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.007338/0.007338, allocations: 171.7 kB / 16.26 MB, free: 6.613 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.387/1.387, allocations: 223.3 MB / 240.3 MB, free: 5.332 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.794/2.794, allocations: 437.8 MB / 0.7121 GB, free: 6.934 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003454/0.0003455, allocations: 8 kB / 0.8728 GB, free: 3.309 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7153/0.7156, allocations: 153.8 MB / 1.023 GB, free: 15.86 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger): time 0.04067/0.7564, allocations: 40.51 MB / 1.063 GB, free: 7.207 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.01529/0.7717, allocations: 10.34 MB / 1.073 GB, free: 12.84 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002205/0.774, allocations: 47.69 kB / 1.073 GB, free: 12.79 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.001704/0.7757, allocations: 0.5322 MB / 1.073 GB, free: 12.26 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.005014/0.7807, allocations: 1.743 MB / 1.075 GB, free: 10.51 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.002727/0.7834, allocations: 1.082 MB / 1.076 GB, free: 9.438 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.004906/0.7884, allocations: 4.51 MB / 1.08 GB, free: 4.918 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001321/0.7897, allocations: 0.852 MB / 1.081 GB, free: 4.047 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002057/0.7918, allocations: 1.015 MB / 1.082 GB, free: 3.027 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001143/0.7929, allocations: 0.8631 MB / 1.083 GB, free: 2.16 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 9.614e-05/0.793, allocations: 36 kB / 1.083 GB, free: 2.125 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001984/0.795, allocations: 0.7715 MB / 1.084 GB, free: 1.352 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0002298/0.7953, allocations: 203.1 kB / 1.084 GB, free: 1.152 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0007184/0.796, allocations: 0.5807 MB / 1.085 GB, free: 0.5625 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.002492/0.7985, allocations: 1.838 MB / 1.086 GB, free: 14.72 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.127e-06/0.7985, allocations: 0 / 1.086 GB, free: 14.72 MB / 0.8419 GB Notification: Performance of FrontEnd: time 3.767e-06/0.7985, allocations: 0 / 1.086 GB, free: 14.72 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 1.518e-05/0.7985, allocations: 7.938 kB / 1.086 GB, free: 14.71 MB / 0.8419 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.002458/0.801, allocations: 1.297 MB / 1.088 GB, free: 13.36 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 5.769e-05/0.8011, allocations: 8.031 kB / 1.088 GB, free: 13.35 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003889/0.8015, allocations: 143.4 kB / 1.088 GB, free: 13.21 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002167/0.8036, allocations: 1.076 MB / 1.089 GB, free: 12.09 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.469e-05/0.8037, allocations: 54 kB / 1.089 GB, free: 12.04 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001231/0.8038, allocations: 68 kB / 1.089 GB, free: 11.97 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001483/0.8053, allocations: 0.8022 MB / 1.09 GB, free: 11.14 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.64e-05/0.8054, allocations: 7.906 kB / 1.09 GB, free: 11.13 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.574e-05/0.8054, allocations: 28 kB / 1.09 GB, free: 11.11 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.696e-05/0.8055, allocations: 23.94 kB / 1.09 GB, free: 11.08 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001229/0.8067, allocations: 0.5945 MB / 1.09 GB, free: 10.49 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.004655/0.8114, allocations: 3.551 MB / 1.094 GB, free: 6.707 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006109/0.812, allocations: 275.2 kB / 1.094 GB, free: 6.43 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000373/0.8124, allocations: 188.8 kB / 1.094 GB, free: 6.242 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005829/0.813, allocations: 0.6532 MB / 1.095 GB, free: 5.441 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.523e-05/0.813, allocations: 42.56 kB / 1.095 GB, free: 5.391 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=31): time 4.839e-06/0.813, allocations: 0 / 1.095 GB, free: 5.391 MB / 0.8419 GB Notification: Performance of matching and sorting (n=31): time 0.001244/0.8143, allocations: 0.5436 MB / 1.096 GB, free: 4.84 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.812e-05/0.8143, allocations: 55.41 kB / 1.096 GB, free: 4.773 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001173/0.8155, allocations: 0.9338 MB / 1.096 GB, free: 3.82 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 4.679e-05/0.8156, allocations: 37.64 kB / 1.097 GB, free: 3.777 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004285/0.816, allocations: 499.6 kB / 1.097 GB, free: 3.281 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001095/0.8161, allocations: 114.4 kB / 1.097 GB, free: 3.168 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.808e-05/0.8162, allocations: 49.7 kB / 1.097 GB, free: 3.113 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001246/0.8163, allocations: 333.9 kB / 1.097 GB, free: 2.781 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003694/0.8167, allocations: 173 kB / 1.098 GB, free: 2.613 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005036/0.8172, allocations: 360.4 kB / 1.098 GB, free: 2.188 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000869/0.8181, allocations: 0.5422 MB / 1.099 GB, free: 1.574 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.627e-06/0.8181, allocations: 0 / 1.099 GB, free: 1.574 MB / 0.8419 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001154/0.8193, allocations: 0.6444 MB / 1.099 GB, free: 0.9219 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 2.069e-05/0.8193, allocations: 6.031 kB / 1.099 GB, free: 0.918 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.385e-05/0.8193, allocations: 8 kB / 1.099 GB, free: 0.9102 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.913e-05/0.8194, allocations: 8 kB / 1.099 GB, free: 0.9023 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004384/0.8198, allocations: 128.2 kB / 1.099 GB, free: 0.7773 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.286e-05/0.8198, allocations: 12 kB / 1.099 GB, free: 0.7656 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006979/0.8205, allocations: 119.2 kB / 1.099 GB, free: 0.6484 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.477e-05/0.8206, allocations: 31.88 kB / 1.099 GB, free: 0.6172 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.0003613/0.8209, allocations: 281.5 kB / 1.1 GB, free: 340 kB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001396/0.8211, allocations: 98.78 kB / 1.1 GB, free: 240 kB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009844/0.8221, allocations: 0.4902 MB / 1.1 GB, free: 15.73 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.304e-05/0.8221, allocations: 4 kB / 1.1 GB, free: 15.73 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.23e-06/0.8221, allocations: 0 / 1.1 GB, free: 15.73 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007507/0.8229, allocations: 477.2 kB / 1.101 GB, free: 15.23 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002017/0.8249, allocations: 1.375 MB / 1.102 GB, free: 13.79 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.847e-06/0.8249, allocations: 160 / 1.102 GB, free: 13.79 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003267/0.8253, allocations: 87.83 kB / 1.102 GB, free: 13.7 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.801e-06/0.8253, allocations: 4 kB / 1.102 GB, free: 13.7 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.785e-05/0.8253, allocations: 11.98 kB / 1.102 GB, free: 13.69 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.298e-06/0.8253, allocations: 4 kB / 1.102 GB, free: 13.68 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.277e-06/0.8253, allocations: 3.938 kB / 1.102 GB, free: 13.68 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001297/0.8266, allocations: 0.7935 MB / 1.103 GB, free: 12.86 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000331/0.827, allocations: 255.6 kB / 1.103 GB, free: 12.59 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001016/0.8271, allocations: 4 kB / 1.103 GB, free: 12.58 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005689/0.8277, allocations: 59.58 kB / 1.103 GB, free: 12.53 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.442e-05/0.8277, allocations: 31.89 kB / 1.103 GB, free: 12.5 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.692e-05/0.8278, allocations: 19.98 kB / 1.103 GB, free: 12.48 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0008148/0.8286, allocations: 0.6471 MB / 1.104 GB, free: 11.82 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.21e-07/0.8286, allocations: 0 / 1.104 GB, free: 11.82 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0009766/0.8296, allocations: 339.4 kB / 1.104 GB, free: 11.49 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.0007703/0.8304, allocations: 385 kB / 1.105 GB, free: 11.11 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0008777/0.8313, allocations: 440.1 kB / 1.105 GB, free: 10.68 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.8313, allocations: 3.938 kB / 1.105 GB, free: 10.68 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0003796/0.8317, allocations: 192.6 kB / 1.105 GB, free: 10.49 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002949/0.8346, allocations: 0.6068 MB / 1.106 GB, free: 9.895 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002588/0.8372, allocations: 1.99 MB / 1.108 GB, free: 7.855 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005624/0.8378, allocations: 1.036 MB / 1.109 GB, free: 6.789 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.0007058/0.8385, allocations: 205.8 kB / 1.109 GB, free: 6.586 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001527/0.8387, allocations: 79.36 kB / 1.109 GB, free: 6.508 MB / 0.8575 GB Notification: Performance of SimCode: time 2.61e-07/0.8387, allocations: 0 / 1.109 GB, free: 6.508 MB / 0.8575 GB Notification: Performance of Templates: time 0.03736/0.8761, allocations: 20.2 MB / 1.129 GB, free: 2.578 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