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.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.001573/0.001573, allocations: 114.8 kB / 17.16 MB, free: 5.895 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.001744/0.001744, allocations: 210.3 kB / 20.13 MB, free: 2.949 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.45/1.45, allocations: 230.6 MB / 253.5 MB, free: 15.12 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 2.861/2.861, allocations: 0.5003 GB / 0.8026 GB, free: 6.695 MB / 0.6387 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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_latest_Buildings_Fluid_Interfaces_Examples_FourPortHeatMassExchanger",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger,fileNamePrefix="Buildings_latest_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.001978/0.001978, allocations: 71.89 kB / 1.165 GB, free: 484 kB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9724/0.9744, allocations: 178.9 MB / 1.34 GB, free: 16.41 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger): time 0.0432/1.018, allocations: 42.15 MB / 1.381 GB, free: 2.219 MB / 1.076 GB Notification: Performance of NFInst.instExpressions: time 0.02014/1.038, allocations: 10.42 MB / 1.391 GB, free: 10.76 MB / 1.092 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003336/1.041, allocations: 79.78 kB / 1.392 GB, free: 10.71 MB / 1.092 GB Notification: Performance of NFTyping.typeComponents: time 0.003039/1.044, allocations: 0.6679 MB / 1.392 GB, free: 10.32 MB / 1.092 GB Notification: Performance of NFTyping.typeBindings: time 0.007125/1.051, allocations: 1.977 MB / 1.394 GB, free: 9.148 MB / 1.092 GB Notification: Performance of NFTyping.typeClassSections: time 0.003856/1.055, allocations: 1.197 MB / 1.395 GB, free: 8.484 MB / 1.092 GB Notification: Performance of NFFlatten.flatten: time 0.005788/1.061, allocations: 3.402 MB / 1.399 GB, free: 6.84 MB / 1.092 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001732/1.063, allocations: 0.8702 MB / 1.399 GB, free: 6.398 MB / 1.092 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004471/1.067, allocations: 1.447 MB / 1.401 GB, free: 5.715 MB / 1.092 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001921/1.069, allocations: 0.9267 MB / 1.402 GB, free: 5.301 MB / 1.092 GB Notification: Performance of NFPackage.collectConstants: time 0.0002155/1.069, allocations: 100 kB / 1.402 GB, free: 5.301 MB / 1.092 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00293/1.072, allocations: 0.9049 MB / 1.403 GB, free: 4.953 MB / 1.092 GB Notification: Performance of NFScalarize.scalarize: time 0.0003774/1.073, allocations: 292.4 kB / 1.403 GB, free: 4.773 MB / 1.092 GB Notification: Performance of NFVerifyModel.verify: time 0.0009496/1.074, allocations: 0.6366 MB / 1.404 GB, free: 4.383 MB / 1.092 GB Notification: Performance of NFConvertDAE.convert: time 0.004228/1.078, allocations: 1.995 MB / 1.406 GB, free: 3.629 MB / 1.092 GB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/1.078, allocations: 0 / 1.406 GB, free: 3.629 MB / 1.092 GB Notification: Performance of FrontEnd: time 1.713e-06/1.078, allocations: 3.938 kB / 1.406 GB, free: 3.625 MB / 1.092 GB Notification: Performance of Transformations before backend: time 3.985e-05/1.078, allocations: 0 / 1.406 GB, free: 3.625 MB / 1.092 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.003457/1.081, allocations: 1.555 MB / 1.407 GB, free: 2.555 MB / 1.092 GB Notification: Performance of prepare preOptimizeDAE: time 4.436e-05/1.081, allocations: 11.03 kB / 1.407 GB, free: 2.555 MB / 1.092 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.997e-05/1.081, allocations: 18.88 kB / 1.407 GB, free: 2.551 MB / 1.092 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001537/1.081, allocations: 114.7 kB / 1.407 GB, free: 2.469 MB / 1.092 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000424/1.082, allocations: 144.6 kB / 1.407 GB, free: 2.398 MB / 1.092 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00213/1.084, allocations: 1.125 MB / 1.409 GB, free: 1.727 MB / 1.092 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.937e-05/1.084, allocations: 55.41 kB / 1.409 GB, free: 1.699 MB / 1.092 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001236/1.084, allocations: 72.81 kB / 1.409 GB, free: 1.676 MB / 1.092 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001576/1.086, allocations: 0.7934 MB / 1.409 GB, free: 1.301 MB / 1.092 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.373e-05/1.086, allocations: 1.062 kB / 1.409 GB, free: 1.301 MB / 1.092 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.6e-05/1.086, allocations: 30.5 kB / 1.409 GB, free: 1.277 MB / 1.092 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.802e-05/1.086, allocations: 19.83 kB / 1.409 GB, free: 1.277 MB / 1.092 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001247/1.087, allocations: 0.5668 MB / 1.41 GB, free: 1.086 MB / 1.092 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.005178/1.092, allocations: 3.712 MB / 1.414 GB, free: 14.3 MB / 1.107 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007065/1.093, allocations: 245.7 kB / 1.414 GB, free: 14.21 MB / 1.107 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000394/1.093, allocations: 172 kB / 1.414 GB, free: 14.14 MB / 1.107 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006686/1.094, allocations: 0.6577 MB / 1.415 GB, free: 13.37 MB / 1.107 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.442e-05/1.094, allocations: 37.03 kB / 1.415 GB, free: 13.33 MB / 1.107 GB Notification: Performance of pre-optimization done (n=31): time 3.336e-06/1.094, allocations: 0 / 1.415 GB, free: 13.33 MB / 1.107 GB Notification: Performance of matching and sorting (n=31): time 0.001633/1.096, allocations: 0.5223 MB / 1.415 GB, free: 13.06 MB / 1.107 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.146e-05/1.096, allocations: 58.09 kB / 1.415 GB, free: 12.99 MB / 1.107 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001535/1.097, allocations: 0.9575 MB / 1.416 GB, free: 12.45 MB / 1.107 GB Notification: Performance of collectPreVariables (initialization): time 6.295e-05/1.097, allocations: 31.55 kB / 1.416 GB, free: 12.41 MB / 1.107 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004632/1.098, allocations: 0.4984 MB / 1.417 GB, free: 11.96 MB / 1.107 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001469/1.098, allocations: 119.8 kB / 1.417 GB, free: 11.86 MB / 1.107 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001657/1.098, allocations: 112.7 kB / 1.417 GB, free: 11.79 MB / 1.107 GB Notification: Performance of setup shared object (initialization): time 0.0001502/1.098, allocations: 335.2 kB / 1.417 GB, free: 11.46 MB / 1.107 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003742/1.099, allocations: 162 kB / 1.417 GB, free: 11.38 MB / 1.107 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006205/1.099, allocations: 351.6 kB / 1.418 GB, free: 11.08 MB / 1.107 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009607/1.1, allocations: 0.5083 MB / 1.418 GB, free: 10.69 MB / 1.107 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.993e-06/1.1, allocations: 6.062 kB / 1.418 GB, free: 10.68 MB / 1.107 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001409/1.102, allocations: 0.6233 MB / 1.419 GB, free: 10.36 MB / 1.107 GB Notification: Performance of prepare postOptimizeDAE: time 2.324e-05/1.102, allocations: 10.81 kB / 1.419 GB, free: 10.36 MB / 1.107 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.178e-05/1.102, allocations: 5.5 kB / 1.419 GB, free: 10.36 MB / 1.107 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.676e-05/1.102, allocations: 8.25 kB / 1.419 GB, free: 10.36 MB / 1.107 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004501/1.102, allocations: 121.3 kB / 1.419 GB, free: 10.33 MB / 1.107 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.803e-05/1.102, allocations: 16.61 kB / 1.419 GB, free: 10.32 MB / 1.107 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008465/1.103, allocations: 98.81 kB / 1.419 GB, free: 10.25 MB / 1.107 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.644e-05/1.103, allocations: 32.45 kB / 1.419 GB, free: 10.24 MB / 1.107 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.0005208/1.104, allocations: 275.1 kB / 1.419 GB, free: 10.02 MB / 1.107 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002204/1.104, allocations: 103 kB / 1.42 GB, free: 9.969 MB / 1.107 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001115/1.105, allocations: 490.2 kB / 1.42 GB, free: 9.699 MB / 1.107 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.658e-05/1.105, allocations: 3.188 kB / 1.42 GB, free: 9.699 MB / 1.107 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.304e-06/1.105, allocations: 1.094 kB / 1.42 GB, free: 9.699 MB / 1.107 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0008336/1.106, allocations: 457.3 kB / 1.42 GB, free: 9.391 MB / 1.107 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002606/1.108, allocations: 1.362 MB / 1.422 GB, free: 8.375 MB / 1.107 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.135e-06/1.109, allocations: 5 kB / 1.422 GB, free: 8.371 MB / 1.107 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003736/1.109, allocations: 80.55 kB / 1.422 GB, free: 8.348 MB / 1.107 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.054e-05/1.109, allocations: 7.234 kB / 1.422 GB, free: 8.344 MB / 1.107 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.237e-05/1.109, allocations: 12.36 kB / 1.422 GB, free: 8.336 MB / 1.107 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.44e-06/1.109, allocations: 2.156 kB / 1.422 GB, free: 8.336 MB / 1.107 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.926e-06/1.109, allocations: 2.094 kB / 1.422 GB, free: 8.336 MB / 1.107 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001482/1.11, allocations: 0.7693 MB / 1.423 GB, free: 7.844 MB / 1.107 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004467/1.111, allocations: 234.7 kB / 1.423 GB, free: 7.633 MB / 1.107 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000122/1.111, allocations: 11.19 kB / 1.423 GB, free: 7.625 MB / 1.107 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005194/1.112, allocations: 30.61 kB / 1.423 GB, free: 7.609 MB / 1.107 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.492e-05/1.112, allocations: 23.56 kB / 1.423 GB, free: 7.598 MB / 1.107 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.953e-05/1.112, allocations: 21.23 kB / 1.423 GB, free: 7.59 MB / 1.107 GB Notification: Performance of sorting global known variables: time 0.001022/1.113, allocations: 0.6615 MB / 1.424 GB, free: 7.207 MB / 1.107 GB Notification: Performance of sort global known variables: time 1e-07/1.113, allocations: 0 / 1.424 GB, free: 7.207 MB / 1.107 GB Notification: Performance of remove unused functions: time 0.001373/1.114, allocations: 346.8 kB / 1.424 GB, free: 7.121 MB / 1.107 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.002512/1.117, allocations: 1.583 MB / 1.425 GB, free: 5.973 MB / 1.107 GB Notification: Performance of simCode: created initialization part: time 0.0009967/1.118, allocations: 400.3 kB / 1.426 GB, free: 5.801 MB / 1.107 GB Notification: Performance of simCode: created event and clocks part: time 4.308e-06/1.118, allocations: 1.094 kB / 1.426 GB, free: 5.801 MB / 1.107 GB Notification: Performance of simCode: created simulation system equations: time 0.0003941/1.118, allocations: 175.5 kB / 1.426 GB, free: 5.723 MB / 1.107 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002917/1.121, allocations: 0.6087 MB / 1.427 GB, free: 5.402 MB / 1.107 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.011/1.132, allocations: 6.866 MB / 1.433 GB, free: 1 MB / 1.107 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007187/1.133, allocations: 1.033 MB / 1.434 GB, free: 148 kB / 1.107 GB Notification: Performance of simCode: alias equations: time 0.0008924/1.133, allocations: 199.6 kB / 1.434 GB, free: 52 kB / 1.107 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005467/1.134, allocations: 375.3 kB / 1.435 GB, free: 15.74 MB / 1.123 GB Notification: Performance of SimCode: time 7.21e-07/1.134, allocations: 4 kB / 1.435 GB, free: 15.74 MB / 1.123 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06848/1.202, allocations: 29.9 MB / 1.464 GB, free: 8.777 MB / 1.139 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.993/11.2, allocations: 8.047 kB / 1.464 GB, free: 8.77 MB / 1.139 GB " [Timeout remaining time 289] (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 --stepSize=0.002 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_Interfaces_Examples_FourPortHeatMassExchanger.fmu > Buildings_latest_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe 2>&1) [Timeout 840.0] 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) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 17.646202413016]