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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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: "" <> buildModelFMU(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger,fileNamePrefix="Buildings_9_Buildings_Fluid_Interfaces_Examples_FourPortHeatMassExchanger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger,fileNamePrefix="Buildings_9_Buildings_Fluid_Interfaces_Examples_FourPortHeatMassExchanger",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001441/0.00144, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001645/0.001645, allocations: 188.9 kB / 16.25 MB, free: 6.633 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.201/1.201, allocations: 222.9 MB / 239.9 MB, free: 4.5 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.256/2.256, allocations: 390.2 MB / 0.6644 GB, free: 0.5938 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001361/0.001361, allocations: 71.88 kB / 0.8122 GB, free: 14.7 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6436/0.645, allocations: 140.4 MB / 0.9492 GB, free: 9.066 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger): time 0.04112/0.6862, allocations: 41.26 MB / 0.9895 GB, free: 7.973 MB / 0.7481 GB Notification: Performance of NFInst.instExpressions: time 0.01615/0.7024, allocations: 10.32 MB / 0.9996 GB, free: 14.34 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002479/0.7049, allocations: 51.69 kB / 0.9997 GB, free: 14.29 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 0.002095/0.707, allocations: 0.5557 MB / 1 GB, free: 13.73 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 0.005747/0.7128, allocations: 1.757 MB / 1.002 GB, free: 11.96 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.003041/0.7159, allocations: 1.092 MB / 1.003 GB, free: 10.88 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.004646/0.7205, allocations: 3.41 MB / 1.006 GB, free: 7.465 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001665/0.7222, allocations: 1.054 MB / 1.007 GB, free: 6.395 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003352/0.7256, allocations: 1.246 MB / 1.009 GB, free: 5.148 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001673/0.7273, allocations: 0.9178 MB / 1.009 GB, free: 4.227 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 0.0002709/0.7275, allocations: 99.94 kB / 1.01 GB, free: 4.129 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002241/0.7298, allocations: 0.8732 MB / 1.01 GB, free: 3.254 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 0.0003875/0.7302, allocations: 279 kB / 1.011 GB, free: 2.98 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 0.0009145/0.7311, allocations: 0.626 MB / 1.011 GB, free: 2.352 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.00327/0.7344, allocations: 1.92 MB / 1.013 GB, free: 436 kB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 5.67e-06/0.7344, allocations: 0 / 1.013 GB, free: 436 kB / 0.7637 GB Notification: Performance of FrontEnd: time 1.523e-06/0.7344, allocations: 0 / 1.013 GB, free: 436 kB / 0.7637 GB Notification: Performance of Transformations before backend: time 0.0001001/0.7345, allocations: 4 kB / 1.013 GB, free: 432 kB / 0.7637 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.003013/0.7375, allocations: 1.507 MB / 1.015 GB, free: 14.86 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.159e-05/0.7376, allocations: 8.031 kB / 1.015 GB, free: 14.86 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001628/0.7378, allocations: 122.7 kB / 1.015 GB, free: 14.73 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004092/0.7382, allocations: 131.4 kB / 1.015 GB, free: 14.6 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001831/0.74, allocations: 1.087 MB / 1.016 GB, free: 13.46 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.611e-05/0.7401, allocations: 54 kB / 1.016 GB, free: 13.41 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001016/0.7402, allocations: 72 kB / 1.016 GB, free: 13.34 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001452/0.7417, allocations: 0.7905 MB / 1.017 GB, free: 12.52 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.401e-05/0.7417, allocations: 4 kB / 1.017 GB, free: 12.51 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.83e-05/0.7418, allocations: 32 kB / 1.017 GB, free: 12.48 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.872e-05/0.7418, allocations: 16 kB / 1.017 GB, free: 12.46 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001146/0.743, allocations: 0.5711 MB / 1.017 GB, free: 11.89 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.004295/0.7473, allocations: 3.547 MB / 1.021 GB, free: 8.117 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005698/0.7478, allocations: 264.7 kB / 1.021 GB, free: 7.852 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003431/0.7482, allocations: 178.8 kB / 1.021 GB, free: 7.676 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005303/0.7487, allocations: 0.657 MB / 1.022 GB, free: 6.871 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.203e-05/0.7488, allocations: 42.55 kB / 1.022 GB, free: 6.82 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=31): time 2.565e-06/0.7488, allocations: 4 kB / 1.022 GB, free: 6.816 MB / 0.7794 GB Notification: Performance of matching and sorting (n=31): time 0.001198/0.75, allocations: 0.5124 MB / 1.023 GB, free: 6.297 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.448e-05/0.7501, allocations: 51.41 kB / 1.023 GB, free: 6.234 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001152/0.7512, allocations: 0.9299 MB / 1.023 GB, free: 5.285 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 4.345e-05/0.7513, allocations: 37.7 kB / 1.024 GB, free: 5.242 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004292/0.7517, allocations: 0.4957 MB / 1.024 GB, free: 4.742 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001006/0.7518, allocations: 106.4 kB / 1.024 GB, free: 4.637 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001651/0.752, allocations: 114.1 kB / 1.024 GB, free: 4.52 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001237/0.7521, allocations: 329.9 kB / 1.025 GB, free: 4.191 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003542/0.7525, allocations: 161 kB / 1.025 GB, free: 4.031 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004907/0.753, allocations: 354.9 kB / 1.025 GB, free: 3.609 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008501/0.7538, allocations: 0.5147 MB / 1.026 GB, free: 3.023 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.138e-06/0.7538, allocations: 0 / 1.026 GB, free: 3.023 MB / 0.7794 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001155/0.755, allocations: 0.6169 MB / 1.026 GB, free: 2.398 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.038e-05/0.755, allocations: 8.688 kB / 1.026 GB, free: 2.391 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.027e-06/0.7551, allocations: 4 kB / 1.026 GB, free: 2.387 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.127e-05/0.7551, allocations: 12 kB / 1.026 GB, free: 2.375 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004319/0.7555, allocations: 123.8 kB / 1.026 GB, free: 2.254 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.64e-05/0.7556, allocations: 8 kB / 1.026 GB, free: 2.246 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006969/0.7563, allocations: 111.2 kB / 1.026 GB, free: 2.137 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.066e-05/0.7563, allocations: 27.94 kB / 1.026 GB, free: 2.109 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.0003484/0.7567, allocations: 277.6 kB / 1.027 GB, free: 1.828 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001751/0.7568, allocations: 102.8 kB / 1.027 GB, free: 1.727 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009623/0.7578, allocations: 488 kB / 1.027 GB, free: 1.246 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.113e-05/0.7578, allocations: 8 kB / 1.027 GB, free: 1.238 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.899e-06/0.7579, allocations: 0 / 1.027 GB, free: 1.238 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006969/0.7586, allocations: 457.4 kB / 1.028 GB, free: 0.7617 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002085/0.7607, allocations: 1.362 MB / 1.029 GB, free: 15.33 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.178e-06/0.7607, allocations: 0 / 1.029 GB, free: 15.33 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003369/0.761, allocations: 83.81 kB / 1.029 GB, free: 15.25 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.632e-06/0.761, allocations: 4 kB / 1.029 GB, free: 15.24 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.043e-05/0.7611, allocations: 8 kB / 1.029 GB, free: 15.23 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.158e-06/0.7611, allocations: 4 kB / 1.029 GB, free: 15.23 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.784e-06/0.7611, allocations: 0 / 1.029 GB, free: 15.23 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001264/0.7623, allocations: 0.77 MB / 1.03 GB, free: 14.43 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003343/0.7627, allocations: 223.8 kB / 1.03 GB, free: 14.19 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001375/0.7628, allocations: 11.98 kB / 1.03 GB, free: 14.18 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005769/0.7634, allocations: 51.86 kB / 1.03 GB, free: 14.13 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.7e-05/0.7635, allocations: 27.91 kB / 1.03 GB, free: 14.1 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.91e-05/0.7636, allocations: 19.98 kB / 1.03 GB, free: 14.08 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0008009/0.7644, allocations: 0.6471 MB / 1.031 GB, free: 13.43 MB / 0.795 GB Notification: Performance of sort global known variables: time 4.11e-07/0.7644, allocations: 0 / 1.031 GB, free: 13.43 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0009514/0.7653, allocations: 335.4 kB / 1.031 GB, free: 13.1 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.002232/0.7676, allocations: 1.581 MB / 1.033 GB, free: 11.48 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0009761/0.7686, allocations: 456.3 kB / 1.033 GB, free: 11.04 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 5.71e-06/0.7686, allocations: 0 / 1.033 GB, free: 11.04 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0004172/0.769, allocations: 183.8 kB / 1.033 GB, free: 10.86 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002611/0.7716, allocations: 0.6156 MB / 1.034 GB, free: 10.27 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01172/0.7834, allocations: 7.48 MB / 1.041 GB, free: 2.383 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000611/0.784, allocations: 1.04 MB / 1.042 GB, free: 1.312 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0007835/0.7848, allocations: 196 kB / 1.042 GB, free: 1.121 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004886/0.7853, allocations: 375.3 kB / 1.043 GB, free: 0.7539 MB / 0.795 GB Notification: Performance of SimCode: time 4.51e-07/0.7853, allocations: 0 / 1.043 GB, free: 0.7539 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0632/0.8485, allocations: 28.94 MB / 1.071 GB, free: 4.27 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001977/0.8487, allocations: 264.3 kB / 1.071 GB, free: 4.008 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.528/3.376, allocations: 0 / 1.071 GB, free: 4.008 MB / 0.8262 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_Interfaces_Examples_FourPortHeatMassExchanger_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_Interfaces_Examples_FourPortHeatMassExchanger.fmu > 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