Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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_latest_Buildings_Fluid_Interfaces_Examples_FourPortHeatMassExchanger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger,fileNamePrefix="Buildings_latest_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.006591/0.006591, allocations: 100.8 kB / 15.73 MB, free: 6.062 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.001783/0.001783, allocations: 195.3 kB / 16.67 MB, free: 5.973 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.336/1.336, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.569/2.569, allocations: 482.6 MB / 0.755 GB, free: 6.586 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001785/0.001785, allocations: 65.09 kB / 1.083 GB, free: 13.75 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2824/0.2842, allocations: 162.3 MB / 1.242 GB, free: 8.879 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger): time 0.04148/0.3257, allocations: 41.65 MB / 1.283 GB, free: 15.08 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.01403/0.3398, allocations: 10.42 MB / 1.293 GB, free: 4.637 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001127/0.341, allocations: 55.69 kB / 1.293 GB, free: 4.582 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.0014/0.3424, allocations: 0.6365 MB / 1.293 GB, free: 3.941 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.003827/0.3462, allocations: 1.881 MB / 1.295 GB, free: 2.051 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.002518/0.3488, allocations: 1.192 MB / 1.296 GB, free: 0.8672 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.003669/0.3525, allocations: 3.394 MB / 1.3 GB, free: 13.46 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001298/0.3538, allocations: 1.064 MB / 1.301 GB, free: 12.38 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002732/0.3565, allocations: 1.391 MB / 1.302 GB, free: 10.99 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001099/0.3576, allocations: 0.875 MB / 1.303 GB, free: 10.11 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 0.000155/0.3578, allocations: 100 kB / 1.303 GB, free: 10.02 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001689/0.3595, allocations: 0.854 MB / 1.304 GB, free: 9.16 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.0002746/0.3598, allocations: 283 kB / 1.304 GB, free: 8.883 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.000633/0.3604, allocations: 0.6299 MB / 1.305 GB, free: 8.25 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.002385/0.3628, allocations: 1.935 MB / 1.307 GB, free: 6.309 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 3.386e-06/0.3628, allocations: 0 / 1.307 GB, free: 6.309 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.623e-06/0.3628, allocations: 4 kB / 1.307 GB, free: 6.305 MB / 1.029 GB Notification: Performance of Transformations before backend: time 1.252e-05/0.3628, allocations: 0 / 1.307 GB, free: 6.305 MB / 1.029 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.002294/0.3651, allocations: 1.544 MB / 1.308 GB, free: 4.703 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.887e-05/0.3652, allocations: 8.031 kB / 1.308 GB, free: 4.695 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001366/0.3653, allocations: 118.7 kB / 1.308 GB, free: 4.57 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003346/0.3657, allocations: 148.1 kB / 1.308 GB, free: 4.426 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00163/0.3673, allocations: 1.116 MB / 1.31 GB, free: 3.27 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.417e-05/0.3674, allocations: 53.94 kB / 1.31 GB, free: 3.215 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001039/0.3675, allocations: 76 kB / 1.31 GB, free: 3.141 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001313/0.3688, allocations: 0.7866 MB / 1.31 GB, free: 2.32 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.309e-05/0.3688, allocations: 7.984 kB / 1.31 GB, free: 2.312 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.007e-05/0.3689, allocations: 32 kB / 1.31 GB, free: 2.281 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.656e-05/0.3689, allocations: 16 kB / 1.31 GB, free: 2.266 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001107/0.3701, allocations: 0.5672 MB / 1.311 GB, free: 1.695 MB / 1.029 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.003948/0.374, allocations: 3.719 MB / 1.315 GB, free: 13.71 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005547/0.3746, allocations: 262.4 kB / 1.315 GB, free: 13.45 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003526/0.3749, allocations: 182.6 kB / 1.315 GB, free: 13.27 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005299/0.3755, allocations: 0.657 MB / 1.316 GB, free: 12.46 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.634e-05/0.3755, allocations: 38.56 kB / 1.316 GB, free: 12.41 MB / 1.045 GB Notification: Performance of pre-optimization done (n=31): time 1.502e-06/0.3755, allocations: 0 / 1.316 GB, free: 12.41 MB / 1.045 GB Notification: Performance of matching and sorting (n=31): time 0.00116/0.3767, allocations: 0.513 MB / 1.316 GB, free: 11.89 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.875e-05/0.3767, allocations: 59.34 kB / 1.316 GB, free: 11.82 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001145/0.3779, allocations: 0.9495 MB / 1.317 GB, free: 10.86 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 3.707e-05/0.3779, allocations: 33.7 kB / 1.317 GB, free: 10.82 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004154/0.3784, allocations: 0.5004 MB / 1.318 GB, free: 10.31 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001036/0.3785, allocations: 123 kB / 1.318 GB, free: 10.19 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001564/0.3786, allocations: 106.2 kB / 1.318 GB, free: 10.08 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001366/0.3788, allocations: 333.9 kB / 1.318 GB, free: 9.746 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003567/0.3791, allocations: 169 kB / 1.318 GB, free: 9.582 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000505/0.3796, allocations: 343 kB / 1.319 GB, free: 9.172 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008449/0.3805, allocations: 0.5148 MB / 1.319 GB, free: 8.586 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.189e-06/0.3805, allocations: 8 kB / 1.319 GB, free: 8.578 MB / 1.045 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001123/0.3816, allocations: 0.6177 MB / 1.32 GB, free: 7.953 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 1.677e-05/0.3817, allocations: 8 kB / 1.32 GB, free: 7.945 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.927e-06/0.3817, allocations: 4 kB / 1.32 GB, free: 7.941 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.939e-05/0.3817, allocations: 8 kB / 1.32 GB, free: 7.934 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004207/0.3821, allocations: 127.8 kB / 1.32 GB, free: 7.809 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.737e-05/0.3822, allocations: 15.92 kB / 1.32 GB, free: 7.793 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005289/0.3827, allocations: 91.78 kB / 1.32 GB, free: 7.703 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.626e-05/0.3828, allocations: 27.94 kB / 1.32 GB, free: 7.676 MB / 1.045 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.0003324/0.3831, allocations: 273.6 kB / 1.32 GB, free: 7.398 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001507/0.3832, allocations: 103.3 kB / 1.321 GB, free: 7.297 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009713/0.3842, allocations: 485.2 kB / 1.321 GB, free: 6.812 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.838e-06/0.3842, allocations: 4 kB / 1.321 GB, free: 6.809 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.368e-06/0.3843, allocations: 0 / 1.321 GB, free: 6.809 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000748/0.385, allocations: 453.9 kB / 1.321 GB, free: 6.336 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002004/0.387, allocations: 1.368 MB / 1.323 GB, free: 4.898 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.552e-06/0.387, allocations: 4 kB / 1.323 GB, free: 4.895 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00032/0.3874, allocations: 83.97 kB / 1.323 GB, free: 4.812 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.566e-06/0.3874, allocations: 0 / 1.323 GB, free: 4.812 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.689e-05/0.3874, allocations: 11.98 kB / 1.323 GB, free: 4.801 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.036e-06/0.3874, allocations: 4 kB / 1.323 GB, free: 4.797 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.549e-06/0.3874, allocations: 4 kB / 1.323 GB, free: 4.793 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001297/0.3887, allocations: 0.7685 MB / 1.324 GB, free: 3.996 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002933/0.389, allocations: 228.2 kB / 1.324 GB, free: 3.754 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001084/0.3891, allocations: 12 kB / 1.324 GB, free: 3.742 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004731/0.3896, allocations: 39.95 kB / 1.324 GB, free: 3.703 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.87e-05/0.3897, allocations: 23.97 kB / 1.324 GB, free: 3.68 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.788e-05/0.3898, allocations: 19.98 kB / 1.324 GB, free: 3.66 MB / 1.045 GB Notification: Performance of sorting global known variables: time 0.0008445/0.3906, allocations: 0.6549 MB / 1.325 GB, free: 2.996 MB / 1.045 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3906, allocations: 0 / 1.325 GB, free: 2.996 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0008737/0.3915, allocations: 347.2 kB / 1.325 GB, free: 2.656 MB / 1.045 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.002246/0.3937, allocations: 1.605 MB / 1.326 GB, free: 1.02 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.000872/0.3946, allocations: 427.5 kB / 1.327 GB, free: 0.6016 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.3946, allocations: 0 / 1.327 GB, free: 0.6016 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.000377/0.395, allocations: 185.1 kB / 1.327 GB, free: 432 kB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002608/0.3976, allocations: 0.6091 MB / 1.328 GB, free: 15.82 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009533/0.4072, allocations: 6.844 MB / 1.334 GB, free: 8.688 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006411/0.4079, allocations: 1.048 MB / 1.335 GB, free: 7.609 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 0.0006824/0.4085, allocations: 195.5 kB / 1.336 GB, free: 7.418 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004793/0.409, allocations: 375.3 kB / 1.336 GB, free: 7.051 MB / 1.061 GB Notification: Performance of SimCode: time 7.12e-07/0.409, allocations: 0 / 1.336 GB, free: 7.051 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.925/4.334, allocations: 29.72 MB / 1.365 GB, free: 9.73 MB / 1.092 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.88/20.21, allocations: 15.67 kB / 1.365 GB, free: 9.719 MB / 1.092 GB (rm -f Buildings_latest_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe >> ../files/Buildings_latest_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_Interfaces_Examples_FourPortHeatMassExchanger_fmu --startTime=0 --stopTime=5 --timeout=400 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_Interfaces_Examples_FourPortHeatMassExchanger.fmu > Buildings_latest_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Interfaces_Examples_FourPortHeatMassExchanger.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches