Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.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/IDEAS 3.0.0/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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(IDEAS.Fluid.Interfaces.Examples.ReverseFlowMassExchanger,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Fluid.Interfaces.Examples.ReverseFlowMassExchanger") translateModel(IDEAS.Fluid.Interfaces.Examples.ReverseFlowMassExchanger,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.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.006058/0.006057, allocations: 99.73 kB / 15.73 MB, free: 6.043 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.001119/0.001119, allocations: 194.5 kB / 16.68 MB, free: 5.961 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.326/1.326, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7673/0.7673, allocations: 132.2 MB / 422.7 MB, free: 6.57 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001433/0.001433, allocations: 63.66 kB / 0.5814 GB, free: 23.64 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1594/0.1609, allocations: 80.2 MB / 0.6597 GB, free: 10.21 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Interfaces.Examples.ReverseFlowMassExchanger): time 0.7297/0.8906, allocations: 328.4 MB / 0.9804 GB, free: 12.99 MB / 0.7481 GB Notification: Performance of NFInst.instExpressions: time 0.04093/0.9315, allocations: 30.03 MB / 1.01 GB, free: 14.87 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.005183/0.9368, allocations: 99.44 kB / 1.01 GB, free: 14.77 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.006443/0.9432, allocations: 2.171 MB / 1.012 GB, free: 12.59 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.02053/0.9638, allocations: 5.159 MB / 1.017 GB, free: 7.414 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.01663/0.9805, allocations: 3.692 MB / 1.021 GB, free: 3.746 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.01747/0.998, allocations: 6.947 MB / 1.027 GB, free: 12.78 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0083/1.006, allocations: 2.867 MB / 1.03 GB, free: 9.852 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.02433/1.031, allocations: 5.453 MB / 1.035 GB, free: 4.406 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.008989/1.04, allocations: 2.413 MB / 1.038 GB, free: 2 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 0.001633/1.041, allocations: 296 kB / 1.038 GB, free: 1.711 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01804/1.059, allocations: 4.825 MB / 1.043 GB, free: 12.88 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.003155/1.063, allocations: 1.063 MB / 1.044 GB, free: 11.81 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.005146/1.068, allocations: 1.734 MB / 1.046 GB, free: 10.07 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.01679/1.085, allocations: 5.761 MB / 1.051 GB, free: 4.289 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 1.169e-05/1.085, allocations: 4 kB / 1.051 GB, free: 4.285 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.134e-06/1.085, allocations: 4 kB / 1.051 GB, free: 4.281 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 0.0001365/1.085, allocations: 4 kB / 1.051 GB, free: 4.277 MB / 0.8106 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.01384/1.099, allocations: 3.69 MB / 1.055 GB, free: 0.5039 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 5.748e-05/1.099, allocations: 12.03 kB / 1.055 GB, free: 0.4922 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3766/1.475, allocations: 1.462 MB / 1.056 GB, free: 319.1 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005702/1.481, allocations: 2.068 MB / 1.058 GB, free: 318.6 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002172/1.481, allocations: 177.2 kB / 1.058 GB, free: 318.6 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005113/1.482, allocations: 221.4 kB / 1.059 GB, free: 318.6 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00624/1.488, allocations: 3.035 MB / 1.062 GB, free: 317.4 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.659e-05/1.488, allocations: 6.125 kB / 1.062 GB, free: 317.4 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00024/1.488, allocations: 86.47 kB / 1.062 GB, free: 317.4 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001115/1.489, allocations: 90.53 kB / 1.062 GB, free: 317.4 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007495/1.496, allocations: 3.101 MB / 1.065 GB, free: 316.4 MB / 0.8106 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.0207/1.517, allocations: 14.03 MB / 1.079 GB, free: 306.5 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00386/1.521, allocations: 1.658 MB / 1.08 GB, free: 305.7 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001575/1.522, allocations: 0.769 MB / 1.081 GB, free: 305.3 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005353/1.523, allocations: 332.7 kB / 1.081 GB, free: 305 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.609e-05/1.523, allocations: 50.78 kB / 1.081 GB, free: 305 MB / 0.8106 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001294/1.524, allocations: 201.5 kB / 1.081 GB, free: 304.8 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=110): time 5.12e-06/1.524, allocations: 1 kB / 1.081 GB, free: 304.8 MB / 0.8106 GB Notification: Performance of matching and sorting (n=110): time 0.005554/1.53, allocations: 2.356 MB / 1.084 GB, free: 303.7 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.029e-05/1.53, allocations: 69.5 kB / 1.084 GB, free: 303.7 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003746/1.534, allocations: 2.516 MB / 1.086 GB, free: 302.3 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 0.0003053/1.534, allocations: 58.98 kB / 1.086 GB, free: 302.3 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007344/1.535, allocations: 1.269 MB / 1.088 GB, free: 301.2 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002829/1.535, allocations: 387.2 kB / 1.088 GB, free: 300.9 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006506/1.536, allocations: 388.8 kB / 1.088 GB, free: 300.6 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 4.357e-05/1.536, allocations: 301.1 kB / 1.089 GB, free: 300.3 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002213/1.538, allocations: 0.96 MB / 1.09 GB, free: 299.9 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002428/1.54, allocations: 1.585 MB / 1.091 GB, free: 298.7 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003688/1.544, allocations: 2.255 MB / 1.093 GB, free: 297.2 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.105e-05/1.544, allocations: 7.906 kB / 1.093 GB, free: 297.2 MB / 0.8106 GB Notification: Performance of matching and sorting (n=216) (initialization): time 0.005692/1.55, allocations: 2.782 MB / 1.096 GB, free: 295.8 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 5.989e-05/1.55, allocations: 75.23 kB / 1.096 GB, free: 295.7 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.894e-05/1.55, allocations: 11.81 kB / 1.096 GB, free: 295.7 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.506e-05/1.55, allocations: 23.72 kB / 1.096 GB, free: 295.7 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00265/1.553, allocations: 0.5582 MB / 1.097 GB, free: 295.6 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000805/1.553, allocations: 2.396 MB / 1.099 GB, free: 293.2 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003116/1.557, allocations: 281.4 kB / 1.099 GB, free: 293 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000176/1.557, allocations: 91.05 kB / 1.099 GB, free: 293 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002822/1.56, allocations: 1.397 MB / 1.101 GB, free: 292.3 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.002345/1.562, allocations: 1.58 MB / 1.102 GB, free: 291 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.003714/1.566, allocations: 2.242 MB / 1.104 GB, free: 289.1 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 8.105e-06/1.566, allocations: 4 kB / 1.104 GB, free: 289.1 MB / 0.8106 GB Notification: Performance of matching and sorting (n=216) (initialization_lambda0): time 0.00554/1.571, allocations: 2.773 MB / 1.107 GB, free: 286.3 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 4.514e-05/1.571, allocations: 75.39 kB / 1.107 GB, free: 286.2 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.279e-05/1.571, allocations: 16.75 kB / 1.107 GB, free: 286.2 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.584e-05/1.571, allocations: 20 kB / 1.107 GB, free: 286.2 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00221/1.574, allocations: 0.5148 MB / 1.108 GB, free: 285.7 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.547e-05/1.574, allocations: 31.92 kB / 1.108 GB, free: 285.6 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002997/1.577, allocations: 285.9 kB / 1.108 GB, free: 285.4 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001541/1.577, allocations: 99.78 kB / 1.108 GB, free: 285.3 MB / 0.8106 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.0004949/1.577, allocations: 306 kB / 1.108 GB, free: 285 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004428/1.578, allocations: 264.8 kB / 1.109 GB, free: 284.7 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003537/1.581, allocations: 1.843 MB / 1.111 GB, free: 282.8 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.061e-05/1.581, allocations: 14.44 kB / 1.111 GB, free: 282.8 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.571e-06/1.581, allocations: 0 / 1.111 GB, free: 282.8 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.797e-06/1.581, allocations: 6.797 kB / 1.111 GB, free: 282.8 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006809/1.588, allocations: 4.499 MB / 1.115 GB, free: 278.2 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.895e-06/1.588, allocations: 4 kB / 1.115 GB, free: 278.2 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001521/1.59, allocations: 310.1 kB / 1.115 GB, free: 277.9 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.303e-05/1.59, allocations: 8 kB / 1.115 GB, free: 277.9 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.705e-05/1.59, allocations: 31.98 kB / 1.115 GB, free: 277.9 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006997/1.59, allocations: 2.364 MB / 1.118 GB, free: 275.4 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.959e-06/1.59, allocations: 11.94 kB / 1.118 GB, free: 275.4 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003447/1.594, allocations: 1.979 MB / 1.12 GB, free: 273.3 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009552/1.595, allocations: 0.5211 MB / 1.12 GB, free: 272.8 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003381/1.595, allocations: 27.98 kB / 1.12 GB, free: 272.8 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00194/1.597, allocations: 174.6 kB / 1.12 GB, free: 272.6 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001296/1.597, allocations: 88.72 kB / 1.12 GB, free: 272.5 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001289/1.597, allocations: 59.95 kB / 1.12 GB, free: 272.4 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.002449/1.6, allocations: 1.727 MB / 1.122 GB, free: 270.7 MB / 0.8106 GB Notification: Performance of sort global known variables: time 4.71e-07/1.6, allocations: 0 / 1.122 GB, free: 270.7 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.002979/1.603, allocations: 1.29 MB / 1.123 GB, free: 269.4 MB / 0.8106 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.0006759/1.604, allocations: 387.7 kB / 1.124 GB, free: 269.1 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.00711/1.611, allocations: 3.591 MB / 1.127 GB, free: 265.5 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 6.302e-06/1.611, allocations: 4 kB / 1.127 GB, free: 265.5 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.001575/1.612, allocations: 0.8115 MB / 1.128 GB, free: 264.7 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004477/1.617, allocations: 1.19 MB / 1.129 GB, free: 263.6 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005686/1.623, allocations: 4.244 MB / 1.133 GB, free: 259.2 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008204/1.623, allocations: 1.697 MB / 1.135 GB, free: 257.5 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.002533/1.626, allocations: 0.7794 MB / 1.136 GB, free: 256.7 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005448/1.626, allocations: 199.4 kB / 1.136 GB, free: 256.5 MB / 0.8106 GB Notification: Performance of SimCode: time 5.11e-07/1.626, allocations: 0 / 1.136 GB, free: 256.5 MB / 0.8106 GB Notification: Performance of Templates: time 0.08041/1.707, allocations: 45.89 MB / 1.181 GB, free: 211.1 MB / 0.8106 GB make -j1 -f IDEAS_IDEAS.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.makefile (rm -f IDEAS_IDEAS.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.pipe ; mkfifo IDEAS_IDEAS.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.pipe ; head -c 1048576 < IDEAS_IDEAS.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.pipe >> ../files/IDEAS_IDEAS.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.sim & ./IDEAS_IDEAS.Fluid.Interfaces.Examples.ReverseFlowMassExchanger -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_IDEAS.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.pipe 2>&1)