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: "" <> buildModelFMU(IDEAS.Fluid.Interfaces.Examples.ReverseFlowMassExchanger,fileNamePrefix="IDEAS_IDEAS_Fluid_Interfaces_Examples_ReverseFlowMassExchanger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.Interfaces.Examples.ReverseFlowMassExchanger,fileNamePrefix="IDEAS_IDEAS_Fluid_Interfaces_Examples_ReverseFlowMassExchanger",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006481/0.006481, allocations: 99.81 kB / 15.73 MB, free: 6.492 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.00143/0.00143, allocations: 201.3 kB / 16.68 MB, free: 6.375 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.311/1.311, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7701/0.7701, allocations: 132.2 MB / 422.7 MB, free: 1.672 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001308/0.001308, allocations: 67.84 kB / 0.5809 GB, free: 8.023 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4021/0.4034, allocations: 80.21 MB / 0.6592 GB, free: 9.883 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Interfaces.Examples.ReverseFlowMassExchanger): time 0.7504/1.154, allocations: 328.4 MB / 0.9799 GB, free: 268 kB / 0.6856 GB Notification: Performance of NFInst.instExpressions: time 0.03412/1.188, allocations: 30.06 MB / 1.009 GB, free: 9.055 MB / 0.7012 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.005261/1.193, allocations: 100.9 kB / 1.009 GB, free: 9.055 MB / 0.7012 GB Notification: Performance of NFTyping.typeComponents: time 0.007289/1.201, allocations: 2.168 MB / 1.011 GB, free: 8.078 MB / 0.7012 GB Notification: Performance of NFTyping.typeBindings: time 0.0151/1.216, allocations: 5.15 MB / 1.017 GB, free: 5.809 MB / 0.7012 GB Notification: Performance of NFTyping.typeClassSections: time 0.009945/1.226, allocations: 3.708 MB / 1.02 GB, free: 2.914 MB / 0.7012 GB Notification: Performance of NFFlatten.flatten: time 0.011/1.237, allocations: 6.933 MB / 1.027 GB, free: 12.7 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004816/1.242, allocations: 2.867 MB / 1.03 GB, free: 9.832 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01425/1.256, allocations: 5.459 MB / 1.035 GB, free: 4.805 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005213/1.261, allocations: 2.421 MB / 1.037 GB, free: 2.582 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 0.00114/1.262, allocations: 296 kB / 1.038 GB, free: 2.293 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01054/1.273, allocations: 4.823 MB / 1.042 GB, free: 13.54 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.001892/1.275, allocations: 1.063 MB / 1.043 GB, free: 12.48 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.00328/1.278, allocations: 1.738 MB / 1.045 GB, free: 10.73 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.01138/1.29, allocations: 5.778 MB / 1.051 GB, free: 4.934 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 7.103e-06/1.29, allocations: 4 kB / 1.051 GB, free: 4.93 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.663e-06/1.29, allocations: 4 kB / 1.051 GB, free: 4.926 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 6.8e-05/1.29, allocations: 4 kB / 1.051 GB, free: 4.922 MB / 0.7325 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.007654/1.297, allocations: 3.799 MB / 1.054 GB, free: 1.031 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.535e-05/1.297, allocations: 12.03 kB / 1.054 GB, free: 1.02 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003474/1.298, allocations: 295.6 kB / 1.055 GB, free: 0.7188 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009939/1.308, allocations: 1.489 MB / 1.056 GB, free: 15.23 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004875/1.313, allocations: 2.083 MB / 1.058 GB, free: 13.07 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001661/1.313, allocations: 168.1 kB / 1.058 GB, free: 12.9 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004266/1.313, allocations: 224 kB / 1.059 GB, free: 12.68 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005992/1.319, allocations: 3.039 MB / 1.062 GB, free: 9.504 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.368e-05/1.319, allocations: 3.938 kB / 1.062 GB, free: 9.5 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002557/1.32, allocations: 95.98 kB / 1.062 GB, free: 9.406 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.757e-05/1.32, allocations: 88 kB / 1.062 GB, free: 9.316 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007186/1.327, allocations: 3.103 MB / 1.065 GB, free: 6.195 MB / 0.7481 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.02318/1.35, allocations: 14.05 MB / 1.079 GB, free: 7.043 MB / 0.7637 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004037/1.354, allocations: 1.658 MB / 1.08 GB, free: 5.379 MB / 0.7637 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001754/1.356, allocations: 0.7698 MB / 1.081 GB, free: 4.609 MB / 0.7637 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006547/1.357, allocations: 329.1 kB / 1.081 GB, free: 4.234 MB / 0.7637 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.785e-05/1.357, allocations: 47.5 kB / 1.081 GB, free: 4.176 MB / 0.7637 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001388/1.358, allocations: 210.6 kB / 1.081 GB, free: 3.969 MB / 0.7637 GB Notification: Performance of pre-optimization done (n=110): time 4.128e-06/1.358, allocations: 0 / 1.081 GB, free: 3.969 MB / 0.7637 GB Notification: Performance of matching and sorting (n=110): time 0.006185/1.364, allocations: 2.377 MB / 1.084 GB, free: 1.59 MB / 0.7637 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.269e-05/1.364, allocations: 64.41 kB / 1.084 GB, free: 1.516 MB / 0.7637 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004383/1.369, allocations: 2.513 MB / 1.086 GB, free: 14.98 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 0.00027/1.369, allocations: 57.7 kB / 1.086 GB, free: 14.92 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.001022/1.37, allocations: 1.291 MB / 1.088 GB, free: 13.62 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003884/1.37, allocations: 404.5 kB / 1.088 GB, free: 13.22 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006593/1.371, allocations: 399.2 kB / 1.088 GB, free: 12.82 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001099/1.371, allocations: 301.1 kB / 1.089 GB, free: 12.53 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002537/1.374, allocations: 0.965 MB / 1.09 GB, free: 11.56 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003044/1.377, allocations: 1.591 MB / 1.091 GB, free: 9.691 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004805/1.382, allocations: 2.265 MB / 1.093 GB, free: 7.223 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.395e-05/1.382, allocations: 4 kB / 1.093 GB, free: 7.219 MB / 0.7794 GB Notification: Performance of matching and sorting (n=216) (initialization): time 0.007167/1.389, allocations: 2.799 MB / 1.096 GB, free: 4.398 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 8.439e-05/1.389, allocations: 73.27 kB / 1.096 GB, free: 4.316 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.348e-05/1.389, allocations: 16 kB / 1.096 GB, free: 4.301 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.468e-05/1.389, allocations: 20 kB / 1.096 GB, free: 4.281 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00306/1.392, allocations: 0.55 MB / 1.097 GB, free: 3.73 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001435/1.394, allocations: 2.399 MB / 1.099 GB, free: 1.238 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003522/1.397, allocations: 279.8 kB / 1.099 GB, free: 0.9648 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002386/1.397, allocations: 91.95 kB / 1.099 GB, free: 0.875 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.003528/1.401, allocations: 1.398 MB / 1.101 GB, free: 15.47 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.003076/1.404, allocations: 1.583 MB / 1.102 GB, free: 13.62 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.004728/1.409, allocations: 2.242 MB / 1.105 GB, free: 11.18 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.243e-05/1.409, allocations: 4 kB / 1.105 GB, free: 11.17 MB / 0.795 GB Notification: Performance of matching and sorting (n=216) (initialization_lambda0): time 0.00694/1.416, allocations: 2.794 MB / 1.107 GB, free: 8.359 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 7.891e-05/1.416, allocations: 75.39 kB / 1.107 GB, free: 8.273 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.852e-05/1.416, allocations: 12 kB / 1.107 GB, free: 8.262 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.075e-05/1.416, allocations: 24 kB / 1.107 GB, free: 8.238 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002504/1.418, allocations: 0.5038 MB / 1.108 GB, free: 7.734 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.26e-05/1.418, allocations: 31.86 kB / 1.108 GB, free: 7.703 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003388/1.422, allocations: 307.5 kB / 1.108 GB, free: 7.41 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001692/1.422, allocations: 91.95 kB / 1.108 GB, free: 7.32 MB / 0.795 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.0005693/1.423, allocations: 293.4 kB / 1.109 GB, free: 7.027 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005176/1.423, allocations: 274.3 kB / 1.109 GB, free: 6.758 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004534/1.428, allocations: 1.843 MB / 1.111 GB, free: 4.898 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.115e-05/1.428, allocations: 12 kB / 1.111 GB, free: 4.887 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.466e-06/1.428, allocations: 3.938 kB / 1.111 GB, free: 4.883 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.31e-05/1.428, allocations: 7.969 kB / 1.111 GB, free: 4.875 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008778/1.436, allocations: 4.489 MB / 1.115 GB, free: 252 kB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.518e-06/1.436, allocations: 4 kB / 1.115 GB, free: 248 kB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001786/1.438, allocations: 312 kB / 1.115 GB, free: 15.94 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.552e-05/1.438, allocations: 16 kB / 1.115 GB, free: 15.92 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.412e-05/1.438, allocations: 27.98 kB / 1.115 GB, free: 15.89 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001162/1.44, allocations: 2.364 MB / 1.118 GB, free: 13.44 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.404e-06/1.44, allocations: 7.938 kB / 1.118 GB, free: 13.43 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004228/1.444, allocations: 1.996 MB / 1.12 GB, free: 11.34 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001184/1.445, allocations: 0.5343 MB / 1.12 GB, free: 10.78 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003527/1.445, allocations: 24 kB / 1.12 GB, free: 10.76 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002273/1.448, allocations: 177.1 kB / 1.12 GB, free: 10.59 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001414/1.448, allocations: 84.72 kB / 1.12 GB, free: 10.5 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001315/1.448, allocations: 59.95 kB / 1.121 GB, free: 10.45 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.002855/1.451, allocations: 1.727 MB / 1.122 GB, free: 8.715 MB / 0.8106 GB Notification: Performance of sort global known variables: time 2.21e-07/1.451, allocations: 3.938 kB / 1.122 GB, free: 8.711 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.003225/1.454, allocations: 1.299 MB / 1.123 GB, free: 7.41 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.005042/1.459, allocations: 2.796 MB / 1.126 GB, free: 4.539 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.009299/1.468, allocations: 3.599 MB / 1.13 GB, free: 0.8945 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.135e-05/1.468, allocations: 1.875 kB / 1.13 GB, free: 0.8945 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.002086/1.471, allocations: 0.811 MB / 1.131 GB, free: 84 kB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00606/1.477, allocations: 1.201 MB / 1.132 GB, free: 14.94 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03545/1.512, allocations: 18.88 MB / 1.15 GB, free: 11.32 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00128/1.513, allocations: 1.697 MB / 1.152 GB, free: 9.586 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.003087/1.517, allocations: 0.7777 MB / 1.153 GB, free: 8.805 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001403/1.518, allocations: 1.011 MB / 1.154 GB, free: 7.793 MB / 0.8419 GB Notification: Performance of SimCode: time 9.82e-07/1.518, allocations: 0 / 1.154 GB, free: 7.793 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4704/1.988, allocations: 64.82 MB / 1.217 GB, free: 385 MB / 0.8887 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.11/19.1, allocations: 9.375 kB / 1.217 GB, free: 385 MB / 0.8887 GB (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 & python3 -m fmpy simulate --output-file IDEAS_IDEAS.Fluid.Interfaces.Examples.ReverseFlowMassExchanger_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 IDEAS_IDEAS_Fluid_Interfaces_Examples_ReverseFlowMassExchanger.fmu > IDEAS_IDEAS.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.pipe 2>&1)