Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.PlateHeatExchangerEffectivenessNTUPControl.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.HeatExchangers.Examples.PlateHeatExchangerEffectivenessNTUPControl,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|P.u_s|P.u_m|hex.sta_a1.T|hex.sta_b1.T|hex.sta_a2.T|hex.sta_b2.T|hex.Q1_flow|hex.Q2_flow|hex.m1_flow|hex.m2_flow",fileNamePrefix="Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.PlateHeatExchangerEffectivenessNTUPControl") translateModel(Buildings.Fluid.HeatExchangers.Examples.PlateHeatExchangerEffectivenessNTUPControl,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|P.u_s|P.u_m|hex.sta_a1.T|hex.sta_b1.T|hex.sta_a2.T|hex.sta_b2.T|hex.Q1_flow|hex.Q2_flow|hex.m1_flow|hex.m2_flow",fileNamePrefix="Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.PlateHeatExchangerEffectivenessNTUPControl") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001713/0.001713, allocations: 111 kB / 16.42 MB, free: 6.508 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.002227/0.002227, allocations: 188.3 kB / 17.35 MB, free: 5.758 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.446/1.446, allocations: 222.9 MB / 241.1 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.762/2.762, allocations: 472.7 MB / 0.746 GB, free: 416 kB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001293/0.001293, allocations: 67.89 kB / 1.07 GB, free: 9.523 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7507/0.752, allocations: 159.9 MB / 1.226 GB, free: 13.45 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.Examples.PlateHeatExchangerEffectivenessNTUPControl): time 0.04919/0.8013, allocations: 48.21 MB / 1.273 GB, free: 13.07 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.01624/0.8176, allocations: 11.89 MB / 1.285 GB, free: 1.156 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00191/0.8195, allocations: 59.62 kB / 1.285 GB, free: 1.098 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.002019/0.8215, allocations: 0.7411 MB / 1.286 GB, free: 360 kB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.005405/0.827, allocations: 2.129 MB / 1.288 GB, free: 14.22 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.004918/0.8319, allocations: 2.085 MB / 1.29 GB, free: 12.16 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.004403/0.8363, allocations: 3.555 MB / 1.293 GB, free: 8.586 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001795/0.8381, allocations: 1.235 MB / 1.295 GB, free: 7.32 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003378/0.8415, allocations: 1.584 MB / 1.296 GB, free: 5.738 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001641/0.8432, allocations: 1.027 MB / 1.297 GB, free: 4.707 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 0.0003354/0.8435, allocations: 140 kB / 1.297 GB, free: 4.57 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004139/0.8477, allocations: 2.332 MB / 1.3 GB, free: 2.234 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 0.000447/0.8481, allocations: 358.6 kB / 1.3 GB, free: 1.883 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.001109/0.8493, allocations: 0.8239 MB / 1.301 GB, free: 1.055 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.004656/0.8539, allocations: 2.924 MB / 1.304 GB, free: 14.12 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 5.791e-06/0.8539, allocations: 4 kB / 1.304 GB, free: 14.12 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.462e-06/0.854, allocations: 3.938 kB / 1.304 GB, free: 14.11 MB / 1.029 GB Notification: Performance of Transformations before backend: time 5.9e-05/0.854, allocations: 0 / 1.304 GB, free: 14.11 MB / 1.029 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 214 * Number of variables: 214 Notification: Performance of Generate backend data structure: time 0.004644/0.8587, allocations: 2.198 MB / 1.306 GB, free: 11.86 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.06e-05/0.8587, allocations: 8.031 kB / 1.306 GB, free: 11.85 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001789/0.8605, allocations: 399.1 kB / 1.306 GB, free: 11.46 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00292/0.8634, allocations: 1.441 MB / 1.308 GB, free: 9.961 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.451e-05/0.8635, allocations: 74 kB / 1.308 GB, free: 9.891 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001834/0.8637, allocations: 96 kB / 1.308 GB, free: 9.797 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002318/0.8661, allocations: 1.088 MB / 1.309 GB, free: 8.672 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.359e-05/0.8661, allocations: 0 / 1.309 GB, free: 8.672 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.722e-05/0.8662, allocations: 32 kB / 1.309 GB, free: 8.641 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.834e-05/0.8662, allocations: 33.94 kB / 1.309 GB, free: 8.609 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002542/0.8688, allocations: 1.011 MB / 1.31 GB, free: 7.598 MB / 1.029 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.007567/0.8764, allocations: 4.704 MB / 1.314 GB, free: 2.617 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002007/0.8784, allocations: 0.7768 MB / 1.315 GB, free: 1.836 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009911/0.8794, allocations: 438.6 kB / 1.316 GB, free: 1.406 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001155/0.8806, allocations: 1.056 MB / 1.317 GB, free: 132 kB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001255/0.8818, allocations: 0.5119 MB / 1.317 GB, free: 15.6 MB / 1.045 GB Notification: Performance of pre-optimization done (n=72): time 3.847e-06/0.8819, allocations: 0 / 1.317 GB, free: 15.6 MB / 1.045 GB Notification: Performance of matching and sorting (n=72): time 0.003637/0.8855, allocations: 1.309 MB / 1.318 GB, free: 14.29 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.179e-05/0.8856, allocations: 60.06 kB / 1.318 GB, free: 14.21 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001793/0.8874, allocations: 1.195 MB / 1.32 GB, free: 13.01 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 0.0001358/0.8875, allocations: 45.7 kB / 1.32 GB, free: 12.96 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005078/0.888, allocations: 0.5922 MB / 1.32 GB, free: 12.36 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002195/0.8883, allocations: 269.7 kB / 1.32 GB, free: 12.09 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003629/0.8886, allocations: 218.5 kB / 1.321 GB, free: 11.88 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001314/0.8888, allocations: 341.9 kB / 1.321 GB, free: 11.54 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00108/0.8899, allocations: 432.5 kB / 1.321 GB, free: 11.11 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00132/0.8912, allocations: 0.6251 MB / 1.322 GB, free: 10.41 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002216/0.8934, allocations: 0.9842 MB / 1.323 GB, free: 9.363 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.552e-06/0.8934, allocations: 0 / 1.323 GB, free: 9.363 MB / 1.045 GB Notification: Performance of matching and sorting (n=118) (initialization): time 0.003063/0.8965, allocations: 1.256 MB / 1.324 GB, free: 8.094 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 4.556e-05/0.8966, allocations: 33.7 kB / 1.324 GB, free: 8.055 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.301e-05/0.8966, allocations: 7.938 kB / 1.324 GB, free: 8.047 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.359e-05/0.8966, allocations: 8 kB / 1.324 GB, free: 8.039 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001465/0.8981, allocations: 291.8 kB / 1.325 GB, free: 7.754 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007106/0.8988, allocations: 1.207 MB / 1.326 GB, free: 6.5 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001443/0.9003, allocations: 159.4 kB / 1.326 GB, free: 6.344 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001333/0.9004, allocations: 51.97 kB / 1.326 GB, free: 6.293 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001543/0.902, allocations: 0.6281 MB / 1.327 GB, free: 5.66 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001316/0.9033, allocations: 0.6289 MB / 1.327 GB, free: 4.957 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002173/0.9055, allocations: 0.9685 MB / 1.328 GB, free: 3.934 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.499e-06/0.9055, allocations: 0 / 1.328 GB, free: 3.934 MB / 1.045 GB Notification: Performance of matching and sorting (n=118) (initialization_lambda0): time 0.003029/0.9085, allocations: 1.244 MB / 1.329 GB, free: 2.672 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 3.989e-05/0.9086, allocations: 37.69 kB / 1.329 GB, free: 2.629 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.556e-06/0.9086, allocations: 4.219 kB / 1.329 GB, free: 2.625 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.134e-05/0.9086, allocations: 12 kB / 1.329 GB, free: 2.613 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00115/0.9098, allocations: 267.6 kB / 1.33 GB, free: 2.352 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.769e-05/0.9098, allocations: 11.94 kB / 1.33 GB, free: 2.34 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00138/0.9112, allocations: 143.5 kB / 1.33 GB, free: 2.199 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001145/0.9113, allocations: 47.97 kB / 1.33 GB, free: 2.152 MB / 1.045 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 8 (hex.flowRegime_nominal,hex.flowRegime,TSet.count,$PRE.TSet.count,TSet.T_start,$PRE.TSet.T_start,$whenCondition1,P.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (117): * Single equations (assignments): 114 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 2 systems {1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000307/0.9116, allocations: 236 kB / 1.33 GB, free: 1.914 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003566/0.912, allocations: 151 kB / 1.33 GB, free: 1.766 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003031/0.915, allocations: 1.255 MB / 1.331 GB, free: 0.5195 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.319e-05/0.9151, allocations: 7.969 kB / 1.331 GB, free: 0.5117 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.28e-06/0.9151, allocations: 3.984 kB / 1.331 GB, free: 0.5078 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000584/0.9157, allocations: 351.7 kB / 1.332 GB, free: 148 kB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002134/0.9159, allocations: 16 kB / 1.332 GB, free: 132 kB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001071/0.917, allocations: 104.5 kB / 1.332 GB, free: 28 kB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001617/0.9171, allocations: 60.91 kB / 1.332 GB, free: 15.97 MB / 1.061 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.003203/0.9203, allocations: 1.214 MB / 1.333 GB, free: 14.74 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.003764/0.9241, allocations: 1.835 MB / 1.335 GB, free: 12.89 MB / 1.061 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001088/0.9252, allocations: 0.4958 MB / 1.335 GB, free: 12.4 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.001146/0.9264, allocations: 0.8011 MB / 1.336 GB, free: 11.6 MB / 1.061 GB Notification: Performance of Backend: time 5.61e-07/0.9264, allocations: 0 / 1.336 GB, free: 11.6 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.005613/0.932, allocations: 2.043 MB / 1.338 GB, free: 9.547 MB / 1.061 GB Notification: Performance of SimCode: time 0.004687/0.9367, allocations: 2.985 MB / 1.341 GB, free: 6.504 MB / 1.061 GB Notification: Performance of Templates: time 0.05563/0.9924, allocations: 35.67 MB / 1.376 GB, free: 3.18 MB / 1.092 GB make -j1 -f Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.PlateHeatExchangerEffectivenessNTUPControl.makefile (rm -f Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.PlateHeatExchangerEffectivenessNTUPControl.pipe ; mkfifo Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.PlateHeatExchangerEffectivenessNTUPControl.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.PlateHeatExchangerEffectivenessNTUPControl.pipe >> ../files/Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.PlateHeatExchangerEffectivenessNTUPControl.sim & ./Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.PlateHeatExchangerEffectivenessNTUPControl -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.PlateHeatExchangerEffectivenessNTUPControl.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.PlateHeatExchangerEffectivenessNTUPControl_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_HeatExchangers_Examples_PlateHeatExchangerEffectivenessNTUPControl.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.PlateHeatExchangerEffectivenessNTUPControl.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches