Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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_10_Buildings_Fluid_Interfaces_Examples_FourPortHeatMassExchanger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger,fileNamePrefix="Buildings_10_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.006962/0.006962, allocations: 98.19 kB / 15.73 MB, free: 6.012 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.001953/0.001953, allocations: 197 kB / 16.68 MB, free: 5.93 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.333/1.333, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.343/2.343, allocations: 437.1 MB / 0.7106 GB, free: 4.324 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001776/0.001776, allocations: 67.89 kB / 1.018 GB, free: 9.883 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6184/0.6202, allocations: 151.6 MB / 1.166 GB, free: 3.773 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger): time 0.04096/0.6612, allocations: 41.6 MB / 1.207 GB, free: 10.02 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.01354/0.6747, allocations: 10.39 MB / 1.217 GB, free: 15.6 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008727/0.6756, allocations: 59.62 kB / 1.217 GB, free: 15.54 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.001334/0.677, allocations: 0.6482 MB / 1.218 GB, free: 14.89 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.003454/0.6805, allocations: 1.871 MB / 1.219 GB, free: 13.01 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.00229/0.6828, allocations: 1.182 MB / 1.221 GB, free: 11.84 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.003429/0.6862, allocations: 3.41 MB / 1.224 GB, free: 8.422 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001209/0.6874, allocations: 1.064 MB / 1.225 GB, free: 7.34 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002108/0.6895, allocations: 1.225 MB / 1.226 GB, free: 6.113 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001012/0.6906, allocations: 0.8828 MB / 1.227 GB, free: 5.227 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 0.0001442/0.6907, allocations: 103.9 kB / 1.227 GB, free: 5.125 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001574/0.6923, allocations: 0.8578 MB / 1.228 GB, free: 4.266 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 0.0002741/0.6926, allocations: 287 kB / 1.228 GB, free: 3.984 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.0006014/0.6932, allocations: 0.626 MB / 1.229 GB, free: 3.355 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.002283/0.6955, allocations: 1.934 MB / 1.231 GB, free: 1.418 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 2.986e-06/0.6955, allocations: 0 / 1.231 GB, free: 1.418 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.042e-06/0.6955, allocations: 0 / 1.231 GB, free: 1.418 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 1.148e-05/0.6955, allocations: 4 kB / 1.231 GB, free: 1.414 MB / 0.9512 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.002209/0.6977, allocations: 1.552 MB / 1.232 GB, free: 15.8 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.281e-05/0.6978, allocations: 8.922 kB / 1.232 GB, free: 15.8 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001316/0.6979, allocations: 114.7 kB / 1.232 GB, free: 15.68 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000324/0.6982, allocations: 140.1 kB / 1.233 GB, free: 15.54 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001601/0.6998, allocations: 1.112 MB / 1.234 GB, free: 14.39 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.647e-05/0.6999, allocations: 54 kB / 1.234 GB, free: 14.33 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000101/0.7, allocations: 71.98 kB / 1.234 GB, free: 14.26 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001296/0.7013, allocations: 0.7905 MB / 1.235 GB, free: 13.44 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.557e-05/0.7013, allocations: 8 kB / 1.235 GB, free: 13.43 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.929e-05/0.7014, allocations: 28 kB / 1.235 GB, free: 13.4 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.869e-05/0.7014, allocations: 20 kB / 1.235 GB, free: 13.38 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001123/0.7026, allocations: 0.5711 MB / 1.235 GB, free: 12.81 MB / 0.9669 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.003897/0.7065, allocations: 3.564 MB / 1.239 GB, free: 9.016 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005537/0.707, allocations: 261.7 kB / 1.239 GB, free: 8.754 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003522/0.7074, allocations: 183.2 kB / 1.239 GB, free: 8.574 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005575/0.708, allocations: 0.6609 MB / 1.24 GB, free: 7.766 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.638e-05/0.708, allocations: 38.56 kB / 1.24 GB, free: 7.719 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=31): time 1.583e-06/0.708, allocations: 3.938 kB / 1.24 GB, free: 7.715 MB / 0.9669 GB Notification: Performance of matching and sorting (n=31): time 0.001132/0.7092, allocations: 0.519 MB / 1.24 GB, free: 7.191 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.894e-05/0.7092, allocations: 55.41 kB / 1.24 GB, free: 7.125 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001177/0.7104, allocations: 0.9417 MB / 1.241 GB, free: 6.164 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 4.703e-05/0.7104, allocations: 41.64 kB / 1.241 GB, free: 6.117 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004167/0.7109, allocations: 0.5004 MB / 1.242 GB, free: 5.609 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001007/0.711, allocations: 111 kB / 1.242 GB, free: 5.5 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001663/0.7111, allocations: 122.1 kB / 1.242 GB, free: 5.375 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001414/0.7113, allocations: 325.9 kB / 1.242 GB, free: 5.051 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003647/0.7117, allocations: 165 kB / 1.242 GB, free: 4.887 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005097/0.7122, allocations: 351 kB / 1.243 GB, free: 4.473 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008429/0.713, allocations: 0.5032 MB / 1.243 GB, free: 3.898 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.855e-06/0.713, allocations: 0 / 1.243 GB, free: 3.898 MB / 0.9669 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001121/0.7142, allocations: 0.6295 MB / 1.244 GB, free: 3.262 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.509e-05/0.7142, allocations: 11.94 kB / 1.244 GB, free: 3.25 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.076e-05/0.7142, allocations: 4 kB / 1.244 GB, free: 3.246 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.723e-05/0.7142, allocations: 8 kB / 1.244 GB, free: 3.238 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004223/0.7147, allocations: 123.8 kB / 1.244 GB, free: 3.117 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.311e-05/0.7147, allocations: 11.94 kB / 1.244 GB, free: 3.105 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005006/0.7152, allocations: 91.69 kB / 1.244 GB, free: 3.016 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.705e-05/0.7153, allocations: 35.92 kB / 1.244 GB, free: 2.98 MB / 0.9669 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.0003172/0.7156, allocations: 265.7 kB / 1.244 GB, free: 2.711 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001562/0.7157, allocations: 103.3 kB / 1.244 GB, free: 2.609 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009681/0.7167, allocations: 486 kB / 1.245 GB, free: 2.137 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.155e-05/0.7167, allocations: 4 kB / 1.245 GB, free: 2.133 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.777e-06/0.7167, allocations: 3.938 kB / 1.245 GB, free: 2.129 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007439/0.7175, allocations: 453.2 kB / 1.245 GB, free: 1.656 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001935/0.7194, allocations: 1.375 MB / 1.247 GB, free: 216 kB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.775e-06/0.7194, allocations: 0 / 1.247 GB, free: 216 kB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003197/0.7198, allocations: 83.83 kB / 1.247 GB, free: 132 kB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.366e-06/0.7198, allocations: 4.156 kB / 1.247 GB, free: 128 kB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.316e-05/0.7198, allocations: 8 kB / 1.247 GB, free: 120 kB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.763e-06/0.7198, allocations: 7.984 kB / 1.247 GB, free: 112 kB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.7198, allocations: 0 / 1.247 GB, free: 112 kB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001267/0.7211, allocations: 0.7599 MB / 1.248 GB, free: 15.32 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002754/0.7214, allocations: 244.1 kB / 1.248 GB, free: 15.06 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001034/0.7215, allocations: 8 kB / 1.248 GB, free: 15.05 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004696/0.722, allocations: 36.03 kB / 1.248 GB, free: 15.02 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.893e-05/0.7221, allocations: 27.95 kB / 1.248 GB, free: 14.99 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.54e-05/0.7221, allocations: 16.05 kB / 1.248 GB, free: 14.97 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0008149/0.7229, allocations: 0.6588 MB / 1.249 GB, free: 14.3 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.6e-07/0.7229, allocations: 0 / 1.249 GB, free: 14.3 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0007941/0.7237, allocations: 339.3 kB / 1.249 GB, free: 13.97 MB / 0.9825 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.002133/0.7259, allocations: 1.611 MB / 1.25 GB, free: 12.32 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0008198/0.7267, allocations: 424.3 kB / 1.251 GB, free: 11.91 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.7267, allocations: 0 / 1.251 GB, free: 11.91 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0003712/0.7271, allocations: 185.3 kB / 1.251 GB, free: 11.73 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002423/0.7295, allocations: 0.6121 MB / 1.252 GB, free: 11.13 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008768/0.7383, allocations: 6.846 MB / 1.258 GB, free: 3.992 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006131/0.7389, allocations: 1.04 MB / 1.259 GB, free: 2.922 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.0005403/0.7395, allocations: 195.2 kB / 1.259 GB, free: 2.73 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004365/0.7399, allocations: 371.3 kB / 1.26 GB, free: 2.367 MB / 0.9825 GB Notification: Performance of SimCode: time 2.004e-06/0.7399, allocations: 0 / 1.26 GB, free: 2.367 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.887/4.627, allocations: 29.74 MB / 1.289 GB, free: 4.961 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.72/17.35, allocations: 15.56 kB / 1.289 GB, free: 4.949 MB / 1.014 GB (rm -f Buildings_10_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe ; mkfifo Buildings_10_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe >> ../files/Buildings_10_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger_res.mat --tempDir=temp_Buildings_10_Buildings_Fluid_Interfaces_Examples_FourPortHeatMassExchanger_fmu --startTime=0 --stopTime=5 --timeout=400 --tolerance=1e-06 Buildings_10_Buildings_Fluid_Interfaces_Examples_FourPortHeatMassExchanger.fmu > Buildings_10_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_Interfaces_Examples_FourPortHeatMassExchanger.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches