Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.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(IBPSA.Fluid.Interfaces.Examples.ReverseFlowMassExchanger,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Fluid.Interfaces.Examples.ReverseFlowMassExchanger") translateModel(IBPSA.Fluid.Interfaces.Examples.ReverseFlowMassExchanger,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.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.001639/0.001639, allocations: 101.2 kB / 16.4 MB, free: 6.445 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.00168/0.00168, allocations: 196 kB / 17.34 MB, free: 5.719 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.372/1.372, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.6984/0.6984, allocations: 115.3 MB / 406.5 MB, free: 6.164 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001179/0.001179, allocations: 71.98 kB / 0.5577 GB, free: 32.41 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1631/0.1643, allocations: 76.17 MB / 0.6321 GB, free: 4.52 MB / 478.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.Interfaces.Examples.ReverseFlowMassExchanger): time 0.8475/1.012, allocations: 328.4 MB / 0.9528 GB, free: 3.891 MB / 0.7012 GB Notification: Performance of NFInst.instExpressions: time 0.03915/1.051, allocations: 30.08 MB / 0.9821 GB, free: 5.727 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004576/1.056, allocations: 95.44 kB / 0.9822 GB, free: 5.633 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.005883/1.062, allocations: 2.101 MB / 0.9843 GB, free: 3.52 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.01625/1.078, allocations: 4.974 MB / 0.9891 GB, free: 14.53 MB / 0.7481 GB Notification: Performance of NFTyping.typeClassSections: time 0.009795/1.088, allocations: 3.648 MB / 0.9927 GB, free: 10.9 MB / 0.7481 GB Notification: Performance of NFFlatten.flatten: time 0.012/1.1, allocations: 6.963 MB / 0.9995 GB, free: 3.922 MB / 0.7481 GB Notification: Performance of NFFlatten.resolveConnections: time 0.005885/1.106, allocations: 2.859 MB / 1.002 GB, free: 1.004 MB / 0.7481 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01445/1.12, allocations: 5.333 MB / 1.008 GB, free: 11.68 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005045/1.125, allocations: 2.437 MB / 1.01 GB, free: 9.246 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 0.001082/1.126, allocations: 299.9 kB / 1.01 GB, free: 8.953 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01118/1.138, allocations: 4.802 MB / 1.015 GB, free: 4.141 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 0.002091/1.14, allocations: 1.071 MB / 1.016 GB, free: 3.066 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 0.00379/1.143, allocations: 1.73 MB / 1.018 GB, free: 1.328 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.01257/1.156, allocations: 5.753 MB / 1.023 GB, free: 11.56 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 6.382e-06/1.156, allocations: 0 / 1.023 GB, free: 11.56 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.993e-06/1.156, allocations: 0 / 1.023 GB, free: 11.56 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 0.0001657/1.156, allocations: 0 / 1.023 GB, free: 11.56 MB / 0.7794 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.01124/1.168, allocations: 3.704 MB / 1.027 GB, free: 7.77 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 5.229e-05/1.168, allocations: 8.031 kB / 1.027 GB, free: 7.762 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01038/1.178, allocations: 1.464 MB / 1.028 GB, free: 6.293 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004755/1.183, allocations: 2.077 MB / 1.03 GB, free: 4.137 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001983/1.183, allocations: 168.1 kB / 1.03 GB, free: 3.969 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006685/1.184, allocations: 220 kB / 1.031 GB, free: 3.754 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007049/1.191, allocations: 3.035 MB / 1.034 GB, free: 0.582 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.299e-05/1.191, allocations: 7.984 kB / 1.034 GB, free: 0.5742 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003675/1.191, allocations: 88 kB / 1.034 GB, free: 500 kB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.81e-05/1.191, allocations: 88 kB / 1.034 GB, free: 408 kB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0074/1.199, allocations: 3.103 MB / 1.037 GB, free: 13.28 MB / 0.795 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.3279/1.527, allocations: 14 MB / 1.051 GB, free: 322.8 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004233/1.531, allocations: 1.655 MB / 1.052 GB, free: 322.8 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001739/1.533, allocations: 0.7765 MB / 1.053 GB, free: 322.7 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005756/1.533, allocations: 325.7 kB / 1.053 GB, free: 322.4 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.999e-05/1.533, allocations: 58.23 kB / 1.053 GB, free: 322.4 MB / 0.795 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00125/1.535, allocations: 197.5 kB / 1.053 GB, free: 322.3 MB / 0.795 GB Notification: Performance of pre-optimization done (n=110): time 4.499e-06/1.535, allocations: 0 / 1.053 GB, free: 322.3 MB / 0.795 GB Notification: Performance of matching and sorting (n=110): time 0.006136/1.541, allocations: 2.36 MB / 1.056 GB, free: 321.7 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.185e-05/1.541, allocations: 62.47 kB / 1.056 GB, free: 321.6 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004098/1.545, allocations: 2.512 MB / 1.058 GB, free: 320.7 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 0.0002553/1.545, allocations: 58.64 kB / 1.058 GB, free: 320.7 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009103/1.546, allocations: 1.267 MB / 1.06 GB, free: 319.8 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003726/1.546, allocations: 393.5 kB / 1.06 GB, free: 319.5 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008407/1.547, allocations: 380.8 kB / 1.06 GB, free: 319.3 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 4.514e-05/1.547, allocations: 307.6 kB / 1.061 GB, free: 319 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00274/1.55, allocations: 0.9467 MB / 1.062 GB, free: 318.7 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002837/1.553, allocations: 1.56 MB / 1.063 GB, free: 317.7 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004559/1.558, allocations: 2.232 MB / 1.065 GB, free: 316.5 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.199e-05/1.558, allocations: 6.25 kB / 1.065 GB, free: 316.5 MB / 0.795 GB Notification: Performance of matching and sorting (n=210) (initialization): time 0.006094/1.564, allocations: 2.748 MB / 1.068 GB, free: 315.6 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 5.28e-05/1.564, allocations: 70.06 kB / 1.068 GB, free: 315.5 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.071e-05/1.564, allocations: 13.53 kB / 1.068 GB, free: 315.5 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.06e-05/1.564, allocations: 20.97 kB / 1.068 GB, free: 315.5 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002747/1.567, allocations: 0.5524 MB / 1.069 GB, free: 315.5 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008256/1.567, allocations: 2.395 MB / 1.071 GB, free: 313.1 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003192/1.571, allocations: 279.5 kB / 1.071 GB, free: 313.1 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001906/1.571, allocations: 89.73 kB / 1.071 GB, free: 313.1 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002955/1.574, allocations: 1.384 MB / 1.073 GB, free: 312.5 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.002392/1.576, allocations: 1.56 MB / 1.074 GB, free: 311.5 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.003901/1.58, allocations: 2.224 MB / 1.076 GB, free: 310.3 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 8.306e-06/1.58, allocations: 3.969 kB / 1.076 GB, free: 310.3 MB / 0.795 GB Notification: Performance of matching and sorting (n=210) (initialization_lambda0): time 0.005859/1.586, allocations: 2.739 MB / 1.079 GB, free: 309.4 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 5.192e-05/1.586, allocations: 74.69 kB / 1.079 GB, free: 309.3 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.712e-05/1.586, allocations: 11.88 kB / 1.079 GB, free: 309.3 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.155e-05/1.586, allocations: 27.72 kB / 1.079 GB, free: 309.3 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00226/1.588, allocations: 0.4969 MB / 1.08 GB, free: 309.3 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.286e-05/1.588, allocations: 31.56 kB / 1.08 GB, free: 309.3 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003431/1.592, allocations: 290.3 kB / 1.08 GB, free: 309.2 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001649/1.592, allocations: 91.17 kB / 1.08 GB, free: 309.1 MB / 0.795 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * 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 (208): * Single equations (assignments): 202 * 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.0006561/1.593, allocations: 300 kB / 1.08 GB, free: 308.9 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006708/1.593, allocations: 258.8 kB / 1.08 GB, free: 308.8 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004002/1.597, allocations: 1.845 MB / 1.082 GB, free: 307.7 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.074e-05/1.597, allocations: 10.03 kB / 1.082 GB, free: 307.7 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.083e-06/1.597, allocations: 4 kB / 1.082 GB, free: 307.7 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.099e-05/1.597, allocations: 4.641 kB / 1.082 GB, free: 307.7 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008238/1.606, allocations: 4.499 MB / 1.087 GB, free: 304.9 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.372e-05/1.606, allocations: 6.438 kB / 1.087 GB, free: 304.9 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001583/1.607, allocations: 311.2 kB / 1.087 GB, free: 304.8 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.65e-05/1.607, allocations: 10.94 kB / 1.087 GB, free: 304.8 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.435e-05/1.607, allocations: 34.73 kB / 1.087 GB, free: 304.8 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001042/1.608, allocations: 2.366 MB / 1.089 GB, free: 302.4 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.751e-06/1.608, allocations: 3.438 kB / 1.089 GB, free: 302.4 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004152/1.613, allocations: 1.984 MB / 1.091 GB, free: 300.7 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001135/1.614, allocations: 0.5222 MB / 1.092 GB, free: 300.1 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004152/1.614, allocations: 35.84 kB / 1.092 GB, free: 300.1 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002175/1.616, allocations: 186.2 kB / 1.092 GB, free: 299.9 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001261/1.617, allocations: 76.78 kB / 1.092 GB, free: 299.8 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001359/1.617, allocations: 63.95 kB / 1.092 GB, free: 299.8 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.002444/1.619, allocations: 1.735 MB / 1.094 GB, free: 298 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.7e-07/1.619, allocations: 0 / 1.094 GB, free: 298 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.00289/1.622, allocations: 1.286 MB / 1.095 GB, free: 296.8 MB / 0.795 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.0006736/1.623, allocations: 370.5 kB / 1.095 GB, free: 296.4 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.007354/1.63, allocations: 3.55 MB / 1.099 GB, free: 292.9 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 7.314e-06/1.63, allocations: 4 kB / 1.099 GB, free: 292.9 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.001656/1.632, allocations: 0.8102 MB / 1.1 GB, free: 292 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005038/1.637, allocations: 1.203 MB / 1.101 GB, free: 290.9 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006023/1.643, allocations: 4.241 MB / 1.105 GB, free: 286.6 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008469/1.644, allocations: 1.694 MB / 1.107 GB, free: 284.8 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.00275/1.646, allocations: 0.7754 MB / 1.107 GB, free: 284.1 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005799/1.647, allocations: 195.4 kB / 1.108 GB, free: 283.9 MB / 0.795 GB Notification: Performance of SimCode: time 6.31e-07/1.647, allocations: 4 kB / 1.108 GB, free: 283.9 MB / 0.795 GB Notification: Performance of Templates: time 0.06001/1.707, allocations: 46.12 MB / 1.153 GB, free: 238.4 MB / 0.795 GB make -j1 -f IBPSA_latest_IBPSA.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.makefile (rm -f IBPSA_latest_IBPSA.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.pipe ; mkfifo IBPSA_latest_IBPSA.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.pipe >> ../files/IBPSA_latest_IBPSA.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.sim & ./IBPSA_latest_IBPSA.Fluid.Interfaces.Examples.ReverseFlowMassExchanger -abortSlowSimulation -alarm=480 -lv LOG_STATS > IBPSA_latest_IBPSA.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.pipe 2>&1)