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.008688/0.008688, allocations: 96.61 kB / 15.73 MB, free: 6.004 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.002291/0.002291, allocations: 198.9 kB / 16.68 MB, free: 5.934 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.408/1.408, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.89/2.89, allocations: 472.6 MB / 0.7453 GB, free: 4.582 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001244/0.001244, allocations: 63.91 kB / 1.069 GB, free: 9.215 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3715/0.3728, allocations: 159.9 MB / 1.226 GB, free: 9.199 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger): time 0.8548/1.228, allocations: 41.58 MB / 1.266 GB, free: 5.77 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.01483/1.242, allocations: 10.4 MB / 1.276 GB, free: 0.9922 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003053/1.246, allocations: 54.16 kB / 1.276 GB, free: 0.9727 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.002318/1.248, allocations: 0.6477 MB / 1.277 GB, free: 0.6055 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.006628/1.255, allocations: 1.874 MB / 1.279 GB, free: 15.5 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.005165/1.26, allocations: 1.193 MB / 1.28 GB, free: 14.84 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.01095/1.271, allocations: 3.389 MB / 1.283 GB, free: 13.21 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004255/1.275, allocations: 1.06 MB / 1.284 GB, free: 12.74 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006484/1.282, allocations: 1.234 MB / 1.286 GB, free: 12.16 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003395/1.285, allocations: 0.8795 MB / 1.286 GB, free: 11.75 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 0.0003396/1.285, allocations: 99.25 kB / 1.287 GB, free: 11.75 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003399/1.289, allocations: 0.8638 MB / 1.287 GB, free: 11.41 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 0.0004504/1.289, allocations: 285 kB / 1.288 GB, free: 11.23 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.001283/1.291, allocations: 0.6311 MB / 1.288 GB, free: 10.85 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.004407/1.295, allocations: 1.931 MB / 1.29 GB, free: 10.12 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 5.56e-06/1.295, allocations: 1.094 kB / 1.29 GB, free: 10.12 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.854e-06/1.295, allocations: 0 / 1.29 GB, free: 10.12 MB / 1.014 GB Notification: Performance of Transformations before backend: time 2.646e-05/1.295, allocations: 0 / 1.29 GB, free: 10.12 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.003028/1.298, allocations: 1.549 MB / 1.292 GB, free: 9.051 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 4.943e-05/1.298, allocations: 10.34 kB / 1.292 GB, free: 9.051 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004316/1.299, allocations: 139.2 kB / 1.292 GB, free: 8.984 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002157/1.301, allocations: 1.12 MB / 1.293 GB, free: 8.316 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.339e-05/1.301, allocations: 50.84 kB / 1.293 GB, free: 8.293 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001338/1.301, allocations: 72.89 kB / 1.293 GB, free: 8.27 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001602/1.303, allocations: 0.7964 MB / 1.294 GB, free: 7.887 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.674e-05/1.303, allocations: 1.578 kB / 1.294 GB, free: 7.887 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.194e-05/1.303, allocations: 30.81 kB / 1.294 GB, free: 7.863 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.753e-05/1.303, allocations: 20.23 kB / 1.294 GB, free: 7.863 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001158/1.304, allocations: 0.5749 MB / 1.294 GB, free: 7.66 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.004954/1.309, allocations: 3.553 MB / 1.298 GB, free: 5.07 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006741/1.31, allocations: 258.5 kB / 1.298 GB, free: 4.973 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003857/1.31, allocations: 177.9 kB / 1.298 GB, free: 4.91 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006091/1.311, allocations: 0.6565 MB / 1.299 GB, free: 4.152 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.031e-05/1.311, allocations: 37.16 kB / 1.299 GB, free: 4.109 MB / 1.014 GB Notification: Performance of pre-optimization done (n=31): time 2.354e-06/1.311, allocations: 4 kB / 1.299 GB, free: 4.105 MB / 1.014 GB Notification: Performance of matching and sorting (n=31): time 0.001337/1.312, allocations: 0.5143 MB / 1.299 GB, free: 3.906 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.995e-05/1.312, allocations: 58.77 kB / 1.3 GB, free: 3.84 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001419/1.313, allocations: 0.953 MB / 1.3 GB, free: 3.434 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 4.759e-05/1.314, allocations: 36.11 kB / 1.301 GB, free: 3.395 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005059/1.314, allocations: 0.497 MB / 1.301 GB, free: 2.992 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001441/1.314, allocations: 124.7 kB / 1.301 GB, free: 2.895 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002148/1.314, allocations: 119.5 kB / 1.301 GB, free: 2.828 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001684/1.315, allocations: 329.2 kB / 1.302 GB, free: 2.512 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004161/1.315, allocations: 162.2 kB / 1.302 GB, free: 2.461 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005424/1.316, allocations: 348.1 kB / 1.302 GB, free: 2.195 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009456/1.317, allocations: 0.5148 MB / 1.303 GB, free: 1.84 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.519e-06/1.317, allocations: 2.25 kB / 1.303 GB, free: 1.84 MB / 1.014 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001269/1.318, allocations: 0.6194 MB / 1.303 GB, free: 1.578 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 2.32e-05/1.318, allocations: 8.625 kB / 1.303 GB, free: 1.578 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.13e-05/1.318, allocations: 5.344 kB / 1.303 GB, free: 1.578 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.73e-05/1.318, allocations: 12.5 kB / 1.303 GB, free: 1.574 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004562/1.318, allocations: 122.9 kB / 1.303 GB, free: 1.562 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.928e-05/1.318, allocations: 16.94 kB / 1.303 GB, free: 1.555 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007876/1.319, allocations: 79.89 kB / 1.303 GB, free: 1.512 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.867e-05/1.319, allocations: 25.77 kB / 1.303 GB, free: 1.508 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.0004496/1.32, allocations: 281.2 kB / 1.304 GB, free: 1.297 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001755/1.32, allocations: 108.2 kB / 1.304 GB, free: 1.238 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001081/1.321, allocations: 481.3 kB / 1.304 GB, free: 1.047 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.607e-05/1.321, allocations: 5.672 kB / 1.304 GB, free: 1.047 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.127e-06/1.321, allocations: 4 kB / 1.304 GB, free: 1.043 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007768/1.322, allocations: 457.3 kB / 1.305 GB, free: 0.7852 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002521/1.324, allocations: 1.365 MB / 1.306 GB, free: 44 kB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.799e-06/1.324, allocations: 1.125 kB / 1.306 GB, free: 44 kB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003464/1.325, allocations: 76.98 kB / 1.306 GB, free: 36 kB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.949e-06/1.325, allocations: 8.484 kB / 1.306 GB, free: 32 kB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.939e-05/1.325, allocations: 9.672 kB / 1.306 GB, free: 28 kB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.151e-06/1.325, allocations: 2.719 kB / 1.306 GB, free: 28 kB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/1.325, allocations: 1.188 kB / 1.306 GB, free: 28 kB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001419/1.326, allocations: 0.7807 MB / 1.307 GB, free: 15.61 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004414/1.327, allocations: 230 kB / 1.307 GB, free: 15.42 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001214/1.327, allocations: 11.23 kB / 1.307 GB, free: 15.41 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005083/1.327, allocations: 35.59 kB / 1.307 GB, free: 15.4 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.267e-05/1.327, allocations: 26.39 kB / 1.307 GB, free: 15.4 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.55e-05/1.327, allocations: 23.67 kB / 1.307 GB, free: 15.39 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.001001/1.328, allocations: 0.6652 MB / 1.308 GB, free: 15.1 MB / 1.029 GB Notification: Performance of sort global known variables: time 1.3e-07/1.328, allocations: 0 / 1.308 GB, free: 15.1 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.001239/1.33, allocations: 339.8 kB / 1.308 GB, free: 15.02 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.0008945/1.331, allocations: 393.8 kB / 1.309 GB, free: 14.83 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.001031/1.332, allocations: 421.4 kB / 1.309 GB, free: 14.71 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 3.978e-06/1.332, allocations: 2.531 kB / 1.309 GB, free: 14.71 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0004087/1.332, allocations: 189.2 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.002805/1.335, allocations: 0.6083 MB / 1.31 GB, free: 14.46 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002783/1.338, allocations: 1.617 MB / 1.311 GB, free: 13.51 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007324/1.338, allocations: 1.05 MB / 1.312 GB, free: 12.77 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 0.0009193/1.339, allocations: 198.8 kB / 1.312 GB, free: 12.71 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001938/1.34, allocations: 80 kB / 1.313 GB, free: 12.7 MB / 1.029 GB Notification: Performance of SimCode: time 7.21e-07/1.34, allocations: 0 / 1.313 GB, free: 12.7 MB / 1.029 GB Notification: Performance of Templates: time 0.04821/1.388, allocations: 21.35 MB / 1.333 GB, free: 5.77 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