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.00494/0.00494, allocations: 104.7 kB / 15.74 MB, free: 6.484 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.001224/0.001224, allocations: 193.5 kB / 16.67 MB, free: 6.375 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.296/1.296, allocations: 222.9 MB / 240.4 MB, free: 4.293 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.187/2.187, allocations: 390.3 MB / 0.6648 GB, free: 180 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001201/0.001201, allocations: 66.98 kB / 0.9504 GB, free: 5.871 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2424/0.2436, allocations: 140.4 MB / 1.087 GB, free: 1.953 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger): time 0.04218/0.2858, allocations: 41.58 MB / 1.128 GB, free: 8.215 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.0145/0.3004, allocations: 10.39 MB / 1.138 GB, free: 13.8 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00198/0.3024, allocations: 63.62 kB / 1.138 GB, free: 13.73 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.002146/0.3046, allocations: 0.6365 MB / 1.139 GB, free: 13.09 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.005121/0.3098, allocations: 1.878 MB / 1.141 GB, free: 11.21 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.003037/0.3128, allocations: 1.188 MB / 1.142 GB, free: 10.03 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.004244/0.3171, allocations: 3.395 MB / 1.145 GB, free: 6.629 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001596/0.3187, allocations: 1.074 MB / 1.146 GB, free: 5.539 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002931/0.3216, allocations: 1.231 MB / 1.147 GB, free: 4.309 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00148/0.3231, allocations: 0.8828 MB / 1.148 GB, free: 3.422 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 0.0002451/0.3234, allocations: 100 kB / 1.148 GB, free: 3.324 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002193/0.3256, allocations: 0.8617 MB / 1.149 GB, free: 2.461 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0003791/0.326, allocations: 283 kB / 1.15 GB, free: 2.184 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.000963/0.3269, allocations: 0.6298 MB / 1.15 GB, free: 1.551 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.002942/0.3299, allocations: 1.921 MB / 1.152 GB, free: 15.62 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 4.499e-06/0.3299, allocations: 4 kB / 1.152 GB, free: 15.62 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.623e-06/0.3299, allocations: 0 / 1.152 GB, free: 15.62 MB / 0.92 GB Notification: Performance of Transformations before backend: time 4.655e-05/0.33, allocations: 0 / 1.152 GB, free: 15.62 MB / 0.92 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.002776/0.3328, allocations: 1.515 MB / 1.154 GB, free: 14.05 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.001e-05/0.3328, allocations: 8.031 kB / 1.154 GB, free: 14.05 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001573/0.333, allocations: 118.7 kB / 1.154 GB, free: 13.92 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003996/0.3334, allocations: 135.4 kB / 1.154 GB, free: 13.79 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001883/0.3353, allocations: 1.111 MB / 1.155 GB, free: 12.63 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.685e-05/0.3353, allocations: 58 kB / 1.155 GB, free: 12.58 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001096/0.3354, allocations: 71.94 kB / 1.155 GB, free: 12.51 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001453/0.3369, allocations: 0.7905 MB / 1.156 GB, free: 11.68 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.858e-05/0.3369, allocations: 4 kB / 1.156 GB, free: 11.68 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.772e-05/0.337, allocations: 24 kB / 1.156 GB, free: 11.65 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.038e-05/0.3371, allocations: 20 kB / 1.156 GB, free: 11.63 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001227/0.3383, allocations: 0.5711 MB / 1.156 GB, free: 11.06 MB / 0.92 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.004579/0.3429, allocations: 3.547 MB / 1.16 GB, free: 7.285 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005919/0.3435, allocations: 262.4 kB / 1.16 GB, free: 7.02 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003584/0.3439, allocations: 188.7 kB / 1.16 GB, free: 6.832 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000547/0.3444, allocations: 0.6532 MB / 1.161 GB, free: 6.031 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.111e-05/0.3445, allocations: 38.56 kB / 1.161 GB, free: 5.984 MB / 0.92 GB Notification: Performance of pre-optimization done (n=31): time 2.655e-06/0.3445, allocations: 0 / 1.161 GB, free: 5.984 MB / 0.92 GB Notification: Performance of matching and sorting (n=31): time 0.00127/0.3457, allocations: 0.5163 MB / 1.161 GB, free: 5.461 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.371e-05/0.3458, allocations: 55.41 kB / 1.161 GB, free: 5.395 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001223/0.347, allocations: 0.9495 MB / 1.162 GB, free: 4.426 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 4.377e-05/0.3471, allocations: 33.7 kB / 1.162 GB, free: 4.387 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.000408/0.3475, allocations: 499.6 kB / 1.163 GB, free: 3.895 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001144/0.3476, allocations: 114.4 kB / 1.163 GB, free: 3.781 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001828/0.3478, allocations: 118 kB / 1.163 GB, free: 3.66 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001177/0.3479, allocations: 333.9 kB / 1.163 GB, free: 3.328 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003721/0.3483, allocations: 169 kB / 1.164 GB, free: 3.16 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005764/0.3489, allocations: 350.9 kB / 1.164 GB, free: 2.742 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009508/0.3499, allocations: 0.5108 MB / 1.164 GB, free: 2.16 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.845e-06/0.3499, allocations: 4 kB / 1.164 GB, free: 2.156 MB / 0.92 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001365/0.3512, allocations: 0.6094 MB / 1.165 GB, free: 1.539 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 2.9e-05/0.3513, allocations: 10.66 kB / 1.165 GB, free: 1.531 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.303e-05/0.3513, allocations: 4 kB / 1.165 GB, free: 1.527 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.652e-05/0.3513, allocations: 8 kB / 1.165 GB, free: 1.52 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004733/0.3518, allocations: 124.2 kB / 1.165 GB, free: 1.398 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.94e-05/0.3519, allocations: 19.92 kB / 1.165 GB, free: 1.379 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007197/0.3526, allocations: 87.19 kB / 1.165 GB, free: 1.293 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.515e-05/0.3526, allocations: 27.94 kB / 1.165 GB, free: 1.266 MB / 0.92 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.0004014/0.3531, allocations: 269.7 kB / 1.166 GB, free: 0.9922 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002219/0.3533, allocations: 102.8 kB / 1.166 GB, free: 0.8906 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001061/0.3543, allocations: 495.4 kB / 1.166 GB, free: 408 kB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.71e-05/0.3544, allocations: 11.98 kB / 1.166 GB, free: 396 kB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.829e-06/0.3544, allocations: 0 / 1.166 GB, free: 396 kB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007764/0.3552, allocations: 449.5 kB / 1.167 GB, free: 15.92 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002454/0.3576, allocations: 1.36 MB / 1.168 GB, free: 14.49 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.35e-06/0.3577, allocations: 4 kB / 1.168 GB, free: 14.48 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003446/0.358, allocations: 83.98 kB / 1.168 GB, free: 14.4 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.551e-06/0.358, allocations: 0 / 1.168 GB, free: 14.4 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.815e-05/0.3581, allocations: 11.98 kB / 1.168 GB, free: 14.39 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.589e-06/0.3581, allocations: 4 kB / 1.168 GB, free: 14.39 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.649e-06/0.3581, allocations: 4 kB / 1.168 GB, free: 14.38 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001285/0.3594, allocations: 0.7591 MB / 1.169 GB, free: 13.59 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003489/0.3597, allocations: 231.6 kB / 1.169 GB, free: 13.34 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001264/0.3599, allocations: 12.06 kB / 1.169 GB, free: 13.33 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005178/0.3604, allocations: 39.89 kB / 1.169 GB, free: 13.29 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.959e-05/0.3605, allocations: 23.97 kB / 1.169 GB, free: 13.27 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.339e-05/0.3605, allocations: 15.98 kB / 1.169 GB, free: 13.25 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0008426/0.3614, allocations: 0.6588 MB / 1.17 GB, free: 12.59 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.61e-07/0.3614, allocations: 0 / 1.17 GB, free: 12.59 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0009531/0.3623, allocations: 339.4 kB / 1.17 GB, free: 12.25 MB / 0.9356 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.00234/0.3647, allocations: 1.603 MB / 1.172 GB, free: 10.62 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0009715/0.3657, allocations: 419.8 kB / 1.172 GB, free: 10.21 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 3.657e-06/0.3657, allocations: 1.375 kB / 1.172 GB, free: 10.21 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0003976/0.3661, allocations: 189.1 kB / 1.172 GB, free: 10.02 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002792/0.3689, allocations: 0.5974 MB / 1.173 GB, free: 9.441 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0128/0.3817, allocations: 6.818 MB / 1.179 GB, free: 2.328 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007269/0.3825, allocations: 1.036 MB / 1.18 GB, free: 1.262 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 0.0008138/0.3833, allocations: 198 kB / 1.181 GB, free: 1.066 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005073/0.3838, allocations: 379.2 kB / 1.181 GB, free: 0.6953 MB / 0.9356 GB Notification: Performance of SimCode: time 1.212e-06/0.3838, allocations: 0 / 1.181 GB, free: 0.6953 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08087/0.4647, allocations: 29.74 MB / 1.21 GB, free: 3.293 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.98/12.45, allocations: 0 / 1.21 GB, free: 3.293 MB / 0.9669 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