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.006291/0.006291, allocations: 101.5 kB / 15.73 MB, free: 6.449 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.002469/0.002469, allocations: 194.3 kB / 16.68 MB, free: 6.352 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.501/1.501, allocations: 222.9 MB / 240.4 MB, free: 4.277 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.986/0.986, allocations: 135.6 MB / 426.1 MB, free: 12.07 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001918/0.001918, allocations: 63.89 kB / 0.5858 GB, free: 3.184 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4354/0.4373, allocations: 81.02 MB / 0.6649 GB, free: 6.91 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Interfaces.Examples.ReverseFlowMassExchanger): time 0.7324/1.17, allocations: 328.4 MB / 0.9856 GB, free: 40 kB / 0.6856 GB Notification: Performance of NFInst.instExpressions: time 0.03982/1.21, allocations: 30.04 MB / 1.015 GB, free: 5.047 MB / 0.7012 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004561/1.214, allocations: 97.66 kB / 1.015 GB, free: 5.047 MB / 0.7012 GB Notification: Performance of NFTyping.typeComponents: time 0.006229/1.221, allocations: 2.092 MB / 1.017 GB, free: 3.871 MB / 0.7012 GB Notification: Performance of NFTyping.typeBindings: time 0.0144/1.235, allocations: 4.963 MB / 1.022 GB, free: 15.87 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.01049/1.245, allocations: 3.659 MB / 1.025 GB, free: 12.5 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.01272/1.258, allocations: 6.925 MB / 1.032 GB, free: 5.559 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.005953/1.264, allocations: 2.867 MB / 1.035 GB, free: 2.633 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01606/1.28, allocations: 5.277 MB / 1.04 GB, free: 13.36 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005973/1.286, allocations: 2.427 MB / 1.043 GB, free: 10.93 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 0.001273/1.288, allocations: 292 kB / 1.043 GB, free: 10.65 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01147/1.299, allocations: 4.802 MB / 1.048 GB, free: 5.836 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.002037/1.301, allocations: 1.071 MB / 1.049 GB, free: 4.762 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.003524/1.305, allocations: 1.738 MB / 1.05 GB, free: 3.012 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.01369/1.318, allocations: 5.77 MB / 1.056 GB, free: 13.22 MB / 0.7481 GB Notification: Performance of FrontEnd - DAE generated: time 8.927e-06/1.319, allocations: 0 / 1.056 GB, free: 13.22 MB / 0.7481 GB Notification: Performance of FrontEnd: time 1.854e-06/1.319, allocations: 7.938 kB / 1.056 GB, free: 13.21 MB / 0.7481 GB Notification: Performance of Transformations before backend: time 0.0001377/1.319, allocations: 0 / 1.056 GB, free: 13.21 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.009628/1.328, allocations: 3.8 MB / 1.06 GB, free: 9.32 MB / 0.7481 GB Notification: Performance of prepare preOptimizeDAE: time 4.677e-05/1.328, allocations: 11.97 kB / 1.06 GB, free: 9.309 MB / 0.7481 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006274/1.329, allocations: 295.6 kB / 1.06 GB, free: 9.008 MB / 0.7481 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01012/1.339, allocations: 1.489 MB / 1.061 GB, free: 7.516 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00544/1.345, allocations: 2.079 MB / 1.063 GB, free: 5.359 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002903/1.345, allocations: 176.1 kB / 1.064 GB, free: 5.184 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009907/1.346, allocations: 220 kB / 1.064 GB, free: 4.969 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007469/1.353, allocations: 3.031 MB / 1.067 GB, free: 1.801 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.793e-05/1.354, allocations: 7.938 kB / 1.067 GB, free: 1.793 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003041/1.354, allocations: 91.98 kB / 1.067 GB, free: 1.703 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001092/1.354, allocations: 92 kB / 1.067 GB, free: 1.609 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007896/1.362, allocations: 3.107 MB / 1.07 GB, free: 14.48 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.02541/1.387, allocations: 14.05 MB / 1.084 GB, free: 15.34 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004359/1.392, allocations: 1.657 MB / 1.085 GB, free: 13.68 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001937/1.394, allocations: 0.7737 MB / 1.086 GB, free: 12.91 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006638/1.394, allocations: 329.1 kB / 1.086 GB, free: 12.53 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.443e-05/1.394, allocations: 55.56 kB / 1.086 GB, free: 12.46 MB / 0.7794 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001246/1.396, allocations: 206.6 kB / 1.087 GB, free: 12.26 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=110): time 4.309e-06/1.396, allocations: 0 / 1.087 GB, free: 12.26 MB / 0.7794 GB Notification: Performance of matching and sorting (n=110): time 0.006464/1.402, allocations: 2.369 MB / 1.089 GB, free: 9.891 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.31e-05/1.402, allocations: 64.41 kB / 1.089 GB, free: 9.812 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004436/1.407, allocations: 2.513 MB / 1.091 GB, free: 7.281 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 0.0003186/1.407, allocations: 57.7 kB / 1.092 GB, free: 7.219 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.001245/1.408, allocations: 1.295 MB / 1.093 GB, free: 5.91 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 0.00047/1.409, allocations: 404.5 kB / 1.093 GB, free: 5.512 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007628/1.41, allocations: 399.2 kB / 1.094 GB, free: 5.117 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001335/1.41, allocations: 309.1 kB / 1.094 GB, free: 4.812 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002704/1.412, allocations: 0.9572 MB / 1.095 GB, free: 3.852 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003352/1.416, allocations: 1.595 MB / 1.096 GB, free: 1.984 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005271/1.421, allocations: 2.249 MB / 1.099 GB, free: 15.53 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-05/1.421, allocations: 4 kB / 1.099 GB, free: 15.53 MB / 0.795 GB Notification: Performance of matching and sorting (n=216) (initialization): time 0.007667/1.429, allocations: 2.799 MB / 1.101 GB, free: 12.71 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 9.781e-05/1.429, allocations: 75.39 kB / 1.101 GB, free: 12.62 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.647e-05/1.429, allocations: 12 kB / 1.101 GB, free: 12.61 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.972e-05/1.429, allocations: 24 kB / 1.101 GB, free: 12.59 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003136/1.432, allocations: 0.558 MB / 1.102 GB, free: 12.03 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001685/1.434, allocations: 2.391 MB / 1.104 GB, free: 9.543 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003585/1.437, allocations: 283.8 kB / 1.105 GB, free: 9.266 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004018/1.438, allocations: 99.89 kB / 1.105 GB, free: 9.168 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.003601/1.441, allocations: 1.386 MB / 1.106 GB, free: 7.777 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.003357/1.445, allocations: 1.588 MB / 1.108 GB, free: 5.922 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00504/1.45, allocations: 2.246 MB / 1.11 GB, free: 3.477 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.264e-05/1.45, allocations: 4 kB / 1.11 GB, free: 3.473 MB / 0.795 GB Notification: Performance of matching and sorting (n=216) (initialization_lambda0): time 0.007138/1.457, allocations: 2.782 MB / 1.112 GB, free: 0.668 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 7.258e-05/1.457, allocations: 75.39 kB / 1.113 GB, free: 0.582 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.814e-05/1.457, allocations: 19.94 kB / 1.113 GB, free: 0.5625 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.456e-05/1.457, allocations: 23.94 kB / 1.113 GB, free: 0.5391 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002429/1.46, allocations: 0.5116 MB / 1.113 GB, free: 28 kB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.936e-05/1.46, allocations: 31.97 kB / 1.113 GB, free: 15.99 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003188/1.463, allocations: 288.2 kB / 1.113 GB, free: 15.71 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002371/1.463, allocations: 95.95 kB / 1.113 GB, free: 15.62 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.0005411/1.464, allocations: 296 kB / 1.114 GB, free: 15.32 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005761/1.464, allocations: 274.2 kB / 1.114 GB, free: 15.05 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004671/1.469, allocations: 1.855 MB / 1.116 GB, free: 13.18 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.329e-05/1.469, allocations: 12 kB / 1.116 GB, free: 13.17 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.425e-06/1.469, allocations: 0 / 1.116 GB, free: 13.17 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.314e-05/1.469, allocations: 7.922 kB / 1.116 GB, free: 13.16 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00943/1.479, allocations: 4.497 MB / 1.12 GB, free: 8.523 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.059e-05/1.479, allocations: 4 kB / 1.12 GB, free: 8.52 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001656/1.48, allocations: 300.1 kB / 1.12 GB, free: 8.227 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.627e-05/1.48, allocations: 8 kB / 1.121 GB, free: 8.219 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001015/1.48, allocations: 31.98 kB / 1.121 GB, free: 8.188 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001397/1.482, allocations: 2.364 MB / 1.123 GB, free: 5.73 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.392e-05/1.482, allocations: 11.94 kB / 1.123 GB, free: 5.719 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004575/1.486, allocations: 1.992 MB / 1.125 GB, free: 3.637 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001298/1.488, allocations: 0.5382 MB / 1.125 GB, free: 3.078 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004767/1.488, allocations: 31.92 kB / 1.125 GB, free: 3.047 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002356/1.491, allocations: 172.6 kB / 1.126 GB, free: 2.879 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002055/1.491, allocations: 84.72 kB / 1.126 GB, free: 2.797 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002064/1.491, allocations: 63.95 kB / 1.126 GB, free: 2.734 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.00367/1.495, allocations: 1.727 MB / 1.127 GB, free: 1.004 MB / 0.8106 GB Notification: Performance of sort global known variables: time 3e-07/1.495, allocations: 0 / 1.127 GB, free: 1.004 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.00441/1.499, allocations: 1.299 MB / 1.129 GB, free: 15.7 MB / 0.8262 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.005724/1.505, allocations: 2.811 MB / 1.131 GB, free: 12.81 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.009508/1.514, allocations: 3.585 MB / 1.135 GB, free: 9.18 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.278e-05/1.514, allocations: 4 kB / 1.135 GB, free: 9.176 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.00222/1.517, allocations: 0.8072 MB / 1.136 GB, free: 8.371 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006596/1.523, allocations: 1.196 MB / 1.137 GB, free: 7.188 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04043/1.564, allocations: 18.89 MB / 1.155 GB, free: 3.559 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001493/1.565, allocations: 1.693 MB / 1.157 GB, free: 1.828 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.003262/1.569, allocations: 0.7816 MB / 1.158 GB, free: 1.043 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00166/1.57, allocations: 1.011 MB / 1.159 GB, free: 36 kB / 0.8419 GB Notification: Performance of SimCode: time 7.12e-07/1.57, allocations: 0 / 1.159 GB, free: 36 kB / 0.8419 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4482/2.018, allocations: 64.84 MB / 1.222 GB, free: 382.5 MB / 0.8887 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.19/19.21, allocations: 1.984 kB / 1.222 GB, free: 382.5 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)