Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.MassExchangers.Examples.ConstantEffectiveness.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.MassExchangers.Examples.ConstantEffectiveness,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hex.m1_flow|hex.m2_flow|hex.sta_a1.X.1.|hex.sta_b1.X.1.|hex.sta_a2.X.1.|hex.sta_b2.X.1.|hex.dp1|hex.dp2|hex.mWat1_flow|hex.mWat2_flow",fileNamePrefix="Buildings_latest_Buildings.Fluid.MassExchangers.Examples.ConstantEffectiveness") translateModel(Buildings.Fluid.MassExchangers.Examples.ConstantEffectiveness,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hex.m1_flow|hex.m2_flow|hex.sta_a1.X.1.|hex.sta_b1.X.1.|hex.sta_a2.X.1.|hex.sta_b2.X.1.|hex.dp1|hex.dp2|hex.mWat1_flow|hex.mWat2_flow",fileNamePrefix="Buildings_latest_Buildings.Fluid.MassExchangers.Examples.ConstantEffectiveness") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001305/0.001305, allocations: 107.5 kB / 15.99 MB, free: 6.355 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.001373/0.001373, allocations: 195.4 kB / 16.91 MB, free: 6.195 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.394/1.394, allocations: 222.9 MB / 240.6 MB, free: 13.71 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.737/2.737, allocations: 482.4 MB / 0.755 GB, free: 7.191 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001885/0.001885, allocations: 61.19 kB / 0.924 GB, free: 360 kB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8762/0.8781, allocations: 162.2 MB / 1.082 GB, free: 1.637 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.MassExchangers.Examples.ConstantEffectiveness): time 0.2842/1.162, allocations: 211.6 MB / 1.289 GB, free: 10.88 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.01173/1.174, allocations: 7.009 MB / 1.296 GB, free: 3.848 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001618/1.176, allocations: 35.75 kB / 1.296 GB, free: 3.812 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.002139/1.178, allocations: 0.7035 MB / 1.297 GB, free: 3.105 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.00656/1.185, allocations: 2.35 MB / 1.299 GB, free: 0.7461 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.003083/1.188, allocations: 1.07 MB / 1.3 GB, free: 15.69 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.004298/1.192, allocations: 2.817 MB / 1.303 GB, free: 12.86 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001628/1.194, allocations: 1.063 MB / 1.304 GB, free: 11.77 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005374/1.199, allocations: 2.266 MB / 1.306 GB, free: 9.5 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002348/1.201, allocations: 0.9726 MB / 1.307 GB, free: 8.531 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 0.0002042/1.202, allocations: 116 kB / 1.307 GB, free: 8.418 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004763/1.206, allocations: 2.564 MB / 1.31 GB, free: 5.848 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.0005137/1.207, allocations: 426.7 kB / 1.31 GB, free: 5.43 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0009252/1.208, allocations: 0.6842 MB / 1.311 GB, free: 4.742 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.002823/1.211, allocations: 1.852 MB / 1.312 GB, free: 2.887 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 5.38e-06/1.211, allocations: 0 / 1.312 GB, free: 2.887 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.383e-06/1.211, allocations: 0 / 1.312 GB, free: 2.887 MB / 1.029 GB Notification: Performance of Transformations before backend: time 1.639e-05/1.211, allocations: 4 kB / 1.312 GB, free: 2.883 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: 209 * Number of variables: 209 Notification: Performance of Generate backend data structure: time 0.004684/1.215, allocations: 1.84 MB / 1.314 GB, free: 0.9844 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.796e-05/1.215, allocations: 8.031 kB / 1.314 GB, free: 0.9766 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003228/1.219, allocations: 0.5408 MB / 1.315 GB, free: 444 kB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001827/1.22, allocations: 0.9563 MB / 1.316 GB, free: 15.43 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006572/1.221, allocations: 177.9 kB / 1.316 GB, free: 15.26 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001556/1.221, allocations: 91.92 kB / 1.316 GB, free: 15.17 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002877/1.224, allocations: 1.237 MB / 1.317 GB, free: 13.92 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 2e-05/1.224, allocations: 0 / 1.317 GB, free: 13.92 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001057/1.224, allocations: 28 kB / 1.317 GB, free: 13.89 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.178e-05/1.224, allocations: 49.98 kB / 1.317 GB, free: 13.85 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00381/1.228, allocations: 1.538 MB / 1.319 GB, free: 12.31 MB / 1.045 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.006955/1.235, allocations: 4.052 MB / 1.323 GB, free: 7.98 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00264/1.238, allocations: 0.9983 MB / 1.324 GB, free: 6.977 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001596/1.239, allocations: 0.6707 MB / 1.324 GB, free: 6.297 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001282/1.241, allocations: 0.6048 MB / 1.325 GB, free: 5.582 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.792e-05/1.241, allocations: 43.2 kB / 1.325 GB, free: 5.531 MB / 1.045 GB Notification: Performance of pre-optimization done (n=76): time 2.264e-06/1.241, allocations: 4 kB / 1.325 GB, free: 5.527 MB / 1.045 GB Notification: Performance of matching and sorting (n=76): time 0.005328/1.246, allocations: 1.812 MB / 1.327 GB, free: 3.707 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.537e-05/1.246, allocations: 60.06 kB / 1.327 GB, free: 3.637 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001154/1.247, allocations: 0.8193 MB / 1.328 GB, free: 2.793 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 0.0001075/1.247, allocations: 41.7 kB / 1.328 GB, free: 2.746 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004203/1.248, allocations: 444.5 kB / 1.328 GB, free: 2.305 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002682/1.248, allocations: 260.1 kB / 1.328 GB, free: 2.047 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003195/1.248, allocations: 150.5 kB / 1.328 GB, free: 1.895 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001633/1.249, allocations: 341.9 kB / 1.329 GB, free: 1.555 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001479/1.25, allocations: 0.5317 MB / 1.329 GB, free: 1.02 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001592/1.252, allocations: 0.6551 MB / 1.33 GB, free: 344 kB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002927/1.255, allocations: 1.138 MB / 1.331 GB, free: 15.18 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.727e-06/1.255, allocations: 0 / 1.331 GB, free: 15.18 MB / 1.061 GB Notification: Performance of matching and sorting (n=84) (initialization): time 0.003468/1.258, allocations: 1.349 MB / 1.332 GB, free: 13.82 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 5.26e-05/1.258, allocations: 33.69 kB / 1.332 GB, free: 13.78 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.768e-06/1.258, allocations: 4 kB / 1.332 GB, free: 13.77 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.852e-05/1.258, allocations: 4 kB / 1.332 GB, free: 13.77 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001592/1.26, allocations: 267.6 kB / 1.333 GB, free: 13.51 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008781/1.261, allocations: 1.196 MB / 1.334 GB, free: 12.27 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001257/1.262, allocations: 175.3 kB / 1.334 GB, free: 12.09 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.233e-05/1.262, allocations: 31.98 kB / 1.334 GB, free: 12.06 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001874/1.264, allocations: 0.7603 MB / 1.335 GB, free: 11.3 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001576/1.266, allocations: 0.655 MB / 1.335 GB, free: 10.62 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002918/1.269, allocations: 1.127 MB / 1.336 GB, free: 9.473 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.324e-06/1.269, allocations: 0 / 1.336 GB, free: 9.473 MB / 1.061 GB Notification: Performance of matching and sorting (n=84) (initialization_lambda0): time 0.00349/1.272, allocations: 1.333 MB / 1.338 GB, free: 8.125 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 4.849e-05/1.272, allocations: 41.62 kB / 1.338 GB, free: 8.078 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.948e-06/1.272, allocations: 0 / 1.338 GB, free: 8.078 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.275e-06/1.272, allocations: 4 kB / 1.338 GB, free: 8.074 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001242/1.273, allocations: 231.8 kB / 1.338 GB, free: 7.848 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.667e-06/1.273, allocations: 4 kB / 1.338 GB, free: 7.844 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001219/1.275, allocations: 163.5 kB / 1.338 GB, free: 7.684 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.234e-05/1.275, allocations: 27.98 kB / 1.338 GB, free: 7.656 MB / 1.061 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 2 (hex.i2_w,hex.i1_w) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (83): * Single equations (assignments): 80 * 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.0003218/1.275, allocations: 226.3 kB / 1.338 GB, free: 7.43 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002024/1.275, allocations: 114.6 kB / 1.339 GB, free: 7.316 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003636/1.279, allocations: 1.363 MB / 1.34 GB, free: 5.941 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.478e-06/1.279, allocations: 8 kB / 1.34 GB, free: 5.934 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.382e-06/1.279, allocations: 0 / 1.34 GB, free: 5.934 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.023e-05/1.279, allocations: 3.984 kB / 1.34 GB, free: 5.93 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006022/1.285, allocations: 2.859 MB / 1.343 GB, free: 2.965 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.398e-06/1.285, allocations: 8.094 kB / 1.343 GB, free: 2.957 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0013/1.286, allocations: 227.7 kB / 1.343 GB, free: 2.734 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.961e-05/1.286, allocations: 11.94 kB / 1.343 GB, free: 2.723 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.892e-05/1.286, allocations: 23.98 kB / 1.343 GB, free: 2.699 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007872/1.287, allocations: 1.192 MB / 1.344 GB, free: 1.461 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.745e-05/1.287, allocations: 7.938 kB / 1.344 GB, free: 1.453 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00351/1.291, allocations: 1.471 MB / 1.346 GB, free: 15.92 MB / 1.076 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005863/1.291, allocations: 303.6 kB / 1.346 GB, free: 15.6 MB / 1.076 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001854/1.292, allocations: 23.94 kB / 1.346 GB, free: 15.58 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001305/1.293, allocations: 151.6 kB / 1.346 GB, free: 15.43 MB / 1.076 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001591/1.293, allocations: 52.44 kB / 1.346 GB, free: 15.38 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.571e-05/1.293, allocations: 39.97 kB / 1.346 GB, free: 15.34 MB / 1.076 GB Notification: Performance of sorting global known variables: time 0.000852/1.294, allocations: 0.5778 MB / 1.347 GB, free: 14.75 MB / 1.076 GB Notification: Performance of sort global known variables: time 1.3e-07/1.294, allocations: 0 / 1.347 GB, free: 14.75 MB / 1.076 GB Notification: Performance of remove unused functions: time 0.001542/1.296, allocations: 0.5302 MB / 1.347 GB, free: 14.22 MB / 1.076 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * 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 simulation (76): * Single equations (assignments): 74 * Array equations: 0 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 0.0007402/1.296, allocations: 271.8 kB / 1.347 GB, free: 13.96 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.00575/1.302, allocations: 2.139 MB / 1.35 GB, free: 11.8 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 5.721e-06/1.302, allocations: 0 / 1.35 GB, free: 11.8 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 0.001778/1.304, allocations: 0.6754 MB / 1.35 GB, free: 11.12 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002443/1.306, allocations: 0.5051 MB / 1.351 GB, free: 10.62 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004775/1.311, allocations: 2.545 MB / 1.353 GB, free: 8 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007799/1.312, allocations: 1.094 MB / 1.354 GB, free: 6.875 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004517/1.312, allocations: 99.38 kB / 1.354 GB, free: 6.777 MB / 1.076 GB Notification: Performance of SimCode: time 5.61e-07/1.312, allocations: 4 kB / 1.354 GB, free: 6.773 MB / 1.076 GB Notification: Performance of Templates: time 0.03939/1.352, allocations: 26.74 MB / 1.38 GB, free: 12.14 MB / 1.107 GB make -j1 -f Buildings_latest_Buildings.Fluid.MassExchangers.Examples.ConstantEffectiveness.makefile (rm -f Buildings_latest_Buildings.Fluid.MassExchangers.Examples.ConstantEffectiveness.pipe ; mkfifo Buildings_latest_Buildings.Fluid.MassExchangers.Examples.ConstantEffectiveness.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.MassExchangers.Examples.ConstantEffectiveness.pipe >> ../files/Buildings_latest_Buildings.Fluid.MassExchangers.Examples.ConstantEffectiveness.sim & ./Buildings_latest_Buildings.Fluid.MassExchangers.Examples.ConstantEffectiveness -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.MassExchangers.Examples.ConstantEffectiveness.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.MassExchangers.Examples.ConstantEffectiveness_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_MassExchangers_Examples_ConstantEffectiveness.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.MassExchangers.Examples.ConstantEffectiveness.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches