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.001549/0.001549, allocations: 108 kB / 15.6 MB, free: 132 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.001718/0.001718, allocations: 194.6 kB / 16.53 MB, free: 6.391 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.367/1.367, allocations: 222.9 MB / 240.2 MB, free: 4.41 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.343/2.343, allocations: 390.3 MB / 0.6647 GB, free: 460 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001385/0.001386, allocations: 63.89 kB / 0.8127 GB, free: 14.36 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6231/0.6245, allocations: 140.4 MB / 0.9497 GB, free: 9.137 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger): time 0.03718/0.6618, allocations: 41.57 MB / 0.9903 GB, free: 7.707 MB / 0.7481 GB Notification: Performance of NFInst.instExpressions: time 0.01489/0.6767, allocations: 10.4 MB / 1 GB, free: 13.72 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001961/0.6787, allocations: 59.62 kB / 1.001 GB, free: 13.66 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 0.00164/0.6804, allocations: 0.6365 MB / 1.001 GB, free: 13.02 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 0.004888/0.6853, allocations: 1.881 MB / 1.003 GB, free: 11.13 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.002875/0.6882, allocations: 1.177 MB / 1.004 GB, free: 9.961 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.004208/0.6924, allocations: 3.388 MB / 1.007 GB, free: 6.57 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001627/0.694, allocations: 1.074 MB / 1.008 GB, free: 5.48 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002843/0.6969, allocations: 1.226 MB / 1.01 GB, free: 4.254 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001465/0.6984, allocations: 0.8828 MB / 1.011 GB, free: 3.367 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 0.0002692/0.6986, allocations: 100 kB / 1.011 GB, free: 3.27 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002109/0.7008, allocations: 0.8578 MB / 1.011 GB, free: 2.41 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 0.0003516/0.7011, allocations: 279 kB / 1.012 GB, free: 2.137 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 0.000964/0.7021, allocations: 0.6221 MB / 1.012 GB, free: 1.512 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.002943/0.705, allocations: 1.909 MB / 1.014 GB, free: 15.6 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.529e-06/0.7051, allocations: 4 kB / 1.014 GB, free: 15.59 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.483e-06/0.7051, allocations: 0 / 1.014 GB, free: 15.59 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.794e-05/0.7051, allocations: 0 / 1.014 GB, free: 15.59 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.002718/0.7079, allocations: 1.507 MB / 1.016 GB, free: 14.04 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.099e-05/0.7079, allocations: 8.031 kB / 1.016 GB, free: 14.03 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001524/0.7081, allocations: 118.7 kB / 1.016 GB, free: 13.9 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003842/0.7085, allocations: 135.4 kB / 1.016 GB, free: 13.77 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001605/0.7101, allocations: 1.049 MB / 1.017 GB, free: 12.68 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.106e-05/0.7101, allocations: 58 kB / 1.017 GB, free: 12.62 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001038/0.7102, allocations: 71.98 kB / 1.017 GB, free: 12.55 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001396/0.7116, allocations: 0.7944 MB / 1.018 GB, free: 11.72 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.531e-05/0.7117, allocations: 0 / 1.018 GB, free: 11.72 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.506e-05/0.7118, allocations: 32 kB / 1.018 GB, free: 11.69 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.676e-05/0.7118, allocations: 16 kB / 1.018 GB, free: 11.67 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001239/0.713, allocations: 0.575 MB / 1.018 GB, free: 11.1 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.004576/0.7176, allocations: 3.563 MB / 1.022 GB, free: 7.309 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005918/0.7182, allocations: 265.2 kB / 1.022 GB, free: 7.043 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003355/0.7186, allocations: 183.2 kB / 1.022 GB, free: 6.863 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004931/0.7191, allocations: 0.6648 MB / 1.023 GB, free: 6.051 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.866e-05/0.7191, allocations: 42.56 kB / 1.023 GB, free: 6 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=31): time 1.733e-06/0.7191, allocations: 0 / 1.023 GB, free: 6 MB / 0.7794 GB Notification: Performance of matching and sorting (n=31): time 0.001167/0.7203, allocations: 0.508 MB / 1.024 GB, free: 5.484 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.73e-05/0.7204, allocations: 59.41 kB / 1.024 GB, free: 5.414 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001106/0.7215, allocations: 0.9494 MB / 1.025 GB, free: 4.445 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 4.164e-05/0.7215, allocations: 33.7 kB / 1.025 GB, free: 4.406 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003784/0.7219, allocations: 499.6 kB / 1.025 GB, free: 3.914 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001148/0.722, allocations: 118.3 kB / 1.025 GB, free: 3.797 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001517/0.7222, allocations: 114.1 kB / 1.025 GB, free: 3.68 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.000106/0.7223, allocations: 329.9 kB / 1.026 GB, free: 3.352 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003518/0.7227, allocations: 165 kB / 1.026 GB, free: 3.188 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004768/0.7231, allocations: 354.9 kB / 1.026 GB, free: 2.766 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008119/0.724, allocations: 0.507 MB / 1.027 GB, free: 2.188 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.601e-06/0.724, allocations: 7.938 kB / 1.027 GB, free: 2.18 MB / 0.7794 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001137/0.7251, allocations: 0.6097 MB / 1.027 GB, free: 1.562 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.83e-05/0.7251, allocations: 11.94 kB / 1.027 GB, free: 1.551 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.073e-05/0.7252, allocations: 7.984 kB / 1.027 GB, free: 1.543 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.177e-05/0.7252, allocations: 8 kB / 1.027 GB, free: 1.535 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004324/0.7256, allocations: 123.8 kB / 1.027 GB, free: 1.414 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.658e-05/0.7257, allocations: 11.94 kB / 1.027 GB, free: 1.402 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006114/0.7263, allocations: 79.31 kB / 1.027 GB, free: 1.324 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.499e-05/0.7263, allocations: 39.92 kB / 1.027 GB, free: 1.285 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.0003496/0.7267, allocations: 273.6 kB / 1.028 GB, free: 1.008 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001711/0.7269, allocations: 98.78 kB / 1.028 GB, free: 0.9102 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001/0.7279, allocations: 484.3 kB / 1.028 GB, free: 440 kB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.144e-05/0.7279, allocations: 4 kB / 1.028 GB, free: 436 kB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.221e-06/0.7279, allocations: 0 / 1.028 GB, free: 436 kB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007491/0.7287, allocations: 449.5 kB / 1.029 GB, free: 15.96 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00208/0.7308, allocations: 1.366 MB / 1.03 GB, free: 14.52 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.037e-06/0.7308, allocations: 0 / 1.03 GB, free: 14.52 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003293/0.7311, allocations: 79.98 kB / 1.03 GB, free: 14.44 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.09e-06/0.7311, allocations: 4 kB / 1.03 GB, free: 14.44 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.686e-05/0.7312, allocations: 12 kB / 1.03 GB, free: 14.43 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.98e-06/0.7312, allocations: 4 kB / 1.03 GB, free: 14.42 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.813e-06/0.7312, allocations: 0 / 1.03 GB, free: 14.42 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001263/0.7324, allocations: 0.7671 MB / 1.031 GB, free: 13.62 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003221/0.7328, allocations: 231.7 kB / 1.031 GB, free: 13.38 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001497/0.7329, allocations: 8 kB / 1.031 GB, free: 13.37 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005415/0.7335, allocations: 32.03 kB / 1.031 GB, free: 13.34 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.308e-05/0.7336, allocations: 23.97 kB / 1.031 GB, free: 13.32 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.916e-05/0.7336, allocations: 19.98 kB / 1.031 GB, free: 13.3 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0008574/0.7345, allocations: 0.6588 MB / 1.032 GB, free: 12.63 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.41e-07/0.7345, allocations: 0 / 1.032 GB, free: 12.63 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0009529/0.7354, allocations: 335.5 kB / 1.032 GB, free: 12.3 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.002233/0.7377, allocations: 1.613 MB / 1.034 GB, free: 10.65 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.001004/0.7387, allocations: 459.6 kB / 1.034 GB, free: 10.2 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 5.48e-06/0.7387, allocations: 4 kB / 1.034 GB, free: 10.2 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0003723/0.7391, allocations: 181.5 kB / 1.034 GB, free: 10.02 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002715/0.7418, allocations: 0.6122 MB / 1.035 GB, free: 9.434 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009757/0.7516, allocations: 7.225 MB / 1.042 GB, free: 1.801 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006186/0.7522, allocations: 1.036 MB / 1.043 GB, free: 0.7344 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0008727/0.7531, allocations: 203.6 kB / 1.043 GB, free: 0.5352 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004708/0.7536, allocations: 371.3 kB / 1.044 GB, free: 176 kB / 0.795 GB Notification: Performance of SimCode: time 8.62e-07/0.7536, allocations: 0 / 1.044 GB, free: 176 kB / 0.795 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06109/0.8147, allocations: 29.55 MB / 1.072 GB, free: 3.039 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.439/10.25, allocations: 13.59 kB / 1.072 GB, free: 3.031 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