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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.0009846/0.0009846, allocations: 91.84 kB / 15.06 MB, free: 1.098 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.001025/0.001025, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.367/1.367, allocations: 223.3 MB / 240 MB, free: 5.426 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.754/2.754, allocations: 462.6 MB / 0.736 GB, free: 15.75 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0004465/0.0004468, allocations: 9.656 kB / 0.9021 GB, free: 36.56 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2692/0.2697, allocations: 159.6 MB / 1.058 GB, free: 5.32 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.MassExchangers.Examples.ConstantEffectiveness): time 0.1882/0.4579, allocations: 195.2 MB / 1.249 GB, free: 1.594 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.5754/1.033, allocations: 6.612 MB / 1.255 GB, free: 6.824 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001385/1.035, allocations: 42.44 kB / 1.255 GB, free: 6.82 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.001412/1.036, allocations: 0.4911 MB / 1.256 GB, free: 6.816 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.004671/1.041, allocations: 1.794 MB / 1.257 GB, free: 6.742 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.002711/1.044, allocations: 0.8988 MB / 1.258 GB, free: 6.711 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.003786/1.047, allocations: 3.206 MB / 1.261 GB, free: 6.707 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001389/1.049, allocations: 0.7943 MB / 1.262 GB, free: 6.617 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003379/1.052, allocations: 1.527 MB / 1.264 GB, free: 6.598 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001402/1.054, allocations: 0.8725 MB / 1.264 GB, free: 6.59 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.0001366/1.054, allocations: 43.97 kB / 1.265 GB, free: 6.59 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00348/1.057, allocations: 1.542 MB / 1.266 GB, free: 6.566 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0004682/1.058, allocations: 344.3 kB / 1.266 GB, free: 6.566 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.0003666/1.058, allocations: 271.1 kB / 1.267 GB, free: 6.535 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.002581/1.061, allocations: 1.702 MB / 1.268 GB, free: 6.402 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 5.491e-06/1.061, allocations: 4 kB / 1.268 GB, free: 6.398 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.824e-06/1.061, allocations: 2.703 kB / 1.268 GB, free: 6.398 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 2.743e-05/1.061, allocations: 0 / 1.268 GB, free: 6.398 MB / 0.9981 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.004765/1.065, allocations: 1.609 MB / 1.27 GB, free: 21.52 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 4.014e-05/1.066, allocations: 12.44 kB / 1.27 GB, free: 21.51 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003298/1.069, allocations: 0.584 MB / 1.27 GB, free: 21.42 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001915/1.071, allocations: 0.9282 MB / 1.271 GB, free: 21.11 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006012/1.071, allocations: 193.5 kB / 1.272 GB, free: 21.09 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001676/1.072, allocations: 91.22 kB / 1.272 GB, free: 21.09 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003014/1.075, allocations: 1.263 MB / 1.273 GB, free: 21.02 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.988e-05/1.075, allocations: 0 / 1.273 GB, free: 21.02 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001075/1.075, allocations: 38.58 kB / 1.273 GB, free: 21.02 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.827e-05/1.075, allocations: 47.38 kB / 1.273 GB, free: 21.02 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004603/1.079, allocations: 1.611 MB / 1.275 GB, free: 20.98 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.006376/1.086, allocations: 4.083 MB / 1.278 GB, free: 19.37 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002342/1.088, allocations: 1.048 MB / 1.28 GB, free: 19.31 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001456/1.09, allocations: 0.7006 MB / 1.28 GB, free: 19.28 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001042/1.091, allocations: 0.6371 MB / 1.281 GB, free: 18.71 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.986e-05/1.091, allocations: 41.69 kB / 1.281 GB, free: 18.67 MB / 1.014 GB Notification: Performance of pre-optimization done (n=76): time 2.785e-06/1.091, allocations: 0 / 1.281 GB, free: 18.67 MB / 1.014 GB Notification: Performance of matching and sorting (n=76): time 0.004632/1.095, allocations: 1.914 MB / 1.283 GB, free: 18.54 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.856e-05/1.095, allocations: 63.72 kB / 1.283 GB, free: 18.47 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001021/1.096, allocations: 0.8146 MB / 1.284 GB, free: 18.32 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 0.0001099/1.097, allocations: 40.8 kB / 1.284 GB, free: 18.29 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003021/1.097, allocations: 447.3 kB / 1.284 GB, free: 18.12 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001958/1.097, allocations: 260 kB / 1.284 GB, free: 17.95 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.966e-05/1.097, allocations: 17.72 kB / 1.284 GB, free: 17.95 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.000103/1.097, allocations: 330.1 kB / 1.285 GB, free: 17.64 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0013/1.099, allocations: 0.5607 MB / 1.285 GB, free: 17.62 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001369/1.1, allocations: 0.687 MB / 1.286 GB, free: 17.52 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001328/1.101, allocations: 0.609 MB / 1.286 GB, free: 17.46 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.566e-06/1.101, allocations: 1.344 kB / 1.286 GB, free: 17.46 MB / 1.014 GB Notification: Performance of matching and sorting (n=84) (initialization): time 0.003091/1.104, allocations: 1.403 MB / 1.288 GB, free: 17.31 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 9.046e-05/1.105, allocations: 152.2 kB / 1.288 GB, free: 17.16 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.655e-06/1.105, allocations: 1.031 kB / 1.288 GB, free: 17.16 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.611e-05/1.105, allocations: 4.438 kB / 1.288 GB, free: 17.16 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001475/1.106, allocations: 283.7 kB / 1.288 GB, free: 17.14 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006066/1.107, allocations: 1.192 MB / 1.289 GB, free: 15.97 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00127/1.108, allocations: 192.2 kB / 1.29 GB, free: 15.93 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.501e-05/1.108, allocations: 34.62 kB / 1.29 GB, free: 15.93 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 8.125e-06/1.108, allocations: 4.5 kB / 1.29 GB, free: 15.93 MB / 1.014 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002903/1.111, allocations: 1.303 MB / 1.291 GB, free: 15.85 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.188e-06/1.111, allocations: 1.312 kB / 1.291 GB, free: 15.85 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.454e-06/1.111, allocations: 3.719 kB / 1.291 GB, free: 15.85 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001141/1.112, allocations: 248.7 kB / 1.291 GB, free: 15.84 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.774e-06/1.112, allocations: 8.781 kB / 1.291 GB, free: 15.84 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001165/1.113, allocations: 199.3 kB / 1.291 GB, free: 15.79 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.497e-05/1.113, allocations: 34.61 kB / 1.291 GB, free: 15.79 MB / 1.014 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.i1_w,hex.i2_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 (linear and non-linear blocks): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006076/1.114, allocations: 368.5 kB / 1.292 GB, free: 15.6 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001816/1.114, allocations: 104.9 kB / 1.292 GB, free: 15.54 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003196/1.117, allocations: 1.436 MB / 1.293 GB, free: 15.43 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.558e-06/1.117, allocations: 11.84 kB / 1.293 GB, free: 15.43 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.932e-06/1.117, allocations: 0 / 1.293 GB, free: 15.43 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.538e-06/1.117, allocations: 3.188 kB / 1.293 GB, free: 15.43 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004969/1.122, allocations: 2.921 MB / 1.296 GB, free: 14.93 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.175e-06/1.122, allocations: 10.39 kB / 1.296 GB, free: 14.93 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00121/1.124, allocations: 253.6 kB / 1.296 GB, free: 14.91 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.12e-05/1.124, allocations: 7.422 kB / 1.296 GB, free: 14.91 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.73e-05/1.124, allocations: 32.69 kB / 1.296 GB, free: 14.91 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005225/1.124, allocations: 1.19 MB / 1.298 GB, free: 13.74 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.62e-06/1.124, allocations: 7.344 kB / 1.298 GB, free: 13.74 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002978/1.127, allocations: 1.526 MB / 1.299 GB, free: 13.38 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000573/1.128, allocations: 312.4 kB / 1.299 GB, free: 13.22 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001589/1.128, allocations: 22.73 kB / 1.299 GB, free: 13.22 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001163/1.129, allocations: 167.4 kB / 1.3 GB, free: 13.2 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001261/1.129, allocations: 62.33 kB / 1.3 GB, free: 13.2 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.96e-05/1.129, allocations: 37.59 kB / 1.3 GB, free: 13.2 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.000712/1.13, allocations: 0.5593 MB / 1.3 GB, free: 13.09 MB / 1.014 GB Notification: Performance of sort global known variables: time 3e-07/1.13, allocations: 0 / 1.3 GB, free: 13.09 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.00146/1.132, allocations: 0.5284 MB / 1.301 GB, free: 13.03 MB / 1.014 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 (linear and non-linear blocks): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005606/1.132, allocations: 269.6 kB / 1.301 GB, free: 12.9 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.004546/1.137, allocations: 2.13 MB / 1.303 GB, free: 12.71 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 5.781e-06/1.137, allocations: 64 / 1.303 GB, free: 12.71 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.001486/1.138, allocations: 0.7065 MB / 1.304 GB, free: 12.68 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00261/1.141, allocations: 0.5288 MB / 1.304 GB, free: 12.62 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003922/1.145, allocations: 2.475 MB / 1.307 GB, free: 11.5 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006056/1.145, allocations: 1.1 MB / 1.308 GB, free: 10.77 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 0.001727/1.147, allocations: 393.7 kB / 1.308 GB, free: 10.69 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003198/1.148, allocations: 85.42 kB / 1.308 GB, free: 10.68 MB / 1.014 GB Notification: Performance of SimCode: time 5.51e-07/1.148, allocations: 0 / 1.308 GB, free: 10.68 MB / 1.014 GB Notification: Performance of Templates: time 0.02968/1.177, allocations: 19.63 MB / 1.327 GB, free: 5.285 MB / 1.014 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.MassExchangers.Examples.ConstantEffectiveness.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches