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.1.0-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.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.007178/0.007178, allocations: 97.41 kB / 15.73 MB, free: 6.047 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.001688/0.001688, allocations: 197 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.389/1.389, allocations: 222.9 MB / 240.4 MB, free: 4.172 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.803/2.803, allocations: 469.4 MB / 0.7422 GB, free: 7.578 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00131/0.00131, allocations: 59.91 kB / 1.064 GB, free: 13.87 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3013/0.3026, allocations: 159.1 MB / 1.22 GB, free: 14.62 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger): time 0.766/1.069, allocations: 41.59 MB / 1.26 GB, free: 4.762 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.01335/1.082, allocations: 10.39 MB / 1.271 GB, free: 4.383 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002456/1.084, allocations: 62.47 kB / 1.271 GB, free: 4.355 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.00218/1.087, allocations: 0.6609 MB / 1.271 GB, free: 4.125 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.005961/1.093, allocations: 1.974 MB / 1.273 GB, free: 3.375 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.003572/1.096, allocations: 1.186 MB / 1.274 GB, free: 3.148 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.005808/1.102, allocations: 3.408 MB / 1.278 GB, free: 2.453 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001988/1.104, allocations: 1.063 MB / 1.279 GB, free: 2.297 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003888/1.108, allocations: 1.263 MB / 1.28 GB, free: 1.969 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002243/1.11, allocations: 0.8839 MB / 1.281 GB, free: 1.637 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.0005832/1.111, allocations: 100.1 kB / 1.281 GB, free: 1.637 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003527/1.114, allocations: 0.8601 MB / 1.282 GB, free: 1.293 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0006524/1.115, allocations: 280.9 kB / 1.282 GB, free: 1.125 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.001707/1.117, allocations: 0.6285 MB / 1.283 GB, free: 0.7422 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.005093/1.122, allocations: 1.933 MB / 1.284 GB, free: 12 kB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 7.384e-06/1.122, allocations: 2.203 kB / 1.284 GB, free: 12 kB / 0.9981 GB Notification: Performance of FrontEnd: time 2.324e-06/1.122, allocations: 0 / 1.284 GB, free: 12 kB / 0.9981 GB Notification: Performance of Transformations before backend: time 3.539e-05/1.122, allocations: 0 / 1.284 GB, free: 12 kB / 0.9981 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.003648/1.126, allocations: 1.553 MB / 1.286 GB, free: 14.94 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 4.871e-05/1.126, allocations: 10.12 kB / 1.286 GB, free: 14.94 MB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001648/1.126, allocations: 115.3 kB / 1.286 GB, free: 14.86 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004996/1.126, allocations: 146.6 kB / 1.286 GB, free: 14.78 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002215/1.129, allocations: 1.113 MB / 1.287 GB, free: 14.12 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.468e-05/1.129, allocations: 56.34 kB / 1.287 GB, free: 14.09 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001266/1.129, allocations: 68.28 kB / 1.287 GB, free: 14.07 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001539/1.13, allocations: 0.7888 MB / 1.288 GB, free: 13.7 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.506e-05/1.13, allocations: 2.094 kB / 1.288 GB, free: 13.7 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.277e-05/1.131, allocations: 31.12 kB / 1.288 GB, free: 13.67 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.537e-05/1.131, allocations: 23.42 kB / 1.288 GB, free: 13.67 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001187/1.132, allocations: 0.5698 MB / 1.289 GB, free: 13.47 MB / 1.014 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.005029/1.137, allocations: 3.562 MB / 1.292 GB, free: 10.87 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006669/1.138, allocations: 261.5 kB / 1.293 GB, free: 10.77 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003748/1.138, allocations: 177.4 kB / 1.293 GB, free: 10.71 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005754/1.138, allocations: 0.6588 MB / 1.293 GB, free: 9.945 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.297e-05/1.139, allocations: 41.55 kB / 1.293 GB, free: 9.898 MB / 1.014 GB Notification: Performance of pre-optimization done (n=31): time 2.675e-06/1.139, allocations: 1.281 kB / 1.293 GB, free: 9.898 MB / 1.014 GB Notification: Performance of matching and sorting (n=31): time 0.001452/1.14, allocations: 0.514 MB / 1.294 GB, free: 9.699 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.733e-05/1.14, allocations: 58.19 kB / 1.294 GB, free: 9.633 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001364/1.141, allocations: 0.9451 MB / 1.295 GB, free: 9.234 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 7.102e-05/1.142, allocations: 40.33 kB / 1.295 GB, free: 9.191 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004406/1.142, allocations: 0.498 MB / 1.295 GB, free: 8.789 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001397/1.142, allocations: 115.4 kB / 1.296 GB, free: 8.699 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001889/1.142, allocations: 119.2 kB / 1.296 GB, free: 8.633 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001382/1.142, allocations: 329.6 kB / 1.296 GB, free: 8.316 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003967/1.143, allocations: 169.2 kB / 1.296 GB, free: 8.258 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005271/1.143, allocations: 348.7 kB / 1.296 GB, free: 7.992 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009054/1.144, allocations: 0.5178 MB / 1.297 GB, free: 7.637 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.401e-06/1.144, allocations: 2.125 kB / 1.297 GB, free: 7.637 MB / 1.014 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001286/1.146, allocations: 0.6213 MB / 1.298 GB, free: 7.375 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 2.155e-05/1.146, allocations: 6.438 kB / 1.298 GB, free: 7.375 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.311e-05/1.146, allocations: 7.484 kB / 1.298 GB, free: 7.375 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.587e-05/1.146, allocations: 8.844 kB / 1.298 GB, free: 7.375 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004504/1.146, allocations: 126.8 kB / 1.298 GB, free: 7.359 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.672e-05/1.146, allocations: 9.859 kB / 1.298 GB, free: 7.359 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008221/1.147, allocations: 90.34 kB / 1.298 GB, free: 7.305 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.441e-05/1.147, allocations: 26.45 kB / 1.298 GB, free: 7.301 MB / 1.014 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.000443/1.148, allocations: 275.1 kB / 1.298 GB, free: 7.094 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001947/1.148, allocations: 105 kB / 1.298 GB, free: 7.039 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00105/1.149, allocations: 483.5 kB / 1.299 GB, free: 6.848 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.463e-05/1.149, allocations: 8.078 kB / 1.299 GB, free: 6.844 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.811e-06/1.149, allocations: 1.062 kB / 1.299 GB, free: 6.844 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007547/1.15, allocations: 452.3 kB / 1.299 GB, free: 6.59 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002565/1.152, allocations: 1.366 MB / 1.3 GB, free: 5.848 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.012e-06/1.152, allocations: 1.156 kB / 1.3 GB, free: 5.848 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000344/1.153, allocations: 77.94 kB / 1.301 GB, free: 5.84 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.003e-05/1.153, allocations: 6.219 kB / 1.301 GB, free: 5.836 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.87e-05/1.153, allocations: 13.98 kB / 1.301 GB, free: 5.828 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.312e-06/1.153, allocations: 2.344 kB / 1.301 GB, free: 5.828 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.968e-06/1.153, allocations: 2.797 kB / 1.301 GB, free: 5.828 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001377/1.154, allocations: 0.7666 MB / 1.301 GB, free: 5.418 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004617/1.154, allocations: 238.2 kB / 1.302 GB, free: 5.227 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001399/1.155, allocations: 7.266 kB / 1.302 GB, free: 5.223 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000538/1.155, allocations: 40.97 kB / 1.302 GB, free: 5.207 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.86e-05/1.155, allocations: 20.88 kB / 1.302 GB, free: 5.207 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.347e-05/1.155, allocations: 23.61 kB / 1.302 GB, free: 5.199 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.001008/1.156, allocations: 0.6619 MB / 1.302 GB, free: 4.91 MB / 1.014 GB Notification: Performance of sort global known variables: time 1.462e-06/1.156, allocations: 1.188 kB / 1.302 GB, free: 4.91 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.001217/1.158, allocations: 341.6 kB / 1.303 GB, free: 4.832 MB / 1.014 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.002483/1.16, allocations: 1.607 MB / 1.304 GB, free: 3.781 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.001/1.161, allocations: 426 kB / 1.305 GB, free: 3.652 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 4.488e-06/1.161, allocations: 1.25 kB / 1.305 GB, free: 3.652 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.0004028/1.161, allocations: 190.1 kB / 1.305 GB, free: 3.594 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003061/1.165, allocations: 0.6148 MB / 1.305 GB, free: 3.402 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01097/1.176, allocations: 6.836 MB / 1.312 GB, free: 15.68 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007568/1.176, allocations: 1.042 MB / 1.313 GB, free: 14.94 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 0.001064/1.177, allocations: 195.8 kB / 1.313 GB, free: 14.89 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005282/1.178, allocations: 374.3 kB / 1.314 GB, free: 14.62 MB / 1.029 GB Notification: Performance of SimCode: time 1.152e-06/1.178, allocations: 3.969 kB / 1.314 GB, free: 14.62 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07583/1.254, allocations: 29.74 MB / 1.343 GB, free: 3.684 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.838/11.09, allocations: 11.11 kB / 1.343 GB, free: 3.676 MB / 1.029 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 & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 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.csv","/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