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.001103/0.001103, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001167/0.001167, allocations: 194.4 kB / 16.53 MB, free: 6.699 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.306/1.306, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7263/0.7263, allocations: 132.2 MB / 422.6 MB, free: 1.75 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001296/0.001296, allocations: 67.23 kB / 0.5019 GB, free: 3.746 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3168/0.3181, allocations: 80.2 MB / 0.5802 GB, free: 4.559 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Interfaces.Examples.ReverseFlowMassExchanger): time 0.5785/0.8967, allocations: 328.4 MB / 0.9009 GB, free: 1.434 MB / 0.6387 GB Notification: Performance of NFInst.instExpressions: time 0.02855/0.9253, allocations: 30.05 MB / 0.9302 GB, free: 0.4961 MB / 0.6387 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003464/0.9288, allocations: 100.2 kB / 0.9303 GB, free: 0.4961 MB / 0.6387 GB Notification: Performance of NFTyping.typeComponents: time 0.004619/0.9334, allocations: 2.096 MB / 0.9324 GB, free: 464 kB / 0.6387 GB Notification: Performance of NFTyping.typeBindings: time 0.01112/0.9446, allocations: 4.945 MB / 0.9372 GB, free: 15.34 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.008173/0.9527, allocations: 3.643 MB / 0.9407 GB, free: 13.87 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.008022/0.9608, allocations: 6.907 MB / 0.9475 GB, free: 11.3 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003828/0.9646, allocations: 2.872 MB / 0.9503 GB, free: 9.23 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0118/0.9764, allocations: 5.263 MB / 0.9554 GB, free: 5.02 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004159/0.9806, allocations: 2.41 MB / 0.9578 GB, free: 2.902 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 0.0006799/0.9813, allocations: 296 kB / 0.9581 GB, free: 2.613 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.009086/0.9904, allocations: 4.806 MB / 0.9628 GB, free: 14.74 MB / 0.67 GB Notification: Performance of NFScalarize.scalarize: time 0.001274/0.9917, allocations: 1.077 MB / 0.9638 GB, free: 13.7 MB / 0.67 GB Notification: Performance of NFVerifyModel.verify: time 0.002381/0.9941, allocations: 1.739 MB / 0.9655 GB, free: 12 MB / 0.67 GB Notification: Performance of NFConvertDAE.convert: time 0.008391/1.002, allocations: 5.707 MB / 0.9711 GB, free: 6.609 MB / 0.67 GB Notification: Performance of FrontEnd - DAE generated: time 5.029e-06/1.003, allocations: 0 / 0.9711 GB, free: 6.609 MB / 0.67 GB Notification: Performance of FrontEnd: time 1.212e-06/1.003, allocations: 0 / 0.9711 GB, free: 6.609 MB / 0.67 GB Notification: Performance of Transformations before backend: time 3.944e-05/1.003, allocations: 0 / 0.9711 GB, free: 6.609 MB / 0.67 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.006528/1.009, allocations: 3.708 MB / 0.9747 GB, free: 2.867 MB / 0.67 GB Notification: Performance of prepare preOptimizeDAE: time 3.663e-05/1.009, allocations: 11.97 kB / 0.9747 GB, free: 2.855 MB / 0.67 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003444/1.01, allocations: 299.6 kB / 0.975 GB, free: 2.551 MB / 0.67 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009414/1.019, allocations: 1.466 MB / 0.9764 GB, free: 1.082 MB / 0.67 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003566/1.023, allocations: 1.975 MB / 0.9784 GB, free: 15.13 MB / 0.6856 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001349/1.024, allocations: 395.8 kB / 0.9787 GB, free: 14.74 MB / 0.6856 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003934/1.024, allocations: 231.9 kB / 0.979 GB, free: 14.51 MB / 0.6856 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006258/1.031, allocations: 3.062 MB / 0.982 GB, free: 11.33 MB / 0.6856 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.168e-05/1.031, allocations: 7.281 kB / 0.982 GB, free: 11.32 MB / 0.6856 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002595/1.031, allocations: 88 kB / 0.982 GB, free: 11.24 MB / 0.6856 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.198e-05/1.031, allocations: 92 kB / 0.9821 GB, free: 11.14 MB / 0.6856 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007054/1.038, allocations: 3.147 MB / 0.9852 GB, free: 8 MB / 0.6856 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.02158/1.06, allocations: 14.15 MB / 0.999 GB, free: 8.973 MB / 0.7012 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004035/1.064, allocations: 1.657 MB / 1.001 GB, free: 7.316 MB / 0.7012 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001713/1.065, allocations: 0.7689 MB / 1.001 GB, free: 6.547 MB / 0.7012 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005961/1.066, allocations: 330.9 kB / 1.002 GB, free: 6.172 MB / 0.7012 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.185e-05/1.066, allocations: 51.56 kB / 1.002 GB, free: 6.113 MB / 0.7012 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001056/1.067, allocations: 205.5 kB / 1.002 GB, free: 5.914 MB / 0.7012 GB Notification: Performance of pre-optimization done (n=110): time 6.743e-06/1.067, allocations: 0 / 1.002 GB, free: 5.914 MB / 0.7012 GB Notification: Performance of matching and sorting (n=110): time 0.00584/1.073, allocations: 2.355 MB / 1.004 GB, free: 3.559 MB / 0.7012 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.122e-05/1.073, allocations: 72.41 kB / 1.004 GB, free: 3.473 MB / 0.7012 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003819/1.077, allocations: 2.533 MB / 1.007 GB, free: 0.9219 MB / 0.7012 GB Notification: Performance of collectPreVariables (initialization): time 0.0001689/1.077, allocations: 57.7 kB / 1.007 GB, free: 0.8594 MB / 0.7012 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009227/1.078, allocations: 1.27 MB / 1.008 GB, free: 15.58 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002964/1.078, allocations: 382.9 kB / 1.008 GB, free: 15.21 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006717/1.079, allocations: 402.2 kB / 1.009 GB, free: 14.81 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 8.562e-05/1.079, allocations: 305.1 kB / 1.009 GB, free: 14.51 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002625/1.082, allocations: 0.976 MB / 1.01 GB, free: 13.54 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003039/1.085, allocations: 1.609 MB / 1.012 GB, free: 11.66 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004722/1.09, allocations: 2.277 MB / 1.014 GB, free: 9.234 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.03e-05/1.09, allocations: 4 kB / 1.014 GB, free: 9.23 MB / 0.7169 GB Notification: Performance of matching and sorting (n=216) (initialization): time 0.006782/1.096, allocations: 2.815 MB / 1.017 GB, free: 6.473 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 6.31e-05/1.096, allocations: 79.33 kB / 1.017 GB, free: 6.383 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.154e-05/1.096, allocations: 12 kB / 1.017 GB, free: 6.371 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.534e-05/1.097, allocations: 24 kB / 1.017 GB, free: 6.348 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002973/1.099, allocations: 0.5652 MB / 1.017 GB, free: 5.809 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001175/1.101, allocations: 2.392 MB / 1.02 GB, free: 3.332 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003281/1.104, allocations: 310.4 kB / 1.02 GB, free: 3.031 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001772/1.104, allocations: 95.89 kB / 1.02 GB, free: 2.938 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.00332/1.107, allocations: 1.41 MB / 1.021 GB, free: 1.523 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.00302/1.111, allocations: 1.607 MB / 1.023 GB, free: 15.65 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.004599/1.115, allocations: 2.264 MB / 1.025 GB, free: 13.23 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 9.397e-06/1.115, allocations: 6.719 kB / 1.025 GB, free: 13.23 MB / 0.7325 GB Notification: Performance of matching and sorting (n=216) (initialization_lambda0): time 0.006512/1.122, allocations: 2.822 MB / 1.028 GB, free: 10.47 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 5.717e-05/1.122, allocations: 77.89 kB / 1.028 GB, free: 10.38 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.929e-05/1.122, allocations: 15.98 kB / 1.028 GB, free: 10.37 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.049e-05/1.122, allocations: 24 kB / 1.028 GB, free: 10.34 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00244/1.124, allocations: 0.5168 MB / 1.029 GB, free: 9.852 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.902e-05/1.124, allocations: 33.23 kB / 1.029 GB, free: 9.824 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003171/1.127, allocations: 328.2 kB / 1.029 GB, free: 9.504 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001598/1.128, allocations: 87.95 kB / 1.029 GB, free: 9.418 MB / 0.7325 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.0004067/1.128, allocations: 299.4 kB / 1.029 GB, free: 9.145 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004496/1.128, allocations: 260.8 kB / 1.03 GB, free: 8.887 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004234/1.133, allocations: 1.847 MB / 1.031 GB, free: 7.023 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.366e-06/1.133, allocations: 8 kB / 1.031 GB, free: 7.016 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.713e-06/1.133, allocations: 3.984 kB / 1.031 GB, free: 7.012 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.003e-05/1.133, allocations: 7.984 kB / 1.031 GB, free: 7.004 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007563/1.14, allocations: 4.486 MB / 1.036 GB, free: 2.445 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-05/1.14, allocations: 8 kB / 1.036 GB, free: 2.438 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001609/1.142, allocations: 301.2 kB / 1.036 GB, free: 2.156 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.354e-05/1.142, allocations: 12 kB / 1.036 GB, free: 2.145 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.487e-05/1.142, allocations: 35.92 kB / 1.036 GB, free: 2.109 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009589/1.143, allocations: 2.368 MB / 1.038 GB, free: 15.66 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.115e-06/1.143, allocations: 10.72 kB / 1.038 GB, free: 15.65 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003873/1.147, allocations: 1.978 MB / 1.04 GB, free: 13.58 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008785/1.148, allocations: 0.5211 MB / 1.041 GB, free: 13.04 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003682/1.148, allocations: 31.94 kB / 1.041 GB, free: 13.01 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002222/1.15, allocations: 187.8 kB / 1.041 GB, free: 12.82 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000131/1.151, allocations: 83.12 kB / 1.041 GB, free: 12.75 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001311/1.151, allocations: 67.89 kB / 1.041 GB, free: 12.68 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.002692/1.153, allocations: 1.755 MB / 1.043 GB, free: 10.93 MB / 0.7481 GB Notification: Performance of sort global known variables: time 2.11e-07/1.153, allocations: 0 / 1.043 GB, free: 10.93 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.002718/1.156, allocations: 1.279 MB / 1.044 GB, free: 9.645 MB / 0.7481 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.00463/1.161, allocations: 2.791 MB / 1.047 GB, free: 6.809 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.009019/1.17, allocations: 3.79 MB / 1.051 GB, free: 3.09 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 7.845e-06/1.17, allocations: 4 kB / 1.051 GB, free: 3.086 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.001874/1.172, allocations: 0.8008 MB / 1.051 GB, free: 2.316 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005106/1.177, allocations: 1.204 MB / 1.053 GB, free: 1.18 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03213/1.209, allocations: 21.61 MB / 1.074 GB, free: 9.672 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001207/1.21, allocations: 1.697 MB / 1.075 GB, free: 7.934 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.003285/1.214, allocations: 0.7855 MB / 1.076 GB, free: 7.145 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001274/1.215, allocations: 1.015 MB / 1.077 GB, free: 6.129 MB / 0.7794 GB Notification: Performance of SimCode: time 4.1e-07/1.215, allocations: 0 / 1.077 GB, free: 6.129 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.942/2.157, allocations: 66.45 MB / 1.142 GB, free: 376 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.41/22.57, allocations: 12.02 kB / 1.142 GB, free: 376 MB / 0.8106 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Fluid_Interfaces_Examples_ReverseFlowMassExchanger_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Fluid_Interfaces_Examples_ReverseFlowMassExchanger.fmu > IDEAS_IDEAS.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.pipe 2>&1)