Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_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-master/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.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: "" <> buildModelFMU(IDEAS.Fluid.Interfaces.Examples.ReverseFlowMassExchanger,fileNamePrefix="IDEAS_dev_IDEAS_Fluid_Interfaces_Examples_ReverseFlowMassExchanger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.Interfaces.Examples.ReverseFlowMassExchanger,fileNamePrefix="IDEAS_dev_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.007119/0.00712, allocations: 97.12 kB / 15.73 MB, free: 6.004 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.001389/0.001389, allocations: 195 kB / 16.67 MB, free: 5.934 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.324/1.324, 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-master/package.mo): time 0.9347/0.9347, allocations: 135.1 MB / 425.7 MB, free: 12.01 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001391/0.001391, allocations: 59.91 kB / 0.5852 GB, free: 3.836 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3903/0.3917, allocations: 80.91 MB / 0.6642 GB, free: 7.281 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Interfaces.Examples.ReverseFlowMassExchanger): time 0.7093/1.101, allocations: 328.4 MB / 0.9849 GB, free: 20 kB / 0.6856 GB Notification: Performance of NFInst.instExpressions: time 0.033/1.134, allocations: 30.03 MB / 1.014 GB, free: 5.91 MB / 0.7012 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.005289/1.139, allocations: 104.2 kB / 1.014 GB, free: 5.906 MB / 0.7012 GB Notification: Performance of NFTyping.typeComponents: time 0.006137/1.146, allocations: 2.172 MB / 1.016 GB, free: 4.762 MB / 0.7012 GB Notification: Performance of NFTyping.typeBindings: time 0.0146/1.16, allocations: 5.15 MB / 1.021 GB, free: 0.6484 MB / 0.7012 GB Notification: Performance of NFTyping.typeClassSections: time 0.009918/1.17, allocations: 3.71 MB / 1.025 GB, free: 13.27 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.01155/1.182, allocations: 6.928 MB / 1.032 GB, free: 6.355 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0048/1.187, allocations: 2.871 MB / 1.035 GB, free: 3.426 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01377/1.2, allocations: 5.465 MB / 1.04 GB, free: 13.97 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0048/1.205, allocations: 2.419 MB / 1.042 GB, free: 11.55 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 0.001012/1.206, allocations: 299.9 kB / 1.043 GB, free: 11.26 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01033/1.217, allocations: 4.821 MB / 1.047 GB, free: 6.43 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0016/1.218, allocations: 1.063 MB / 1.048 GB, free: 5.363 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.003063/1.221, allocations: 1.734 MB / 1.05 GB, free: 3.621 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0125/1.234, allocations: 5.778 MB / 1.056 GB, free: 13.82 MB / 0.7481 GB Notification: Performance of FrontEnd - DAE generated: time 6.943e-06/1.234, allocations: 4 kB / 1.056 GB, free: 13.82 MB / 0.7481 GB Notification: Performance of FrontEnd: time 1.864e-06/1.234, allocations: 0 / 1.056 GB, free: 13.82 MB / 0.7481 GB Notification: Performance of Transformations before backend: time 0.000127/1.234, allocations: 0 / 1.056 GB, free: 13.82 MB / 0.7481 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.009226/1.243, allocations: 3.8 MB / 1.059 GB, free: 9.926 MB / 0.7481 GB Notification: Performance of prepare preOptimizeDAE: time 5.147e-05/1.243, allocations: 11.97 kB / 1.059 GB, free: 9.914 MB / 0.7481 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000476/1.244, allocations: 303.6 kB / 1.06 GB, free: 9.605 MB / 0.7481 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01018/1.254, allocations: 1.489 MB / 1.061 GB, free: 8.113 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005133/1.259, allocations: 2.083 MB / 1.063 GB, free: 5.953 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002202/1.259, allocations: 164.1 kB / 1.063 GB, free: 5.789 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006217/1.26, allocations: 223.9 kB / 1.064 GB, free: 5.57 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006326/1.266, allocations: 3.038 MB / 1.067 GB, free: 2.398 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.344e-05/1.266, allocations: 7.938 kB / 1.067 GB, free: 2.391 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002479/1.267, allocations: 87.98 kB / 1.067 GB, free: 2.305 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000102/1.267, allocations: 92 kB / 1.067 GB, free: 2.211 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007022/1.274, allocations: 3.107 MB / 1.07 GB, free: 15.09 MB / 0.7637 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.02309/1.297, allocations: 14.05 MB / 1.084 GB, free: 15.93 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003995/1.301, allocations: 1.66 MB / 1.085 GB, free: 14.27 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001696/1.303, allocations: 0.7743 MB / 1.086 GB, free: 13.49 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006192/1.303, allocations: 321.2 kB / 1.086 GB, free: 13.12 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.486e-05/1.303, allocations: 55.5 kB / 1.086 GB, free: 13.06 MB / 0.7794 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001122/1.304, allocations: 206.6 kB / 1.086 GB, free: 12.86 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=110): time 6.672e-06/1.304, allocations: 0 / 1.086 GB, free: 12.86 MB / 0.7794 GB Notification: Performance of matching and sorting (n=110): time 0.006138/1.311, allocations: 2.365 MB / 1.089 GB, free: 10.49 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.722e-05/1.311, allocations: 64.41 kB / 1.089 GB, free: 10.41 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00437/1.315, allocations: 2.513 MB / 1.091 GB, free: 7.879 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 0.0002473/1.315, allocations: 61.7 kB / 1.091 GB, free: 7.812 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.001127/1.316, allocations: 1.295 MB / 1.093 GB, free: 6.504 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003881/1.317, allocations: 404.5 kB / 1.093 GB, free: 6.105 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008689/1.318, allocations: 395.2 kB / 1.093 GB, free: 5.715 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001122/1.318, allocations: 313.1 kB / 1.094 GB, free: 5.406 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002621/1.321, allocations: 0.9533 MB / 1.095 GB, free: 4.449 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003232/1.324, allocations: 1.591 MB / 1.096 GB, free: 2.586 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005009/1.329, allocations: 2.257 MB / 1.098 GB, free: 132 kB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.087e-05/1.329, allocations: 4 kB / 1.098 GB, free: 128 kB / 0.7794 GB Notification: Performance of matching and sorting (n=216) (initialization): time 0.007204/1.336, allocations: 2.787 MB / 1.101 GB, free: 13.32 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 8.825e-05/1.336, allocations: 75.39 kB / 1.101 GB, free: 13.23 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.221e-05/1.336, allocations: 12 kB / 1.101 GB, free: 13.22 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.513e-05/1.336, allocations: 24 kB / 1.101 GB, free: 13.2 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003057/1.339, allocations: 0.562 MB / 1.102 GB, free: 12.63 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001439/1.341, allocations: 2.391 MB / 1.104 GB, free: 10.15 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003478/1.344, allocations: 283.9 kB / 1.104 GB, free: 9.871 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002645/1.345, allocations: 91.95 kB / 1.104 GB, free: 9.781 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.003514/1.348, allocations: 1.394 MB / 1.106 GB, free: 8.383 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.00306/1.351, allocations: 1.587 MB / 1.107 GB, free: 6.527 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00474/1.356, allocations: 2.242 MB / 1.11 GB, free: 4.086 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.48e-05/1.356, allocations: 4 kB / 1.11 GB, free: 4.082 MB / 0.795 GB Notification: Performance of matching and sorting (n=216) (initialization_lambda0): time 0.00689/1.363, allocations: 2.79 MB / 1.112 GB, free: 1.27 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 7.442e-05/1.363, allocations: 71.39 kB / 1.112 GB, free: 1.188 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.765e-05/1.363, allocations: 16.75 kB / 1.112 GB, free: 1.172 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.313e-05/1.363, allocations: 23.94 kB / 1.112 GB, free: 1.148 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002447/1.365, allocations: 0.511 MB / 1.113 GB, free: 0.6367 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.461e-05/1.366, allocations: 39.8 kB / 1.113 GB, free: 0.5977 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00331/1.369, allocations: 284.3 kB / 1.113 GB, free: 328 kB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001976/1.369, allocations: 99.94 kB / 1.113 GB, free: 228 kB / 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.0005921/1.37, allocations: 291.8 kB / 1.114 GB, free: 15.93 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005588/1.37, allocations: 274.5 kB / 1.114 GB, free: 15.66 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004419/1.375, allocations: 1.855 MB / 1.116 GB, free: 13.79 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.229e-05/1.375, allocations: 15.98 kB / 1.116 GB, free: 13.77 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.195e-06/1.375, allocations: 0 / 1.116 GB, free: 13.77 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.028e-05/1.375, allocations: 3.984 kB / 1.116 GB, free: 13.77 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008436/1.383, allocations: 4.496 MB / 1.12 GB, free: 9.129 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.899e-06/1.383, allocations: 4 kB / 1.12 GB, free: 9.125 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001671/1.385, allocations: 308.3 kB / 1.12 GB, free: 8.824 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.481e-05/1.385, allocations: 8 kB / 1.12 GB, free: 8.816 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.474e-05/1.385, allocations: 35.97 kB / 1.12 GB, free: 8.781 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001237/1.386, allocations: 2.364 MB / 1.123 GB, free: 6.324 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.576e-06/1.386, allocations: 11.94 kB / 1.123 GB, free: 6.312 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00464/1.391, allocations: 1.996 MB / 1.125 GB, free: 4.227 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001446/1.392, allocations: 0.5304 MB / 1.125 GB, free: 3.676 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003888/1.393, allocations: 31.92 kB / 1.125 GB, free: 3.645 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002266/1.395, allocations: 173.3 kB / 1.125 GB, free: 3.477 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000151/1.395, allocations: 84.78 kB / 1.125 GB, free: 3.395 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001504/1.395, allocations: 59.95 kB / 1.125 GB, free: 3.336 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.002924/1.398, allocations: 1.727 MB / 1.127 GB, free: 1.605 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.5e-07/1.398, allocations: 0 / 1.127 GB, free: 1.605 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.003757/1.402, allocations: 1.295 MB / 1.128 GB, free: 316 kB / 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.005135/1.407, allocations: 2.818 MB / 1.131 GB, free: 13.41 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.008886/1.416, allocations: 3.581 MB / 1.135 GB, free: 9.781 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.134e-05/1.416, allocations: 4 kB / 1.135 GB, free: 9.777 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.002032/1.418, allocations: 0.8073 MB / 1.135 GB, free: 8.973 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005943/1.424, allocations: 1.192 MB / 1.137 GB, free: 7.793 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03991/1.464, allocations: 18.89 MB / 1.155 GB, free: 4.16 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002002/1.466, allocations: 1.693 MB / 1.157 GB, free: 2.43 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.003847/1.47, allocations: 0.7816 MB / 1.157 GB, free: 1.645 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001962/1.472, allocations: 1.015 MB / 1.158 GB, free: 0.6328 MB / 0.8419 GB Notification: Performance of SimCode: time 1.774e-06/1.472, allocations: 0 / 1.158 GB, free: 0.6328 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4259/1.898, allocations: 64.84 MB / 1.222 GB, free: 382.7 MB / 0.8887 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.85/17.75, allocations: 8.531 kB / 1.222 GB, free: 382.7 MB / 0.8887 GB (rm -f IDEAS_dev_IDEAS.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.pipe ; mkfifo IDEAS_dev_IDEAS.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.pipe >> ../files/IDEAS_dev_IDEAS.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.sim & python3 -m fmpy simulate --output-file IDEAS_dev_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_dev_IDEAS_Fluid_Interfaces_Examples_ReverseFlowMassExchanger.fmu > IDEAS_dev_IDEAS.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.pipe 2>&1)