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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00133/0.00133, allocations: 101.9 kB / 19.73 MB, free: 1.992 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001454/0.001454, allocations: 211.2 kB / 23.03 MB, free: 4.426 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.445/1.445, allocations: 230.6 MB / 256.8 MB, free: 7.785 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 2.72/2.72, allocations: 476.8 MB / 0.7715 GB, free: 3.93 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger,fileNamePrefix="Buildings_11_Buildings_Fluid_Interfaces_Examples_FourPortHeatMassExchanger",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger,fileNamePrefix="Buildings_11_Buildings_Fluid_Interfaces_Examples_FourPortHeatMassExchanger",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002006/0.002006, allocations: 64.48 kB / 1.118 GB, free: 39.64 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3212/0.3232, allocations: 170 MB / 1.284 GB, free: 10.7 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger): time 0.04306/0.3663, allocations: 38.37 MB / 1.322 GB, free: 4.195 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.01571/0.382, allocations: 9.647 MB / 1.331 GB, free: 10.53 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002284/0.3842, allocations: 79.31 kB / 1.331 GB, free: 10.45 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.002294/0.3865, allocations: 0.6366 MB / 1.332 GB, free: 9.812 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.006385/0.3929, allocations: 2.006 MB / 1.334 GB, free: 7.797 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.003507/0.3964, allocations: 1.225 MB / 1.335 GB, free: 6.582 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.005333/0.4018, allocations: 3.483 MB / 1.338 GB, free: 3.094 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001616/0.4034, allocations: 0.8146 MB / 1.339 GB, free: 2.258 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003508/0.4069, allocations: 1.301 MB / 1.34 GB, free: 0.957 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001788/0.4087, allocations: 0.9373 MB / 1.341 GB, free: 16 kB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 0.000231/0.4089, allocations: 104 kB / 1.341 GB, free: 15.91 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002193/0.4111, allocations: 0.725 MB / 1.342 GB, free: 15.19 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 0.0003638/0.4115, allocations: 290.8 kB / 1.342 GB, free: 14.9 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 0.0007788/0.4122, allocations: 0.5055 MB / 1.343 GB, free: 14.39 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.003311/0.4156, allocations: 1.954 MB / 1.345 GB, free: 12.43 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.4156, allocations: 0 / 1.345 GB, free: 12.43 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.463e-06/0.4156, allocations: 0 / 1.345 GB, free: 12.43 MB / 1.045 GB Notification: Performance of Transformations before backend: time 2.297e-05/0.4156, allocations: 0 / 1.345 GB, free: 12.43 MB / 1.045 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.002788/0.4184, allocations: 1.473 MB / 1.346 GB, free: 10.92 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 5.139e-05/0.4184, allocations: 8.031 kB / 1.346 GB, free: 10.91 MB / 1.045 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.012e-05/0.4185, allocations: 22.19 kB / 1.346 GB, free: 10.89 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001432/0.4186, allocations: 114.7 kB / 1.346 GB, free: 10.77 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003831/0.419, allocations: 140.1 kB / 1.346 GB, free: 10.64 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001918/0.4209, allocations: 1.055 MB / 1.347 GB, free: 9.543 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.995e-05/0.4209, allocations: 54 kB / 1.347 GB, free: 9.492 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001235/0.4211, allocations: 75.95 kB / 1.348 GB, free: 9.418 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001519/0.4226, allocations: 0.9411 MB / 1.348 GB, free: 8.402 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.274e-05/0.4226, allocations: 8 kB / 1.348 GB, free: 8.395 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.07e-05/0.4227, allocations: 35.97 kB / 1.349 GB, free: 8.359 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.282e-05/0.4227, allocations: 20 kB / 1.349 GB, free: 8.34 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001116/0.4238, allocations: 0.5633 MB / 1.349 GB, free: 7.777 MB / 1.045 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.004276/0.4281, allocations: 2.732 MB / 1.352 GB, free: 4.953 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006324/0.4287, allocations: 250.8 kB / 1.352 GB, free: 4.699 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003449/0.4291, allocations: 160.8 kB / 1.352 GB, free: 4.539 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002635/0.4293, allocations: 64.48 kB / 1.352 GB, free: 4.477 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.664e-05/0.4294, allocations: 38.56 kB / 1.352 GB, free: 4.43 MB / 1.045 GB Notification: Performance of pre-optimization done (n=31): time 3.035e-06/0.4294, allocations: 4 kB / 1.352 GB, free: 4.426 MB / 1.045 GB Notification: Performance of matching and sorting (n=31): time 0.001269/0.4307, allocations: 0.5202 MB / 1.353 GB, free: 3.898 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.335e-05/0.4307, allocations: 55.41 kB / 1.353 GB, free: 3.832 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001206/0.4319, allocations: 0.9534 MB / 1.354 GB, free: 2.859 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 4.532e-05/0.432, allocations: 33.7 kB / 1.354 GB, free: 2.82 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004619/0.4324, allocations: 0.4926 MB / 1.354 GB, free: 2.324 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001291/0.4325, allocations: 127 kB / 1.354 GB, free: 2.199 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001729/0.4327, allocations: 118.2 kB / 1.355 GB, free: 2.078 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001586/0.4329, allocations: 329.9 kB / 1.355 GB, free: 1.75 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000373/0.4332, allocations: 165.2 kB / 1.355 GB, free: 1.59 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006406/0.4339, allocations: 0.4942 MB / 1.355 GB, free: 0.9805 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008706/0.4348, allocations: 0.5147 MB / 1.356 GB, free: 404 kB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.298e-06/0.4348, allocations: 3.938 kB / 1.356 GB, free: 400 kB / 1.045 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001193/0.436, allocations: 0.6217 MB / 1.357 GB, free: 15.76 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 2.248e-05/0.436, allocations: 8 kB / 1.357 GB, free: 15.75 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.004e-05/0.436, allocations: 7.938 kB / 1.357 GB, free: 15.75 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.413e-05/0.436, allocations: 11.98 kB / 1.357 GB, free: 15.73 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004428/0.4365, allocations: 123.8 kB / 1.357 GB, free: 15.61 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.387e-05/0.4365, allocations: 11.94 kB / 1.357 GB, free: 15.6 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005943/0.4371, allocations: 91.8 kB / 1.357 GB, free: 15.51 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.135e-05/0.4371, allocations: 27.98 kB / 1.357 GB, free: 15.48 MB / 1.061 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.0003867/0.4375, allocations: 269.6 kB / 1.357 GB, free: 15.21 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001612/0.4377, allocations: 103.4 kB / 1.357 GB, free: 15.11 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001015/0.4387, allocations: 0.4978 MB / 1.358 GB, free: 14.6 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.251e-05/0.4387, allocations: 4 kB / 1.358 GB, free: 14.59 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.14e-06/0.4387, allocations: 0 / 1.358 GB, free: 14.59 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007478/0.4394, allocations: 461.2 kB / 1.358 GB, free: 14.11 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002136/0.4416, allocations: 1.237 MB / 1.359 GB, free: 12.81 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.784e-06/0.4416, allocations: 3.938 kB / 1.359 GB, free: 12.8 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003435/0.4419, allocations: 75.88 kB / 1.359 GB, free: 12.73 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.268e-06/0.4419, allocations: 4 kB / 1.359 GB, free: 12.73 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.701e-05/0.442, allocations: 8 kB / 1.359 GB, free: 12.72 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.791e-06/0.442, allocations: 4 kB / 1.359 GB, free: 12.71 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.442, allocations: 0 / 1.359 GB, free: 12.71 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0013/0.4433, allocations: 0.7852 MB / 1.36 GB, free: 11.9 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003209/0.4436, allocations: 151.1 kB / 1.36 GB, free: 11.75 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001139/0.4437, allocations: 8 kB / 1.36 GB, free: 11.75 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004997/0.4442, allocations: 32.03 kB / 1.36 GB, free: 11.71 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.515e-05/0.4443, allocations: 23.95 kB / 1.36 GB, free: 11.69 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.219e-05/0.4443, allocations: 19.98 kB / 1.36 GB, free: 11.67 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0008777/0.4452, allocations: 0.6666 MB / 1.361 GB, free: 11 MB / 1.061 GB Notification: Performance of sort global known variables: time 1.11e-07/0.4452, allocations: 0 / 1.361 GB, free: 11 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0009813/0.4462, allocations: 343.2 kB / 1.361 GB, free: 10.66 MB / 1.061 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.002194/0.4484, allocations: 1.573 MB / 1.363 GB, free: 9.047 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0009192/0.4493, allocations: 416.3 kB / 1.363 GB, free: 8.641 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.4493, allocations: 0 / 1.363 GB, free: 8.641 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0003657/0.4497, allocations: 180.9 kB / 1.363 GB, free: 8.465 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002533/0.4522, allocations: 0.6261 MB / 1.364 GB, free: 7.859 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01005/0.4623, allocations: 6.855 MB / 1.371 GB, free: 0.707 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004846/0.4627, allocations: 453.2 kB / 1.371 GB, free: 236 kB / 1.061 GB Notification: Performance of simCode: alias equations: time 0.0008514/0.4636, allocations: 200.5 kB / 1.371 GB, free: 36 kB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005655/0.4642, allocations: 371.4 kB / 1.372 GB, free: 15.67 MB / 1.076 GB Notification: Performance of SimCode: time 1.433e-06/0.4642, allocations: 0 / 1.372 GB, free: 15.67 MB / 1.076 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06646/0.5306, allocations: 32.25 MB / 1.403 GB, free: 176 kB / 1.092 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.97/14.5, allocations: 11.25 kB / 1.403 GB, free: 168 kB / 1.092 GB " [Timeout remaining time 285] (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 --stepSize=0.002 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Fluid_Interfaces_Examples_FourPortHeatMassExchanger.fmu > Buildings_11_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe 2>&1) [Timeout 420.0] 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) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 21.206746199983172]