Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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 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.Interfaces.Examples.ReverseFlowMassExchanger,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger") translateModel(Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001517/0.001517, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001717/0.001717, allocations: 193.6 kB / 16.53 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.503/1.503, allocations: 205.1 MB / 222.4 MB, free: 4.574 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.683/1.683, allocations: 292.3 MB / 0.5488 GB, free: 12.81 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001466/0.001466, allocations: 74.58 kB / 0.6715 GB, free: 26.11 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2598/0.2613, allocations: 114.5 MB / 0.7834 GB, free: 13.44 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger): time 0.7578/1.019, allocations: 328.4 MB / 1.104 GB, free: 14.83 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.03712/1.056, allocations: 29.85 MB / 1.133 GB, free: 0.8984 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0042/1.06, allocations: 99.44 kB / 1.133 GB, free: 0.8008 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.005831/1.066, allocations: 2.093 MB / 1.135 GB, free: 14.69 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.01339/1.08, allocations: 4.946 MB / 1.14 GB, free: 9.73 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.00911/1.089, allocations: 3.629 MB / 1.144 GB, free: 6.121 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.009906/1.099, allocations: 6.912 MB / 1.15 GB, free: 15.18 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004443/1.103, allocations: 2.857 MB / 1.153 GB, free: 12.27 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01309/1.116, allocations: 5.266 MB / 1.158 GB, free: 7.008 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00456/1.121, allocations: 2.405 MB / 1.161 GB, free: 4.609 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 0.0009442/1.122, allocations: 296 kB / 1.161 GB, free: 4.32 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01114/1.133, allocations: 4.813 MB / 1.166 GB, free: 15.5 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 0.002384/1.136, allocations: 1.071 MB / 1.167 GB, free: 14.42 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 0.003314/1.139, allocations: 1.742 MB / 1.169 GB, free: 12.67 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.01157/1.15, allocations: 5.703 MB / 1.174 GB, free: 6.957 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/1.15, allocations: 0 / 1.174 GB, free: 6.957 MB / 0.8887 GB Notification: Performance of FrontEnd: time 9.52e-07/1.15, allocations: 0 / 1.174 GB, free: 6.957 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 7.301e-05/1.151, allocations: 0 / 1.174 GB, free: 6.957 MB / 0.8887 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 536 * Number of variables: 536 Notification: Performance of Generate backend data structure: time 0.007482/1.158, allocations: 3.707 MB / 1.178 GB, free: 3.168 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.025e-05/1.158, allocations: 12.03 kB / 1.178 GB, free: 3.156 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01386/1.172, allocations: 1.467 MB / 1.179 GB, free: 1.684 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006887/1.179, allocations: 1.972 MB / 1.181 GB, free: 15.63 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00197/1.181, allocations: 395.7 kB / 1.181 GB, free: 15.24 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009014/1.182, allocations: 220 kB / 1.182 GB, free: 15.03 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01131/1.193, allocations: 3.07 MB / 1.185 GB, free: 11.82 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.853e-05/1.193, allocations: 0 / 1.185 GB, free: 11.82 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005092/1.194, allocations: 95.98 kB / 1.185 GB, free: 11.73 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001692/1.194, allocations: 92 kB / 1.185 GB, free: 11.63 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0148/1.209, allocations: 3.142 MB / 1.188 GB, free: 8.473 MB / 0.9044 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.04259/1.251, allocations: 14.16 MB / 1.202 GB, free: 9.207 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007861/1.259, allocations: 1.661 MB / 1.203 GB, free: 7.539 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003366/1.263, allocations: 0.7794 MB / 1.204 GB, free: 6.758 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001052/1.264, allocations: 328.2 kB / 1.204 GB, free: 6.383 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.457e-05/1.264, allocations: 47.56 kB / 1.204 GB, free: 6.328 MB / 0.92 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001937/1.266, allocations: 210 kB / 1.205 GB, free: 6.121 MB / 0.92 GB Notification: Performance of pre-optimization done (n=110): time 5.75e-06/1.266, allocations: 0 / 1.205 GB, free: 6.121 MB / 0.92 GB Notification: Performance of matching and sorting (n=110): time 0.01163/1.278, allocations: 2.348 MB / 1.207 GB, free: 3.762 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.207e-05/1.278, allocations: 72.33 kB / 1.207 GB, free: 3.68 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007498/1.285, allocations: 2.537 MB / 1.21 GB, free: 1.125 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 0.0003659/1.286, allocations: 57.7 kB / 1.21 GB, free: 1.062 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.001096/1.287, allocations: 1.261 MB / 1.211 GB, free: 15.78 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 0.000459/1.287, allocations: 398.4 kB / 1.211 GB, free: 15.39 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008264/1.288, allocations: 391 kB / 1.212 GB, free: 15 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 9.148e-05/1.288, allocations: 309.1 kB / 1.212 GB, free: 14.7 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002956/1.291, allocations: 0.9728 MB / 1.213 GB, free: 13.72 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003552/1.295, allocations: 1.61 MB / 1.214 GB, free: 11.84 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005225/1.3, allocations: 2.276 MB / 1.217 GB, free: 9.355 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.488e-05/1.3, allocations: 4 kB / 1.217 GB, free: 9.352 MB / 0.9356 GB Notification: Performance of matching and sorting (n=216) (initialization): time 0.007575/1.308, allocations: 2.824 MB / 1.219 GB, free: 6.504 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 7.403e-05/1.308, allocations: 67.39 kB / 1.219 GB, free: 6.426 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.549e-05/1.308, allocations: 19.94 kB / 1.219 GB, free: 6.406 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.387e-05/1.308, allocations: 20 kB / 1.219 GB, free: 6.387 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003133/1.311, allocations: 0.5736 MB / 1.22 GB, free: 5.812 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0014/1.312, allocations: 2.387 MB / 1.222 GB, free: 3.332 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003638/1.316, allocations: 316 kB / 1.223 GB, free: 3.023 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002873/1.316, allocations: 91.95 kB / 1.223 GB, free: 2.934 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.003789/1.32, allocations: 1.41 MB / 1.224 GB, free: 1.52 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.00338/1.323, allocations: 1.614 MB / 1.226 GB, free: 15.64 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.005195/1.329, allocations: 2.262 MB / 1.228 GB, free: 13.18 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.832e-05/1.329, allocations: 7.938 kB / 1.228 GB, free: 13.17 MB / 0.9512 GB Notification: Performance of matching and sorting (n=216) (initialization_lambda0): time 0.007563/1.336, allocations: 2.816 MB / 1.231 GB, free: 10.33 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 6.906e-05/1.336, allocations: 71.39 kB / 1.231 GB, free: 10.25 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.519e-05/1.336, allocations: 16 kB / 1.231 GB, free: 10.23 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.795e-05/1.336, allocations: 20 kB / 1.231 GB, free: 10.21 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002666/1.339, allocations: 0.5192 MB / 1.231 GB, free: 9.691 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.973e-05/1.339, allocations: 31.86 kB / 1.231 GB, free: 9.66 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00358/1.343, allocations: 324.5 kB / 1.232 GB, free: 9.344 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002328/1.343, allocations: 95.95 kB / 1.232 GB, free: 9.25 MB / 0.9512 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 61 * 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.0005312/1.344, allocations: 295.7 kB / 1.232 GB, free: 8.953 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006098/1.344, allocations: 264.8 kB / 1.232 GB, free: 8.691 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004723/1.349, allocations: 1.839 MB / 1.234 GB, free: 6.836 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.603e-05/1.349, allocations: 15.94 kB / 1.234 GB, free: 6.82 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.011e-06/1.349, allocations: 0 / 1.234 GB, free: 6.82 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.091e-05/1.349, allocations: 3.984 kB / 1.234 GB, free: 6.816 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009125/1.358, allocations: 4.489 MB / 1.238 GB, free: 2.188 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.889e-06/1.358, allocations: 4 kB / 1.238 GB, free: 2.184 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001737/1.36, allocations: 320 kB / 1.239 GB, free: 1.871 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.076e-05/1.36, allocations: 12 kB / 1.239 GB, free: 1.859 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.279e-05/1.36, allocations: 31.92 kB / 1.239 GB, free: 1.828 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001159/1.361, allocations: 2.367 MB / 1.241 GB, free: 15.37 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.512e-05/1.361, allocations: 7.938 kB / 1.241 GB, free: 15.36 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004396/1.366, allocations: 1.979 MB / 1.243 GB, free: 13.29 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001161/1.367, allocations: 0.5251 MB / 1.244 GB, free: 12.74 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005045/1.367, allocations: 27.98 kB / 1.244 GB, free: 12.71 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002435/1.37, allocations: 179.8 kB / 1.244 GB, free: 12.54 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001494/1.37, allocations: 88.72 kB / 1.244 GB, free: 12.45 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001573/1.37, allocations: 59.95 kB / 1.244 GB, free: 12.39 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.003089/1.373, allocations: 1.755 MB / 1.246 GB, free: 10.63 MB / 0.9669 GB Notification: Performance of sort global known variables: time 2.21e-07/1.373, allocations: 0 / 1.246 GB, free: 10.63 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.003321/1.377, allocations: 1.283 MB / 1.247 GB, free: 9.344 MB / 0.9669 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.0008139/1.377, allocations: 368.7 kB / 1.247 GB, free: 8.992 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.01034/1.388, allocations: 3.803 MB / 1.251 GB, free: 5.148 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 1.47e-05/1.388, allocations: 0 / 1.251 GB, free: 5.148 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.002149/1.39, allocations: 0.8082 MB / 1.252 GB, free: 4.344 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005969/1.396, allocations: 1.2 MB / 1.253 GB, free: 3.172 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007381/1.403, allocations: 4.322 MB / 1.257 GB, free: 14.74 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001316/1.405, allocations: 1.693 MB / 1.259 GB, free: 13 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.00367/1.408, allocations: 0.7855 MB / 1.26 GB, free: 12.21 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006246/1.409, allocations: 195.4 kB / 1.26 GB, free: 12.02 MB / 0.9825 GB Notification: Performance of SimCode: time 9.32e-07/1.409, allocations: 0 / 1.26 GB, free: 12.02 MB / 0.9825 GB Notification: Performance of Templates: time 0.4263/1.835, allocations: 47.67 MB / 1.306 GB, free: 387.2 MB / 0.9981 GB make -j1 -f Buildings_8_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.makefile (rm -f Buildings_8_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.pipe ; mkfifo Buildings_8_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.pipe >> ../files/Buildings_8_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.sim & ./Buildings_8_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.pipe 2>&1)