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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.001198/0.001198, allocations: 114.2 kB / 16.41 MB, free: 6.438 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.00109/0.00109, allocations: 189.6 kB / 17.34 MB, free: 5.742 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.352/1.352, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.591/2.591, allocations: 461.9 MB / 0.7355 GB, free: 11.05 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.002056/0.002056, allocations: 60.12 kB / 1.055 GB, free: 7.727 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.011/1.013, allocations: 157.4 MB / 1.208 GB, free: 13.62 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.MassExchangers.Examples.ConstantEffectiveness): time 0.2392/1.252, allocations: 214.2 MB / 1.418 GB, free: 6.59 MB / 1.139 GB Notification: Performance of NFInst.instExpressions: time 0.01174/1.264, allocations: 7.032 MB / 1.424 GB, free: 15.54 MB / 1.154 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002033/1.266, allocations: 43.69 kB / 1.425 GB, free: 15.5 MB / 1.154 GB Notification: Performance of NFTyping.typeComponents: time 0.002594/1.269, allocations: 0.7882 MB / 1.425 GB, free: 14.71 MB / 1.154 GB Notification: Performance of NFTyping.typeBindings: time 0.007501/1.276, allocations: 2.528 MB / 1.428 GB, free: 12.17 MB / 1.154 GB Notification: Performance of NFTyping.typeClassSections: time 0.003799/1.28, allocations: 1.171 MB / 1.429 GB, free: 11.01 MB / 1.154 GB Notification: Performance of NFFlatten.flatten: time 0.004857/1.285, allocations: 2.825 MB / 1.432 GB, free: 8.176 MB / 1.154 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002184/1.287, allocations: 1.083 MB / 1.433 GB, free: 7.074 MB / 1.154 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005402/1.292, allocations: 2.012 MB / 1.435 GB, free: 5.055 MB / 1.154 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002807/1.295, allocations: 0.9411 MB / 1.436 GB, free: 4.113 MB / 1.154 GB Notification: Performance of NFPackage.collectConstants: time 0.0004844/1.296, allocations: 120 kB / 1.436 GB, free: 3.996 MB / 1.154 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005513/1.301, allocations: 2.448 MB / 1.438 GB, free: 1.543 MB / 1.154 GB Notification: Performance of NFScalarize.scalarize: time 0.0007691/1.302, allocations: 430.6 kB / 1.439 GB, free: 1.121 MB / 1.154 GB Notification: Performance of NFVerifyModel.verify: time 0.001529/1.304, allocations: 0.692 MB / 1.439 GB, free: 436 kB / 1.154 GB Notification: Performance of NFConvertDAE.convert: time 0.005794/1.309, allocations: 2.482 MB / 1.442 GB, free: 13.94 MB / 1.17 GB Notification: Performance of FrontEnd - DAE generated: time 8.636e-06/1.31, allocations: 0 / 1.442 GB, free: 13.94 MB / 1.17 GB Notification: Performance of FrontEnd: time 2.164e-06/1.31, allocations: 0 / 1.442 GB, free: 13.94 MB / 1.17 GB Notification: Performance of Transformations before backend: time 6.325e-05/1.31, allocations: 0 / 1.442 GB, free: 13.94 MB / 1.17 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.006432/1.316, allocations: 1.84 MB / 1.443 GB, free: 12.04 MB / 1.17 GB Notification: Performance of prepare preOptimizeDAE: time 4.809e-05/1.316, allocations: 12.03 kB / 1.443 GB, free: 12.03 MB / 1.17 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004176/1.32, allocations: 0.5408 MB / 1.444 GB, free: 11.48 MB / 1.17 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002214/1.323, allocations: 1.007 MB / 1.445 GB, free: 10.43 MB / 1.17 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.272e-05/1.323, allocations: 66 kB / 1.445 GB, free: 10.37 MB / 1.17 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001626/1.323, allocations: 87.94 kB / 1.445 GB, free: 10.28 MB / 1.17 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002818/1.326, allocations: 1.217 MB / 1.446 GB, free: 9.059 MB / 1.17 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.115e-05/1.326, allocations: 0 / 1.446 GB, free: 9.059 MB / 1.17 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001198/1.326, allocations: 43.97 kB / 1.446 GB, free: 9.016 MB / 1.17 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.471e-05/1.326, allocations: 45.98 kB / 1.446 GB, free: 8.973 MB / 1.17 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003902/1.33, allocations: 1.53 MB / 1.448 GB, free: 7.438 MB / 1.17 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.006914/1.337, allocations: 4.021 MB / 1.452 GB, free: 3.141 MB / 1.17 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00256/1.339, allocations: 0.9701 MB / 1.453 GB, free: 2.16 MB / 1.17 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001551/1.341, allocations: 0.6513 MB / 1.453 GB, free: 1.504 MB / 1.17 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001157/1.342, allocations: 0.6126 MB / 1.454 GB, free: 0.7812 MB / 1.17 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.004e-05/1.342, allocations: 43.22 kB / 1.454 GB, free: 0.7266 MB / 1.17 GB Notification: Performance of pre-optimization done (n=76): time 3.266e-06/1.342, allocations: 0 / 1.454 GB, free: 0.7266 MB / 1.17 GB Notification: Performance of matching and sorting (n=76): time 0.005111/1.347, allocations: 1.789 MB / 1.456 GB, free: 14.93 MB / 1.186 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.757e-05/1.347, allocations: 64 kB / 1.456 GB, free: 14.86 MB / 1.186 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001132/1.348, allocations: 0.8271 MB / 1.457 GB, free: 14.01 MB / 1.186 GB Notification: Performance of collectPreVariables (initialization): time 0.0001353/1.349, allocations: 37.7 kB / 1.457 GB, free: 13.96 MB / 1.186 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003423/1.349, allocations: 440.5 kB / 1.457 GB, free: 13.53 MB / 1.186 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002543/1.349, allocations: 268.1 kB / 1.457 GB, free: 13.26 MB / 1.186 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003105/1.35, allocations: 150.5 kB / 1.457 GB, free: 13.11 MB / 1.186 GB Notification: Performance of setup shared object (initialization): time 0.0001157/1.35, allocations: 338 kB / 1.458 GB, free: 12.77 MB / 1.186 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00144/1.351, allocations: 0.5238 MB / 1.458 GB, free: 12.24 MB / 1.186 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001541/1.353, allocations: 0.6434 MB / 1.459 GB, free: 11.57 MB / 1.186 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002891/1.356, allocations: 1.119 MB / 1.46 GB, free: 10.43 MB / 1.186 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.855e-06/1.356, allocations: 7.938 kB / 1.46 GB, free: 10.42 MB / 1.186 GB Notification: Performance of matching and sorting (n=84) (initialization): time 0.003527/1.359, allocations: 1.321 MB / 1.461 GB, free: 9.082 MB / 1.186 GB Notification: Performance of prepare postOptimizeDAE: time 6.389e-05/1.359, allocations: 39.72 kB / 1.461 GB, free: 9.039 MB / 1.186 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.935e-06/1.359, allocations: 3.938 kB / 1.461 GB, free: 9.035 MB / 1.186 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.426e-05/1.359, allocations: 4 kB / 1.461 GB, free: 9.031 MB / 1.186 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001552/1.361, allocations: 247.7 kB / 1.462 GB, free: 8.789 MB / 1.186 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007611/1.362, allocations: 1.188 MB / 1.463 GB, free: 7.555 MB / 1.186 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001261/1.363, allocations: 147.4 kB / 1.463 GB, free: 7.41 MB / 1.186 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.85e-05/1.363, allocations: 35.97 kB / 1.463 GB, free: 7.375 MB / 1.186 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001813/1.365, allocations: 0.7478 MB / 1.464 GB, free: 6.625 MB / 1.186 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.00152/1.366, allocations: 0.6395 MB / 1.464 GB, free: 5.957 MB / 1.186 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002754/1.369, allocations: 1.111 MB / 1.465 GB, free: 4.828 MB / 1.186 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.639e-06/1.369, allocations: 4 kB / 1.465 GB, free: 4.824 MB / 1.186 GB Notification: Performance of matching and sorting (n=84) (initialization_lambda0): time 0.003408/1.372, allocations: 1.31 MB / 1.467 GB, free: 3.5 MB / 1.186 GB Notification: Performance of prepare postOptimizeDAE: time 4.318e-05/1.373, allocations: 37.7 kB / 1.467 GB, free: 3.457 MB / 1.186 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.244e-06/1.373, allocations: 7.938 kB / 1.467 GB, free: 3.449 MB / 1.186 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.414e-06/1.373, allocations: 4 kB / 1.467 GB, free: 3.445 MB / 1.186 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001213/1.374, allocations: 219.8 kB / 1.467 GB, free: 3.23 MB / 1.186 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.411e-05/1.374, allocations: 11.92 kB / 1.467 GB, free: 3.219 MB / 1.186 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001117/1.375, allocations: 127.5 kB / 1.467 GB, free: 3.094 MB / 1.186 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.065e-05/1.375, allocations: 35.97 kB / 1.467 GB, free: 3.059 MB / 1.186 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.0003271/1.375, allocations: 228 kB / 1.467 GB, free: 2.828 MB / 1.186 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002039/1.376, allocations: 106.6 kB / 1.467 GB, free: 2.723 MB / 1.186 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003459/1.379, allocations: 1.348 MB / 1.469 GB, free: 1.363 MB / 1.186 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.027e-05/1.379, allocations: 11.98 kB / 1.469 GB, free: 1.352 MB / 1.186 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.484e-06/1.379, allocations: 3.938 kB / 1.469 GB, free: 1.348 MB / 1.186 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.498e-06/1.379, allocations: 3.984 kB / 1.469 GB, free: 1.344 MB / 1.186 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005788/1.385, allocations: 2.839 MB / 1.472 GB, free: 14.4 MB / 1.201 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.889e-06/1.385, allocations: 4 kB / 1.472 GB, free: 14.4 MB / 1.201 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001285/1.386, allocations: 227.8 kB / 1.472 GB, free: 14.18 MB / 1.201 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.489e-05/1.386, allocations: 7.938 kB / 1.472 GB, free: 14.17 MB / 1.201 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.083e-05/1.386, allocations: 23.98 kB / 1.472 GB, free: 14.14 MB / 1.201 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007007/1.387, allocations: 1.192 MB / 1.473 GB, free: 12.91 MB / 1.201 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.987e-05/1.387, allocations: 11.92 kB / 1.473 GB, free: 12.89 MB / 1.201 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003459/1.391, allocations: 1.443 MB / 1.474 GB, free: 11.39 MB / 1.201 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005338/1.391, allocations: 307.6 kB / 1.475 GB, free: 11.07 MB / 1.201 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001463/1.391, allocations: 16 kB / 1.475 GB, free: 11.05 MB / 1.201 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001099/1.392, allocations: 111.9 kB / 1.475 GB, free: 10.95 MB / 1.201 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001502/1.392, allocations: 56.38 kB / 1.475 GB, free: 10.89 MB / 1.201 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.463e-05/1.393, allocations: 35.97 kB / 1.475 GB, free: 10.86 MB / 1.201 GB Notification: Performance of sorting global known variables: time 0.0007654/1.393, allocations: 0.5739 MB / 1.475 GB, free: 10.27 MB / 1.201 GB Notification: Performance of sort global known variables: time 2.71e-07/1.393, allocations: 0 / 1.475 GB, free: 10.27 MB / 1.201 GB Notification: Performance of remove unused functions: time 0.001373/1.395, allocations: 0.5302 MB / 1.476 GB, free: 9.738 MB / 1.201 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.0006718/1.395, allocations: 296.3 kB / 1.476 GB, free: 9.457 MB / 1.201 GB Notification: Performance of simCode: created initialization part: time 0.005294/1.401, allocations: 2.006 MB / 1.478 GB, free: 7.426 MB / 1.201 GB Notification: Performance of simCode: created event and clocks part: time 8.325e-06/1.401, allocations: 0 / 1.478 GB, free: 7.426 MB / 1.201 GB Notification: Performance of simCode: created simulation system equations: time 0.001838/1.403, allocations: 0.6559 MB / 1.479 GB, free: 6.766 MB / 1.201 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002623/1.405, allocations: 0.4934 MB / 1.479 GB, free: 6.273 MB / 1.201 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004386/1.41, allocations: 2.118 MB / 1.481 GB, free: 4.074 MB / 1.201 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007015/1.41, allocations: 1.087 MB / 1.482 GB, free: 2.957 MB / 1.201 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004946/1.411, allocations: 107.4 kB / 1.483 GB, free: 2.852 MB / 1.201 GB Notification: Performance of SimCode: time 1.262e-06/1.411, allocations: 4 kB / 1.483 GB, free: 2.848 MB / 1.201 GB Notification: Performance of Templates: time 0.03496/1.446, allocations: 26.83 MB / 1.509 GB, free: 8.125 MB / 1.232 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=480 -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