Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger") translateModel(Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.336/1.336, allocations: 251.5 MB / 267.4 MB, free: 11.06 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009524/0.0009524, allocations: 177.4 kB / 326.5 MB, free: 2.691 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.426/1.426, allocations: 205 MB / 0.5766 GB, free: 21 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007465/0.0007465, allocations: 91.33 kB / 0.6804 GB, free: 14.72 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003181/0.0003185, allocations: 8.969 kB / 0.7938 GB, free: 136.6 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1781/0.1784, allocations: 105.4 MB / 0.8967 GB, free: 68.19 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger): time 0.6915/0.87, allocations: 326.6 MB / 1.216 GB, free: 1.332 MB / 0.7292 GB Notification: Performance of NFInst.instExpressions: time 0.03901/0.909, allocations: 30.23 MB / 1.245 GB, free: 3.027 MB / 0.7605 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004775/0.9138, allocations: 87.44 kB / 1.245 GB, free: 2.941 MB / 0.7605 GB Notification: Performance of NFTyping.typeComponents: time 0.006252/0.9201, allocations: 1.784 MB / 1.247 GB, free: 1.148 MB / 0.7605 GB Notification: Performance of NFTyping.typeBindings: time 0.01418/0.9343, allocations: 5.056 MB / 1.252 GB, free: 12.07 MB / 0.7761 GB Notification: Performance of NFTyping.typeClassSections: time 0.009464/0.9438, allocations: 3.352 MB / 1.255 GB, free: 8.738 MB / 0.7761 GB Notification: Performance of NFFlatten.flatten: time 0.01331/0.9571, allocations: 9.856 MB / 1.265 GB, free: 14.86 MB / 0.7917 GB Notification: Performance of NFFlatten.resolveConnections: time 0.005175/0.9624, allocations: 2.354 MB / 1.267 GB, free: 12.45 MB / 0.7917 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01405/0.9765, allocations: 4.5 MB / 1.272 GB, free: 7.949 MB / 0.7917 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005752/0.9822, allocations: 2.504 MB / 1.274 GB, free: 5.445 MB / 0.7917 GB Notification: Performance of NFPackage.collectConstants: time 0.001312/0.9836, allocations: 132 kB / 1.274 GB, free: 5.316 MB / 0.7917 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01201/0.9956, allocations: 5.584 MB / 1.28 GB, free: 15.72 MB / 0.8073 GB Notification: Performance of NFScalarize.scalarize: time 0.002325/0.998, allocations: 0.9109 MB / 1.281 GB, free: 14.8 MB / 0.8073 GB Notification: Performance of NFVerifyModel.verify: time 0.005208/1.003, allocations: 1.539 MB / 1.282 GB, free: 13.26 MB / 0.8073 GB Notification: Performance of NFConvertDAE.convert: time 0.008399/1.012, allocations: 4.173 MB / 1.286 GB, free: 9.078 MB / 0.8073 GB Notification: Performance of FrontEnd - DAE generated: time 7.444e-06/1.012, allocations: 4 kB / 1.286 GB, free: 9.074 MB / 0.8073 GB Notification: Performance of FrontEnd: time 2.925e-06/1.012, allocations: 0 / 1.286 GB, free: 9.074 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 0.0001832/1.012, allocations: 0 / 1.286 GB, free: 9.074 MB / 0.8073 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 544 * Number of variables: 544 Notification: Performance of Generate backend data structure: time 0.007609/1.02, allocations: 3.026 MB / 1.289 GB, free: 5.969 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.961e-05/1.02, allocations: 8.031 kB / 1.289 GB, free: 5.961 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009467/1.029, allocations: 1.577 MB / 1.291 GB, free: 4.379 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004456/1.034, allocations: 1.971 MB / 1.293 GB, free: 2.355 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001349/1.035, allocations: 435.9 kB / 1.293 GB, free: 1.926 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008585/1.036, allocations: 220 kB / 1.293 GB, free: 1.711 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008853/1.045, allocations: 3.137 MB / 1.296 GB, free: 14.43 MB / 0.823 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.436e-05/1.045, allocations: 7.938 kB / 1.296 GB, free: 14.42 MB / 0.823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004765/1.045, allocations: 99.92 kB / 1.296 GB, free: 14.32 MB / 0.823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001151/1.045, allocations: 88.06 kB / 1.296 GB, free: 14.23 MB / 0.823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007873/1.053, allocations: 3.225 MB / 1.3 GB, free: 10.99 MB / 0.823 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.02439/1.078, allocations: 14.3 MB / 1.314 GB, free: 11.58 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004049/1.082, allocations: 1.685 MB / 1.315 GB, free: 9.895 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001692/1.084, allocations: 0.7891 MB / 1.316 GB, free: 9.098 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006458/1.084, allocations: 344.2 kB / 1.316 GB, free: 8.707 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.349e-05/1.084, allocations: 51.56 kB / 1.316 GB, free: 8.648 MB / 0.8386 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001346/1.086, allocations: 198.1 kB / 1.316 GB, free: 8.453 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=110): time 6.883e-06/1.086, allocations: 0 / 1.316 GB, free: 8.453 MB / 0.8386 GB Notification: Performance of matching and sorting (n=110): time 0.005777/1.091, allocations: 2.414 MB / 1.319 GB, free: 6.031 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.984e-05/1.091, allocations: 60.41 kB / 1.319 GB, free: 5.961 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004372/1.096, allocations: 2.534 MB / 1.321 GB, free: 3.406 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 0.0002707/1.096, allocations: 53.7 kB / 1.321 GB, free: 3.348 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.001019/1.097, allocations: 1.248 MB / 1.323 GB, free: 2.082 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004163/1.098, allocations: 390.5 kB / 1.323 GB, free: 1.695 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002922/1.098, allocations: 141.6 kB / 1.323 GB, free: 1.551 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 9.039e-05/1.098, allocations: 305.1 kB / 1.323 GB, free: 1.25 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002621/1.101, allocations: 0.9954 MB / 1.324 GB, free: 260 kB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003078/1.104, allocations: 1.587 MB / 1.326 GB, free: 14.41 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00467/1.108, allocations: 2.35 MB / 1.328 GB, free: 11.85 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.515e-05/1.108, allocations: 4 kB / 1.328 GB, free: 11.85 MB / 0.8542 GB Notification: Performance of matching and sorting (n=216) (initialization): time 0.006583/1.115, allocations: 2.903 MB / 1.331 GB, free: 8.922 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003884/1.115, allocations: 0.5728 MB / 1.332 GB, free: 8.133 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.113e-05/1.115, allocations: 12 kB / 1.332 GB, free: 8.121 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.27e-05/1.116, allocations: 27.94 kB / 1.332 GB, free: 8.094 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002858/1.118, allocations: 0.589 MB / 1.332 GB, free: 7.504 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001306/1.12, allocations: 2.391 MB / 1.335 GB, free: 5.02 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003528/1.123, allocations: 443.5 kB / 1.335 GB, free: 4.586 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002242/1.124, allocations: 95.95 kB / 1.335 GB, free: 4.492 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 9.358e-06/1.124, allocations: 4 kB / 1.335 GB, free: 4.488 MB / 0.8542 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005924/1.129, allocations: 2.654 MB / 1.338 GB, free: 1.824 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.033e-05/1.13, allocations: 15.94 kB / 1.338 GB, free: 1.809 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.427e-05/1.13, allocations: 27.94 kB / 1.338 GB, free: 1.781 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002414/1.132, allocations: 0.5466 MB / 1.338 GB, free: 1.234 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.349e-05/1.132, allocations: 35.86 kB / 1.338 GB, free: 1.199 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003099/1.135, allocations: 371.4 kB / 1.339 GB, free: 0.8359 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001713/1.135, allocations: 95.95 kB / 1.339 GB, free: 0.7422 MB / 0.8542 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 65 * Number of states: 0 () * Number of discrete variables: 4 (masExcRev.i2_w,masExcRev.i1_w,masExcFor.i2_w,masExcFor.i1_w) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (214): * Single equations (assignments): 208 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 4 * 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): 4 systems {1, 1, 1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001333/1.137, allocations: 0.6255 MB / 1.339 GB, free: 108 kB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005376/1.137, allocations: 261 kB / 1.34 GB, free: 15.84 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004066/1.141, allocations: 1.89 MB / 1.341 GB, free: 13.94 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.687e-06/1.141, allocations: 8 kB / 1.341 GB, free: 13.93 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.59e-06/1.141, allocations: 0 / 1.341 GB, free: 13.93 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.003e-05/1.141, allocations: 7.984 kB / 1.341 GB, free: 13.93 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007606/1.149, allocations: 4.538 MB / 1.346 GB, free: 9.246 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.926e-06/1.149, allocations: 8.75 kB / 1.346 GB, free: 9.238 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001601/1.151, allocations: 315.6 kB / 1.346 GB, free: 8.93 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.095e-05/1.151, allocations: 12 kB / 1.346 GB, free: 8.918 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.052e-05/1.151, allocations: 27.98 kB / 1.346 GB, free: 8.891 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001081/1.152, allocations: 2.379 MB / 1.349 GB, free: 6.418 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.821e-06/1.152, allocations: 8 kB / 1.349 GB, free: 6.41 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00376/1.156, allocations: 2.006 MB / 1.351 GB, free: 4.312 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001022/1.157, allocations: 0.5407 MB / 1.351 GB, free: 3.75 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003108/1.157, allocations: 27.94 kB / 1.351 GB, free: 3.723 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002348/1.159, allocations: 300.7 kB / 1.351 GB, free: 3.434 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001269/1.159, allocations: 80.78 kB / 1.351 GB, free: 3.355 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00014/1.16, allocations: 67.88 kB / 1.352 GB, free: 3.289 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 0.002787/1.162, allocations: 1.758 MB / 1.353 GB, free: 1.527 MB / 0.8698 GB Notification: Performance of sort global known variables: time 1.8e-07/1.162, allocations: 0 / 1.353 GB, free: 1.527 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.003571/1.166, allocations: 1.306 MB / 1.355 GB, free: 224 kB / 0.8698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * 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 (110): * Single equations (assignments): 106 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 4 * 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): 4 systems {1, 1, 1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0007644/1.167, allocations: 373.3 kB / 1.355 GB, free: 15.86 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.008464/1.175, allocations: 3.71 MB / 1.359 GB, free: 12.11 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 1.062e-05/1.175, allocations: 4 kB / 1.359 GB, free: 12.11 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.001898/1.177, allocations: 0.8309 MB / 1.359 GB, free: 11.27 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007985/1.185, allocations: 1.316 MB / 1.361 GB, free: 9.969 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008029/1.193, allocations: 5.268 MB / 1.366 GB, free: 4.586 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00124/1.194, allocations: 1.677 MB / 1.367 GB, free: 2.875 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001097/1.196, allocations: 243.3 kB / 1.368 GB, free: 2.637 MB / 0.8855 GB Notification: Performance of SimCode: time 9.12e-07/1.196, allocations: 0 / 1.368 GB, free: 2.637 MB / 0.8855 GB Notification: Performance of Templates: time 0.4193/1.615, allocations: 84.69 MB / 1.45 GB, free: 339.3 MB / 0.9167 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.pipe 2>&1)