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: "" <> 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.00148/0.00148, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001685/0.001685, allocations: 197.9 kB / 16.14 MB, free: 6.711 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.339/1.339, allocations: 222.9 MB / 239.8 MB, free: 4.637 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.282/2.282, allocations: 390.2 MB / 0.6643 GB, free: 0.582 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001333/0.001333, allocations: 71.89 kB / 0.812 GB, free: 14.77 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5177/0.5191, allocations: 140.4 MB / 0.949 GB, free: 9.078 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger): time 0.03387/0.553, allocations: 41.34 MB / 0.9894 GB, free: 7.949 MB / 0.7481 GB Notification: Performance of NFInst.instExpressions: time 0.01296/0.566, allocations: 10.45 MB / 0.9996 GB, free: 14.11 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001618/0.5676, allocations: 51.69 kB / 0.9997 GB, free: 14.06 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 0.001551/0.5692, allocations: 0.5322 MB / 1 GB, free: 13.52 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 0.004042/0.5733, allocations: 1.75 MB / 1.002 GB, free: 11.77 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.002433/0.5757, allocations: 1.068 MB / 1.003 GB, free: 10.71 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.004348/0.5801, allocations: 4.52 MB / 1.007 GB, free: 6.184 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001248/0.5813, allocations: 0.8812 MB / 1.008 GB, free: 5.285 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002009/0.5833, allocations: 1.038 MB / 1.009 GB, free: 4.242 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001387/0.5847, allocations: 0.8982 MB / 1.01 GB, free: 3.34 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 0.0001835/0.5849, allocations: 48 kB / 1.01 GB, free: 3.293 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00167/0.5866, allocations: 0.7755 MB / 1.011 GB, free: 2.516 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 0.0002745/0.5869, allocations: 227 kB / 1.011 GB, free: 2.293 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 0.0007084/0.5876, allocations: 0.583 MB / 1.012 GB, free: 1.707 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.002073/0.5897, allocations: 1.877 MB / 1.014 GB, free: 15.82 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.247e-06/0.5897, allocations: 0 / 1.014 GB, free: 15.82 MB / 0.7794 GB Notification: Performance of FrontEnd: time 8.61e-07/0.5897, allocations: 0 / 1.014 GB, free: 15.82 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 2.646e-05/0.5897, allocations: 0 / 1.014 GB, free: 15.82 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.002403/0.5922, allocations: 1.503 MB / 1.015 GB, free: 14.27 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.429e-05/0.5922, allocations: 12.03 kB / 1.015 GB, free: 14.25 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001364/0.5923, allocations: 114.7 kB / 1.015 GB, free: 14.13 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003453/0.5927, allocations: 135.4 kB / 1.015 GB, free: 14 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001526/0.5942, allocations: 1.088 MB / 1.016 GB, free: 12.87 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.624e-05/0.5943, allocations: 53.98 kB / 1.016 GB, free: 12.82 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.671e-05/0.5944, allocations: 75.94 kB / 1.016 GB, free: 12.74 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001268/0.5957, allocations: 0.7866 MB / 1.017 GB, free: 11.93 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.905e-05/0.5957, allocations: 4 kB / 1.017 GB, free: 11.92 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.402e-05/0.5958, allocations: 32 kB / 1.017 GB, free: 11.89 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.854e-05/0.5958, allocations: 20 kB / 1.017 GB, free: 11.87 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001081/0.5969, allocations: 0.5672 MB / 1.018 GB, free: 11.3 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.003634/0.6005, allocations: 3.547 MB / 1.021 GB, free: 7.527 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005359/0.6011, allocations: 266.4 kB / 1.022 GB, free: 7.258 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003305/0.6014, allocations: 183.2 kB / 1.022 GB, free: 7.078 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004503/0.6019, allocations: 0.657 MB / 1.022 GB, free: 6.273 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.324e-05/0.6019, allocations: 34.56 kB / 1.022 GB, free: 6.23 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=31): time 1.513e-06/0.6019, allocations: 0 / 1.022 GB, free: 6.23 MB / 0.7794 GB Notification: Performance of matching and sorting (n=31): time 0.001114/0.603, allocations: 0.5163 MB / 1.023 GB, free: 5.707 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.08e-05/0.6031, allocations: 59.34 kB / 1.023 GB, free: 5.637 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001079/0.6042, allocations: 0.9299 MB / 1.024 GB, free: 4.688 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 3.967e-05/0.6042, allocations: 33.7 kB / 1.024 GB, free: 4.648 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003524/0.6046, allocations: 0.4918 MB / 1.024 GB, free: 4.148 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 9.156e-05/0.6047, allocations: 122.4 kB / 1.024 GB, free: 4.027 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001464/0.6048, allocations: 106.2 kB / 1.025 GB, free: 3.918 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001013/0.6049, allocations: 333.9 kB / 1.025 GB, free: 3.586 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003553/0.6053, allocations: 165 kB / 1.025 GB, free: 3.422 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004608/0.6058, allocations: 350.9 kB / 1.025 GB, free: 3.004 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007834/0.6065, allocations: 0.5108 MB / 1.026 GB, free: 2.422 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.992e-06/0.6066, allocations: 4 kB / 1.026 GB, free: 2.418 MB / 0.7794 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001064/0.6076, allocations: 0.613 MB / 1.026 GB, free: 1.797 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.779e-05/0.6077, allocations: 8 kB / 1.026 GB, free: 1.789 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.855e-06/0.6077, allocations: 4 kB / 1.027 GB, free: 1.785 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.738e-05/0.6077, allocations: 8.656 kB / 1.027 GB, free: 1.777 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000418/0.6081, allocations: 131.8 kB / 1.027 GB, free: 1.648 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.599e-05/0.6081, allocations: 15.92 kB / 1.027 GB, free: 1.633 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006156/0.6088, allocations: 107.2 kB / 1.027 GB, free: 1.527 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.583e-05/0.6088, allocations: 31.92 kB / 1.027 GB, free: 1.496 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.0003096/0.6091, allocations: 273.6 kB / 1.027 GB, free: 1.219 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001494/0.6093, allocations: 98.78 kB / 1.027 GB, free: 1.121 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009053/0.6102, allocations: 488.2 kB / 1.028 GB, free: 0.6406 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.703e-06/0.6102, allocations: 4 kB / 1.028 GB, free: 0.6367 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.422e-06/0.6102, allocations: 7.984 kB / 1.028 GB, free: 0.6289 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006795/0.6109, allocations: 449.5 kB / 1.028 GB, free: 164 kB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001889/0.6128, allocations: 1.354 MB / 1.029 GB, free: 14.73 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.528e-06/0.6128, allocations: 7.938 kB / 1.029 GB, free: 14.73 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003165/0.6132, allocations: 75.83 kB / 1.029 GB, free: 14.65 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.777e-06/0.6132, allocations: 0 / 1.029 GB, free: 14.65 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.868e-05/0.6132, allocations: 16.06 kB / 1.029 GB, free: 14.64 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.11e-06/0.6132, allocations: 7.984 kB / 1.029 GB, free: 14.63 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.747e-06/0.6132, allocations: 4 kB / 1.029 GB, free: 14.62 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001187/0.6144, allocations: 0.7661 MB / 1.03 GB, free: 13.83 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002808/0.6147, allocations: 223.8 kB / 1.03 GB, free: 13.59 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001177/0.6148, allocations: 8 kB / 1.03 GB, free: 13.58 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005596/0.6154, allocations: 55.86 kB / 1.03 GB, free: 13.53 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.386e-05/0.6155, allocations: 27.95 kB / 1.031 GB, free: 13.5 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.91e-05/0.6155, allocations: 19.98 kB / 1.031 GB, free: 13.48 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.00077/0.6163, allocations: 0.6471 MB / 1.031 GB, free: 12.82 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.51e-07/0.6163, allocations: 0 / 1.031 GB, free: 12.82 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0008183/0.6171, allocations: 323.5 kB / 1.031 GB, free: 12.51 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.002015/0.6191, allocations: 1.596 MB / 1.033 GB, free: 10.88 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0008017/0.62, allocations: 424.4 kB / 1.033 GB, free: 10.46 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.62, allocations: 0 / 1.033 GB, free: 10.46 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0003644/0.6203, allocations: 183.8 kB / 1.034 GB, free: 10.29 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002623/0.623, allocations: 0.5983 MB / 1.034 GB, free: 9.699 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01087/0.6339, allocations: 7.484 MB / 1.042 GB, free: 1.812 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005392/0.6344, allocations: 1.04 MB / 1.043 GB, free: 0.7422 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0007165/0.6351, allocations: 187.7 kB / 1.043 GB, free: 0.5586 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000424/0.6356, allocations: 371.3 kB / 1.043 GB, free: 200 kB / 0.795 GB Notification: Performance of SimCode: time 2.7e-07/0.6356, allocations: 0 / 1.043 GB, free: 200 kB / 0.795 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9705/1.606, allocations: 28.35 MB / 1.071 GB, free: 4.27 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002512/1.606, allocations: 260.2 kB / 1.071 GB, free: 4.008 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.949/4.556, 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