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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.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: translateModel(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|fouPor.Q1_flow|fouPor.Q2_flow|fouPor.vol1.T|fouPor.vol2.T|sou2.T|sou1.T_in|sin.T",fileNamePrefix="Buildings_latest_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger") translateModel(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|fouPor.Q1_flow|fouPor.Q2_flow|fouPor.vol1.T|fouPor.vol2.T|sou2.T|sou1.T_in|sin.T",fileNamePrefix="Buildings_latest_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006577/0.006577, allocations: 94.77 kB / 15.73 MB, free: 6.039 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.001301/0.001301, allocations: 198.2 kB / 16.68 MB, free: 5.969 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.386/1.386, allocations: 222.9 MB / 240.4 MB, free: 4.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.852/2.852, allocations: 472.6 MB / 0.7453 GB, free: 4.574 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001246/0.001246, allocations: 71.88 kB / 1.069 GB, free: 9.219 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3635/0.3647, allocations: 159.9 MB / 1.226 GB, free: 9.207 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger): time 0.7936/1.158, allocations: 41.6 MB / 1.266 GB, free: 5.805 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.01489/1.173, allocations: 10.4 MB / 1.276 GB, free: 1.023 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003264/1.177, allocations: 55.12 kB / 1.276 GB, free: 1.004 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.002229/1.179, allocations: 0.6416 MB / 1.277 GB, free: 0.6133 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.007559/1.186, allocations: 1.877 MB / 1.279 GB, free: 15.5 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.004298/1.191, allocations: 1.191 MB / 1.28 GB, free: 14.84 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.007141/1.198, allocations: 3.388 MB / 1.283 GB, free: 13.21 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002326/1.2, allocations: 1.061 MB / 1.284 GB, free: 12.75 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004523/1.205, allocations: 1.234 MB / 1.286 GB, free: 12.16 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002223/1.207, allocations: 0.8772 MB / 1.287 GB, free: 11.76 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 0.0004515/1.208, allocations: 99.91 kB / 1.287 GB, free: 11.76 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003377/1.211, allocations: 0.8591 MB / 1.287 GB, free: 11.41 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 0.0004328/1.211, allocations: 285.4 kB / 1.288 GB, free: 11.24 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.001083/1.212, allocations: 0.6273 MB / 1.288 GB, free: 10.86 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.003928/1.216, allocations: 1.928 MB / 1.29 GB, free: 10.14 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 5.23e-06/1.216, allocations: 3.938 kB / 1.29 GB, free: 10.13 MB / 1.014 GB Notification: Performance of FrontEnd: time 2.294e-06/1.216, allocations: 5.5 kB / 1.29 GB, free: 10.13 MB / 1.014 GB Notification: Performance of Transformations before backend: time 2.26e-05/1.216, allocations: 0 / 1.29 GB, free: 10.13 MB / 1.014 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.002801/1.219, allocations: 1.55 MB / 1.292 GB, free: 9.059 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 4.573e-05/1.219, allocations: 9.625 kB / 1.292 GB, free: 9.059 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003923/1.22, allocations: 147.3 kB / 1.292 GB, free: 8.984 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001882/1.222, allocations: 1.113 MB / 1.293 GB, free: 8.32 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.109e-05/1.222, allocations: 55.72 kB / 1.293 GB, free: 8.293 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001106/1.222, allocations: 79.16 kB / 1.293 GB, free: 8.262 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001493/1.223, allocations: 0.7913 MB / 1.294 GB, free: 7.887 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.542e-05/1.223, allocations: 5.406 kB / 1.294 GB, free: 7.883 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.787e-05/1.223, allocations: 31.28 kB / 1.294 GB, free: 7.859 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.468e-05/1.223, allocations: 18.25 kB / 1.294 GB, free: 7.859 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001141/1.225, allocations: 0.5696 MB / 1.294 GB, free: 7.664 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.004404/1.229, allocations: 3.555 MB / 1.298 GB, free: 5.074 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005983/1.23, allocations: 257.5 kB / 1.298 GB, free: 4.977 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003594/1.23, allocations: 174.6 kB / 1.298 GB, free: 4.918 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005377/1.23, allocations: 0.6638 MB / 1.299 GB, free: 4.152 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.029e-05/1.231, allocations: 37.73 kB / 1.299 GB, free: 4.109 MB / 1.014 GB Notification: Performance of pre-optimization done (n=31): time 2.856e-06/1.231, allocations: 0 / 1.299 GB, free: 4.109 MB / 1.014 GB Notification: Performance of matching and sorting (n=31): time 0.001295/1.232, allocations: 0.5184 MB / 1.3 GB, free: 3.906 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.145e-05/1.232, allocations: 54.75 kB / 1.3 GB, free: 3.844 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001315/1.233, allocations: 0.9561 MB / 1.301 GB, free: 3.434 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 4.26e-05/1.233, allocations: 37.91 kB / 1.301 GB, free: 3.395 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004239/1.234, allocations: 500 kB / 1.301 GB, free: 3 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 0.000131/1.234, allocations: 125.1 kB / 1.301 GB, free: 2.902 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001791/1.234, allocations: 118.9 kB / 1.301 GB, free: 2.836 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001161/1.234, allocations: 328.9 kB / 1.302 GB, free: 2.52 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003852/1.235, allocations: 165.8 kB / 1.302 GB, free: 2.465 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005102/1.235, allocations: 345.1 kB / 1.302 GB, free: 2.203 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008579/1.236, allocations: 0.5142 MB / 1.303 GB, free: 1.848 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.28e-06/1.236, allocations: 2.281 kB / 1.303 GB, free: 1.848 MB / 1.014 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001203/1.237, allocations: 0.6245 MB / 1.303 GB, free: 1.582 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 2.032e-05/1.237, allocations: 7.438 kB / 1.303 GB, free: 1.582 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.132e-05/1.237, allocations: 5.203 kB / 1.303 GB, free: 1.582 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.3e-05/1.237, allocations: 9.25 kB / 1.303 GB, free: 1.582 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004359/1.238, allocations: 122.3 kB / 1.303 GB, free: 1.57 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.864e-05/1.238, allocations: 13.23 kB / 1.303 GB, free: 1.566 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007405/1.238, allocations: 83.42 kB / 1.303 GB, free: 1.52 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.467e-05/1.239, allocations: 30.7 kB / 1.303 GB, free: 1.512 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.0003719/1.239, allocations: 279.7 kB / 1.304 GB, free: 1.301 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001665/1.239, allocations: 103.3 kB / 1.304 GB, free: 1.246 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001013/1.24, allocations: 0.4934 MB / 1.304 GB, free: 1.035 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.538e-05/1.24, allocations: 4.75 kB / 1.304 GB, free: 1.035 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.041e-06/1.24, allocations: 1.188 kB / 1.304 GB, free: 1.035 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007413/1.241, allocations: 448.3 kB / 1.305 GB, free: 0.7852 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002427/1.243, allocations: 1.361 MB / 1.306 GB, free: 48 kB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.983e-06/1.243, allocations: 5.531 kB / 1.306 GB, free: 44 kB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003375/1.244, allocations: 77.06 kB / 1.306 GB, free: 36 kB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.387e-05/1.244, allocations: 11.25 kB / 1.306 GB, free: 28 kB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.177e-05/1.244, allocations: 9.781 kB / 1.306 GB, free: 24 kB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.44e-06/1.244, allocations: 2.938 kB / 1.306 GB, free: 24 kB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/1.244, allocations: 1.438 kB / 1.306 GB, free: 24 kB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001451/1.245, allocations: 0.7749 MB / 1.307 GB, free: 15.6 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003948/1.246, allocations: 230.9 kB / 1.307 GB, free: 15.42 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001739/1.246, allocations: 11.42 kB / 1.307 GB, free: 15.41 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005871/1.246, allocations: 40.3 kB / 1.307 GB, free: 15.39 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.506e-05/1.246, allocations: 20.14 kB / 1.307 GB, free: 15.39 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.075e-05/1.247, allocations: 21.11 kB / 1.307 GB, free: 15.39 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.001099/1.248, allocations: 0.6611 MB / 1.308 GB, free: 15.1 MB / 1.029 GB Notification: Performance of sort global known variables: time 1.41e-07/1.248, allocations: 1.062 kB / 1.308 GB, free: 15.1 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.001236/1.249, allocations: 338.6 kB / 1.308 GB, free: 15.03 MB / 1.029 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.001096/1.25, allocations: 395.9 kB / 1.309 GB, free: 14.84 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.001056/1.251, allocations: 424.3 kB / 1.309 GB, free: 14.71 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 5.33e-06/1.251, allocations: 1.688 kB / 1.309 GB, free: 14.71 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0004213/1.251, allocations: 186.1 kB / 1.309 GB, free: 14.65 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003082/1.255, allocations: 0.6215 MB / 1.31 GB, free: 14.45 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003087/1.258, allocations: 1.612 MB / 1.311 GB, free: 13.51 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008838/1.259, allocations: 1.046 MB / 1.312 GB, free: 12.77 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 0.00112/1.26, allocations: 194.9 kB / 1.313 GB, free: 12.72 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003185/1.26, allocations: 81.31 kB / 1.313 GB, free: 12.71 MB / 1.029 GB Notification: Performance of SimCode: time 1.142e-06/1.26, allocations: 0 / 1.313 GB, free: 12.71 MB / 1.029 GB Notification: Performance of Templates: time 0.05223/1.312, allocations: 21.36 MB / 1.333 GB, free: 5.738 MB / 1.029 GB make -j1 -f Buildings_latest_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.makefile (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 & ./Buildings_latest_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches