Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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 11.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_Buildings_Fluid_Interfaces_Examples_FourPortHeatMassExchanger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger,fileNamePrefix="Buildings_11_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.001217/0.001217, 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.00116/0.00116, allocations: 195.2 kB / 16.54 MB, free: 6.672 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.419/1.419, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.69/2.69, allocations: 469.8 MB / 0.7424 GB, free: 7.422 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001855/0.001855, allocations: 70.06 kB / 0.9086 GB, free: 34.43 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2979/0.2998, allocations: 159.2 MB / 1.064 GB, free: 14.2 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger): time 0.0449/0.3447, allocations: 41.57 MB / 1.105 GB, free: 4.477 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.01574/0.3605, allocations: 10.4 MB / 1.115 GB, free: 10.05 MB / 0.8731 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001662/0.3622, allocations: 63.62 kB / 1.115 GB, free: 9.988 MB / 0.8731 GB Notification: Performance of NFTyping.typeComponents: time 0.001586/0.3639, allocations: 0.6365 MB / 1.116 GB, free: 9.348 MB / 0.8731 GB Notification: Performance of NFTyping.typeBindings: time 0.004771/0.3687, allocations: 1.879 MB / 1.117 GB, free: 7.461 MB / 0.8731 GB Notification: Performance of NFTyping.typeClassSections: time 0.002786/0.3714, allocations: 1.178 MB / 1.119 GB, free: 6.293 MB / 0.8731 GB Notification: Performance of NFFlatten.flatten: time 0.004244/0.3757, allocations: 3.386 MB / 1.122 GB, free: 2.902 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001374/0.3771, allocations: 1.068 MB / 1.123 GB, free: 1.812 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002598/0.3797, allocations: 1.227 MB / 1.124 GB, free: 0.5859 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001176/0.3809, allocations: 0.8789 MB / 1.125 GB, free: 15.7 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 0.0001596/0.3811, allocations: 100 kB / 1.125 GB, free: 15.61 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001924/0.383, allocations: 0.8539 MB / 1.126 GB, free: 14.75 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 0.0002896/0.3833, allocations: 283 kB / 1.126 GB, free: 14.47 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 0.0006731/0.384, allocations: 0.626 MB / 1.127 GB, free: 13.84 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.002449/0.3864, allocations: 1.905 MB / 1.129 GB, free: 11.93 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 3.416e-06/0.3864, allocations: 0 / 1.129 GB, free: 11.93 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.202e-06/0.3864, allocations: 0 / 1.129 GB, free: 11.93 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 1.25e-05/0.3865, allocations: 4 kB / 1.129 GB, free: 11.93 MB / 0.8887 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.002324/0.3888, allocations: 1.515 MB / 1.13 GB, free: 10.36 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.187e-05/0.3888, allocations: 12.03 kB / 1.13 GB, free: 10.35 MB / 0.8887 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001387/0.389, allocations: 114.7 kB / 1.13 GB, free: 10.23 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003411/0.3893, allocations: 135.4 kB / 1.13 GB, free: 10.1 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001539/0.3909, allocations: 1.045 MB / 1.131 GB, free: 9.008 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.406e-05/0.3909, allocations: 54 kB / 1.131 GB, free: 8.957 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001059/0.3911, allocations: 72 kB / 1.131 GB, free: 8.887 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001334/0.3924, allocations: 0.7905 MB / 1.132 GB, free: 8.059 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.394e-05/0.3924, allocations: 7.891 kB / 1.132 GB, free: 8.051 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.788e-05/0.3925, allocations: 35.97 kB / 1.132 GB, free: 8.016 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.187e-05/0.3925, allocations: 20 kB / 1.132 GB, free: 7.996 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001128/0.3937, allocations: 0.5711 MB / 1.133 GB, free: 7.422 MB / 0.8887 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.004079/0.3978, allocations: 3.571 MB / 1.136 GB, free: 3.621 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005709/0.3983, allocations: 266.4 kB / 1.137 GB, free: 3.352 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003493/0.3987, allocations: 177.7 kB / 1.137 GB, free: 3.176 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005709/0.3993, allocations: 0.6531 MB / 1.137 GB, free: 2.375 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.064e-05/0.3993, allocations: 42.56 kB / 1.137 GB, free: 2.324 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=31): time 5.229e-06/0.3993, allocations: 0 / 1.137 GB, free: 2.324 MB / 0.8887 GB Notification: Performance of matching and sorting (n=31): time 0.001172/0.4005, allocations: 0.5085 MB / 1.138 GB, free: 1.809 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.9e-05/0.4006, allocations: 63.34 kB / 1.138 GB, free: 1.734 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001153/0.4017, allocations: 0.9456 MB / 1.139 GB, free: 0.7695 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 4.494e-05/0.4018, allocations: 37.7 kB / 1.139 GB, free: 0.7266 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 0.000414/0.4022, allocations: 0.4918 MB / 1.139 GB, free: 236 kB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001053/0.4023, allocations: 114.4 kB / 1.14 GB, free: 120 kB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001572/0.4025, allocations: 114.1 kB / 1.14 GB, free: 0 / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0001569/0.4027, allocations: 329.9 kB / 1.14 GB, free: 15.67 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003586/0.403, allocations: 165 kB / 1.14 GB, free: 15.51 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005122/0.4035, allocations: 350.9 kB / 1.14 GB, free: 15.09 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008473/0.4044, allocations: 0.5186 MB / 1.141 GB, free: 14.5 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.25e-06/0.4044, allocations: 0 / 1.141 GB, free: 14.5 MB / 0.9044 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001127/0.4055, allocations: 0.6136 MB / 1.142 GB, free: 13.88 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.915e-05/0.4056, allocations: 8 kB / 1.142 GB, free: 13.88 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.848e-06/0.4056, allocations: 8.062 kB / 1.142 GB, free: 13.87 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.007e-05/0.4056, allocations: 8 kB / 1.142 GB, free: 13.86 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004287/0.406, allocations: 127.8 kB / 1.142 GB, free: 13.73 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.628e-05/0.4061, allocations: 11.94 kB / 1.142 GB, free: 13.72 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005387/0.4066, allocations: 79.25 kB / 1.142 GB, free: 13.64 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.542e-05/0.4067, allocations: 27.94 kB / 1.142 GB, free: 13.62 MB / 0.9044 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.0003455/0.407, allocations: 281.6 kB / 1.142 GB, free: 13.33 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001598/0.4072, allocations: 98.78 kB / 1.142 GB, free: 13.23 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009841/0.4082, allocations: 492.3 kB / 1.143 GB, free: 12.74 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.203e-05/0.4082, allocations: 8 kB / 1.143 GB, free: 12.73 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.4082, allocations: 0 / 1.143 GB, free: 12.73 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007539/0.409, allocations: 451.3 kB / 1.143 GB, free: 12.26 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002009/0.411, allocations: 1.359 MB / 1.144 GB, free: 10.83 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.366e-06/0.411, allocations: 0 / 1.144 GB, free: 10.83 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003286/0.4113, allocations: 79.81 kB / 1.144 GB, free: 10.75 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.271e-06/0.4114, allocations: 4 kB / 1.144 GB, free: 10.75 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.448e-05/0.4114, allocations: 8.156 kB / 1.145 GB, free: 10.74 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.328e-06/0.4114, allocations: 8 kB / 1.145 GB, free: 10.73 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.4114, allocations: 0 / 1.145 GB, free: 10.73 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0013/0.4127, allocations: 0.7669 MB / 1.145 GB, free: 9.938 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002903/0.413, allocations: 227.7 kB / 1.145 GB, free: 9.695 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001126/0.4131, allocations: 19.98 kB / 1.145 GB, free: 9.676 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004622/0.4136, allocations: 28.03 kB / 1.146 GB, free: 9.648 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.979e-05/0.4137, allocations: 27.97 kB / 1.146 GB, free: 9.621 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.029e-05/0.4137, allocations: 23.98 kB / 1.146 GB, free: 9.598 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.0008365/0.4146, allocations: 0.6588 MB / 1.146 GB, free: 8.93 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.1e-07/0.4146, allocations: 0 / 1.146 GB, free: 8.93 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0009191/0.4155, allocations: 335.5 kB / 1.147 GB, free: 8.602 MB / 0.9044 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.00229/0.4178, allocations: 1.605 MB / 1.148 GB, free: 6.965 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.00104/0.4188, allocations: 453.2 kB / 1.149 GB, free: 6.523 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 4.88e-06/0.4189, allocations: 7.938 kB / 1.149 GB, free: 6.516 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0003847/0.4193, allocations: 180.3 kB / 1.149 GB, free: 6.34 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002541/0.4218, allocations: 0.6169 MB / 1.149 GB, free: 5.746 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009831/0.4317, allocations: 7.22 MB / 1.156 GB, free: 14.13 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006745/0.4324, allocations: 1.044 MB / 1.157 GB, free: 13.06 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 0.0008115/0.4332, allocations: 199.4 kB / 1.158 GB, free: 12.86 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004755/0.4337, allocations: 371.3 kB / 1.158 GB, free: 12.5 MB / 0.92 GB Notification: Performance of SimCode: time 5.61e-07/0.4337, allocations: 3.938 kB / 1.158 GB, free: 12.5 MB / 0.92 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.318/2.752, allocations: 29.56 MB / 1.187 GB, free: 15.34 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.48/15.23, allocations: 0.6562 kB / 1.187 GB, free: 15.34 MB / 0.9512 GB (rm -f Buildings_11_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe ; mkfifo Buildings_11_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe ; head -c 1048576 < Buildings_11_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe >> ../files/Buildings_11_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger_res.mat --tempDir=temp_Buildings_11_Buildings_Fluid_Interfaces_Examples_FourPortHeatMassExchanger_fmu --startTime=0 --stopTime=5 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Fluid_Interfaces_Examples_FourPortHeatMassExchanger.fmu > Buildings_11_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Fluid_Interfaces_Examples_FourPortHeatMassExchanger.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches