Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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: 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_11_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_11_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.006569/0.006569, allocations: 95.92 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.00118/0.00118, allocations: 198.9 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.413/1.413, allocations: 222.9 MB / 240.4 MB, free: 4.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.836/2.836, allocations: 469.8 MB / 0.7425 GB, free: 7.328 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001431/0.001431, allocations: 71.88 kB / 1.065 GB, free: 13.05 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3463/0.3478, allocations: 159.1 MB / 1.221 GB, free: 13.8 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger): time 0.8761/1.224, allocations: 41.66 MB / 1.261 GB, free: 5.316 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.01641/1.24, allocations: 10.42 MB / 1.271 GB, free: 4.242 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003163/1.243, allocations: 55.94 kB / 1.272 GB, free: 4.223 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.002413/1.246, allocations: 0.673 MB / 1.272 GB, free: 3.953 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.009573/1.255, allocations: 1.977 MB / 1.274 GB, free: 3.172 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.005484/1.261, allocations: 1.188 MB / 1.275 GB, free: 2.945 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.008752/1.27, allocations: 3.391 MB / 1.279 GB, free: 2.258 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002886/1.273, allocations: 0.8707 MB / 1.279 GB, free: 2.129 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005561/1.278, allocations: 1.256 MB / 1.281 GB, free: 1.605 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003114/1.281, allocations: 0.8837 MB / 1.282 GB, free: 1.195 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.0006416/1.282, allocations: 100.3 kB / 1.282 GB, free: 1.195 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005177/1.287, allocations: 0.8608 MB / 1.282 GB, free: 0.8516 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0008165/1.288, allocations: 301 kB / 1.283 GB, free: 0.6641 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.002259/1.29, allocations: 0.6235 MB / 1.283 GB, free: 292 kB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.006512/1.297, allocations: 1.934 MB / 1.285 GB, free: 15.55 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 5.61e-06/1.297, allocations: 1.438 kB / 1.285 GB, free: 15.55 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.733e-06/1.297, allocations: 0 / 1.285 GB, free: 15.55 MB / 1.014 GB Notification: Performance of Transformations before backend: time 3.379e-05/1.297, allocations: 0.8438 kB / 1.285 GB, free: 15.55 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.004623/1.301, allocations: 1.565 MB / 1.287 GB, free: 14.46 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 5.797e-05/1.301, allocations: 9.562 kB / 1.287 GB, free: 14.46 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007212/1.302, allocations: 143 kB / 1.287 GB, free: 14.39 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00337/1.305, allocations: 1.109 MB / 1.288 GB, free: 13.73 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.258e-05/1.306, allocations: 56.34 kB / 1.288 GB, free: 13.71 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002011/1.306, allocations: 73.05 kB / 1.288 GB, free: 13.68 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002737/1.308, allocations: 0.7918 MB / 1.289 GB, free: 13.3 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.034e-05/1.309, allocations: 2.094 kB / 1.289 GB, free: 13.3 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001232/1.309, allocations: 26.72 kB / 1.289 GB, free: 13.29 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.957e-05/1.309, allocations: 18.59 kB / 1.289 GB, free: 13.29 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002121/1.311, allocations: 0.576 MB / 1.29 GB, free: 13.09 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.008672/1.32, allocations: 3.551 MB / 1.293 GB, free: 10.5 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001097/1.321, allocations: 252.2 kB / 1.293 GB, free: 10.4 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006856/1.321, allocations: 165.3 kB / 1.293 GB, free: 10.34 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009692/1.322, allocations: 0.6596 MB / 1.294 GB, free: 9.582 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.367e-05/1.322, allocations: 41.09 kB / 1.294 GB, free: 9.535 MB / 1.014 GB Notification: Performance of pre-optimization done (n=31): time 3.366e-06/1.322, allocations: 0 / 1.294 GB, free: 9.535 MB / 1.014 GB Notification: Performance of matching and sorting (n=31): time 0.002395/1.325, allocations: 0.5152 MB / 1.295 GB, free: 9.336 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.427e-05/1.325, allocations: 54.56 kB / 1.295 GB, free: 9.273 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00277/1.328, allocations: 0.9526 MB / 1.296 GB, free: 8.867 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 0.0001036/1.328, allocations: 32.88 kB / 1.296 GB, free: 8.832 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007436/1.328, allocations: 0.4965 MB / 1.296 GB, free: 8.43 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002466/1.329, allocations: 121 kB / 1.296 GB, free: 8.336 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000332/1.329, allocations: 115.2 kB / 1.296 GB, free: 8.273 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.000209/1.329, allocations: 337.2 kB / 1.297 GB, free: 7.949 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000721/1.33, allocations: 166.1 kB / 1.297 GB, free: 7.895 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009898/1.331, allocations: 348.8 kB / 1.297 GB, free: 7.629 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00169/1.333, allocations: 0.5137 MB / 1.298 GB, free: 7.277 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.07e-05/1.333, allocations: 1.188 kB / 1.298 GB, free: 7.277 MB / 1.014 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002508/1.335, allocations: 0.6179 MB / 1.298 GB, free: 7.02 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 3.189e-05/1.335, allocations: 11.89 kB / 1.298 GB, free: 7.016 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.944e-05/1.335, allocations: 4.688 kB / 1.298 GB, free: 7.016 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.073e-05/1.335, allocations: 10.88 kB / 1.298 GB, free: 7.016 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008736/1.336, allocations: 127.2 kB / 1.298 GB, free: 7 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.874e-05/1.336, allocations: 10.11 kB / 1.298 GB, free: 7 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001492/1.338, allocations: 82.58 kB / 1.298 GB, free: 6.953 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.803e-05/1.338, allocations: 26.27 kB / 1.298 GB, free: 6.949 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.0008053/1.339, allocations: 284.1 kB / 1.299 GB, free: 6.734 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000461/1.339, allocations: 103 kB / 1.299 GB, free: 6.68 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001959/1.341, allocations: 488.7 kB / 1.299 GB, free: 6.484 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.798e-05/1.341, allocations: 4.5 kB / 1.299 GB, free: 6.484 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.823e-06/1.341, allocations: 7.938 kB / 1.299 GB, free: 6.477 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001209/1.342, allocations: 452.1 kB / 1.3 GB, free: 6.223 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00473/1.347, allocations: 1.366 MB / 1.301 GB, free: 5.48 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.684e-06/1.347, allocations: 1.062 kB / 1.301 GB, free: 5.48 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006696/1.348, allocations: 77.33 kB / 1.301 GB, free: 5.473 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.737e-05/1.348, allocations: 7.406 kB / 1.301 GB, free: 5.469 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.914e-05/1.348, allocations: 10.34 kB / 1.301 GB, free: 5.465 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.618e-06/1.348, allocations: 7.781 kB / 1.301 GB, free: 5.461 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.29e-06/1.348, allocations: 1.906 kB / 1.301 GB, free: 5.461 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002672/1.35, allocations: 0.771 MB / 1.302 GB, free: 5.047 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008488/1.351, allocations: 230.3 kB / 1.302 GB, free: 4.863 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004122/1.352, allocations: 10.97 kB / 1.302 GB, free: 4.855 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001193/1.353, allocations: 32.62 kB / 1.302 GB, free: 4.848 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001199/1.353, allocations: 28.31 kB / 1.302 GB, free: 4.84 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.156e-05/1.353, allocations: 20.91 kB / 1.302 GB, free: 4.836 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.001793/1.355, allocations: 0.6581 MB / 1.303 GB, free: 4.551 MB / 1.014 GB Notification: Performance of sort global known variables: time 1.91e-07/1.355, allocations: 0 / 1.303 GB, free: 4.551 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.00224/1.357, allocations: 343 kB / 1.303 GB, free: 4.473 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.001495/1.359, allocations: 403.5 kB / 1.304 GB, free: 4.289 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.00179/1.36, allocations: 401.2 kB / 1.304 GB, free: 4.172 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 6.032e-06/1.36, allocations: 1.5 kB / 1.304 GB, free: 4.172 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.0007243/1.361, allocations: 180.4 kB / 1.304 GB, free: 4.117 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00531/1.366, allocations: 0.6047 MB / 1.305 GB, free: 3.934 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004987/1.371, allocations: 1.628 MB / 1.306 GB, free: 2.977 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001203/1.373, allocations: 1.037 MB / 1.307 GB, free: 2.242 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 0.001448/1.374, allocations: 195.3 kB / 1.308 GB, free: 2.195 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003539/1.374, allocations: 80.55 kB / 1.308 GB, free: 2.184 MB / 1.014 GB Notification: Performance of SimCode: time 1.032e-06/1.374, allocations: 3.938 kB / 1.308 GB, free: 2.18 MB / 1.014 GB Notification: Performance of Templates: time 0.06251/1.437, allocations: 21.46 MB / 1.329 GB, free: 11.57 MB / 1.029 GB make -j1 -f Buildings_11_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.makefile (rm -f Buildings_11_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe ; mkfifo Buildings_11_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe ; head -c 1048576 < Buildings_11_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe >> ../files/Buildings_11_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.sim & ./Buildings_11_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Fluid_Interfaces_Examples_FourPortHeatMassExchanger.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches