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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.001685/0.001685, allocations: 108 kB / 15.61 MB, free: 128 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.001872/0.001872, allocations: 198.1 kB / 16.53 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.293/1.293, 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 11.0.1-master/package.mo): time 2.623/2.623, allocations: 461.9 MB / 0.7346 GB, free: 14.68 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00129/0.00129, allocations: 62.91 kB / 0.8992 GB, free: 36.93 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2845/0.2858, allocations: 157.4 MB / 1.053 GB, free: 8.219 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger): time 0.04271/0.3286, allocations: 41.59 MB / 1.093 GB, free: 14.48 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.01525/0.3439, allocations: 10.41 MB / 1.104 GB, free: 4.047 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002263/0.3462, allocations: 59.62 kB / 1.104 GB, free: 3.988 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.001976/0.3482, allocations: 0.6404 MB / 1.104 GB, free: 3.344 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.00506/0.3533, allocations: 1.878 MB / 1.106 GB, free: 1.457 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.002914/0.3562, allocations: 1.169 MB / 1.107 GB, free: 304 kB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.004199/0.3604, allocations: 3.397 MB / 1.111 GB, free: 12.89 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001461/0.3619, allocations: 1.056 MB / 1.112 GB, free: 11.82 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002656/0.3646, allocations: 1.229 MB / 1.113 GB, free: 10.59 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001176/0.3658, allocations: 0.8789 MB / 1.114 GB, free: 9.711 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 0.0001579/0.3659, allocations: 100 kB / 1.114 GB, free: 9.613 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001906/0.3678, allocations: 0.8578 MB / 1.115 GB, free: 8.754 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.0002706/0.3681, allocations: 283 kB / 1.115 GB, free: 8.477 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.0006846/0.3688, allocations: 0.626 MB / 1.116 GB, free: 7.848 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.002431/0.3712, allocations: 1.901 MB / 1.117 GB, free: 5.941 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.3713, allocations: 0 / 1.117 GB, free: 5.941 MB / 0.8731 GB Notification: Performance of FrontEnd: time 1.553e-06/0.3713, allocations: 0 / 1.117 GB, free: 5.941 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 1.566e-05/0.3713, allocations: 0 / 1.117 GB, free: 5.941 MB / 0.8731 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.002256/0.3736, allocations: 1.518 MB / 1.119 GB, free: 4.371 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 4.013e-05/0.3736, allocations: 8.625 kB / 1.119 GB, free: 4.363 MB / 0.8731 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000124/0.3737, allocations: 114.7 kB / 1.119 GB, free: 4.242 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003541/0.3741, allocations: 139.4 kB / 1.119 GB, free: 4.105 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001459/0.3756, allocations: 1.053 MB / 1.12 GB, free: 3.008 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.927e-05/0.3756, allocations: 50 kB / 1.12 GB, free: 2.961 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.655e-05/0.3757, allocations: 72 kB / 1.12 GB, free: 2.891 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001256/0.377, allocations: 0.7905 MB / 1.121 GB, free: 2.062 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.034e-05/0.377, allocations: 4 kB / 1.121 GB, free: 2.059 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.589e-05/0.3771, allocations: 31.98 kB / 1.121 GB, free: 2.027 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.837e-05/0.3771, allocations: 20 kB / 1.121 GB, free: 2.008 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001106/0.3782, allocations: 0.5672 MB / 1.122 GB, free: 1.441 MB / 0.8731 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.003761/0.382, allocations: 3.579 MB / 1.125 GB, free: 13.64 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005565/0.3826, allocations: 266.4 kB / 1.125 GB, free: 13.37 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003378/0.3829, allocations: 174.5 kB / 1.126 GB, free: 13.2 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004788/0.3834, allocations: 0.6571 MB / 1.126 GB, free: 12.39 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.361e-05/0.3835, allocations: 38.5 kB / 1.126 GB, free: 12.34 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=31): time 2.165e-06/0.3835, allocations: 3.938 kB / 1.126 GB, free: 12.34 MB / 0.8887 GB Notification: Performance of matching and sorting (n=31): time 0.001158/0.3846, allocations: 0.5207 MB / 1.127 GB, free: 11.81 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.054e-05/0.3847, allocations: 51.41 kB / 1.127 GB, free: 11.75 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001078/0.3858, allocations: 0.9456 MB / 1.128 GB, free: 10.79 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 4.193e-05/0.3858, allocations: 33.7 kB / 1.128 GB, free: 10.75 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003815/0.3862, allocations: 0.4957 MB / 1.128 GB, free: 10.25 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 9.557e-05/0.3863, allocations: 114.4 kB / 1.128 GB, free: 10.13 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001502/0.3865, allocations: 106.2 kB / 1.128 GB, free: 10.02 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.000105/0.3866, allocations: 337.9 kB / 1.129 GB, free: 9.688 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000349/0.3869, allocations: 161 kB / 1.129 GB, free: 9.527 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004723/0.3874, allocations: 356.5 kB / 1.129 GB, free: 9.109 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008096/0.3882, allocations: 0.5225 MB / 1.13 GB, free: 8.516 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.017e-06/0.3882, allocations: 0 / 1.13 GB, free: 8.516 MB / 0.8887 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001123/0.3894, allocations: 0.6052 MB / 1.13 GB, free: 7.902 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 2.181e-05/0.3894, allocations: 8 kB / 1.13 GB, free: 7.895 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.06e-05/0.3894, allocations: 4.688 kB / 1.13 GB, free: 7.891 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.884e-05/0.3894, allocations: 8 kB / 1.13 GB, free: 7.883 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004396/0.3899, allocations: 135.7 kB / 1.131 GB, free: 7.75 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.363e-05/0.3899, allocations: 8 kB / 1.131 GB, free: 7.742 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006011/0.3905, allocations: 79.25 kB / 1.131 GB, free: 7.664 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.295e-05/0.3906, allocations: 27.94 kB / 1.131 GB, free: 7.637 MB / 0.8887 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.0003582/0.3909, allocations: 277.6 kB / 1.131 GB, free: 7.355 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001572/0.3911, allocations: 102.8 kB / 1.131 GB, free: 7.254 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009609/0.3921, allocations: 486.8 kB / 1.131 GB, free: 6.766 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.104e-05/0.3921, allocations: 4 kB / 1.131 GB, free: 6.762 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.459e-06/0.3921, allocations: 0 / 1.131 GB, free: 6.762 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007102/0.3928, allocations: 455 kB / 1.132 GB, free: 6.289 MB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001999/0.3948, allocations: 1.358 MB / 1.133 GB, free: 4.859 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.837e-06/0.3948, allocations: 0 / 1.133 GB, free: 4.859 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003495/0.3952, allocations: 83.81 kB / 1.133 GB, free: 4.777 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.73e-06/0.3952, allocations: 4 kB / 1.133 GB, free: 4.773 MB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.357e-05/0.3952, allocations: 8 kB / 1.133 GB, free: 4.766 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.308e-06/0.3953, allocations: 4 kB / 1.133 GB, free: 4.762 MB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.814e-06/0.3953, allocations: 160 / 1.133 GB, free: 4.762 MB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001254/0.3965, allocations: 0.7704 MB / 1.134 GB, free: 3.961 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002935/0.3968, allocations: 231.7 kB / 1.134 GB, free: 3.715 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001182/0.3969, allocations: 11.98 kB / 1.134 GB, free: 3.703 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005001/0.3975, allocations: 31.81 kB / 1.134 GB, free: 3.672 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.185e-05/0.3975, allocations: 28.03 kB / 1.134 GB, free: 3.645 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.711e-05/0.3976, allocations: 19.98 kB / 1.134 GB, free: 3.625 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 0.0008564/0.3984, allocations: 0.6627 MB / 1.135 GB, free: 2.953 MB / 0.8887 GB Notification: Performance of sort global known variables: time 1.81e-07/0.3984, allocations: 0 / 1.135 GB, free: 2.953 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.0009767/0.3994, allocations: 327.5 kB / 1.135 GB, free: 2.633 MB / 0.8887 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.002261/0.4017, allocations: 1.613 MB / 1.137 GB, free: 0.9844 MB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 0.00102/0.4027, allocations: 464.7 kB / 1.137 GB, free: 0.5312 MB / 0.8887 GB Notification: Performance of simCode: created event and clocks part: time 4.128e-06/0.4027, allocations: 0 / 1.137 GB, free: 0.5312 MB / 0.8887 GB Notification: Performance of simCode: created simulation system equations: time 0.0003723/0.4031, allocations: 184.3 kB / 1.138 GB, free: 360 kB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002892/0.406, allocations: 0.6158 MB / 1.138 GB, free: 15.76 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01058/0.4166, allocations: 7.201 MB / 1.145 GB, free: 8.164 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006684/0.4173, allocations: 1.044 MB / 1.146 GB, free: 7.09 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 0.0008618/0.4182, allocations: 199.3 kB / 1.146 GB, free: 6.895 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004894/0.4187, allocations: 375.2 kB / 1.147 GB, free: 6.527 MB / 0.9044 GB Notification: Performance of SimCode: time 9.31e-07/0.4187, allocations: 0 / 1.147 GB, free: 6.527 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06065/0.4794, allocations: 29.56 MB / 1.176 GB, free: 9.363 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.397/8.877, allocations: 7.516 kB / 1.176 GB, free: 9.359 MB / 0.9356 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=50 --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