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.001622/0.001623, allocations: 108 kB / 15.6 MB, free: 132 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.002033/0.002033, allocations: 198.5 kB / 16.54 MB, free: 6.672 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.357/1.357, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7717/0.7717, allocations: 132.2 MB / 422.6 MB, free: 1.77 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00121/0.00121, allocations: 68.67 kB / 0.5019 GB, free: 8.652 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1493/0.1506, allocations: 80.2 MB / 0.5802 GB, free: 8.672 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Interfaces.Examples.ReverseFlowMassExchanger): time 0.9305/1.081, allocations: 328.4 MB / 0.9009 GB, free: 1.391 MB / 0.67 GB Notification: Performance of NFInst.instExpressions: time 0.03305/1.114, allocations: 30.04 MB / 0.9302 GB, free: 1.211 MB / 0.67 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003827/1.118, allocations: 99.44 kB / 0.9303 GB, free: 1.211 MB / 0.67 GB Notification: Performance of NFTyping.typeComponents: time 0.005077/1.123, allocations: 2.095 MB / 0.9323 GB, free: 1.172 MB / 0.67 GB Notification: Performance of NFTyping.typeBindings: time 0.01223/1.135, allocations: 4.948 MB / 0.9372 GB, free: 0.9531 MB / 0.67 GB Notification: Performance of NFTyping.typeClassSections: time 0.009271/1.145, allocations: 3.633 MB / 0.9407 GB, free: 0.8203 MB / 0.67 GB Notification: Performance of NFFlatten.flatten: time 0.00965/1.154, allocations: 6.911 MB / 0.9475 GB, free: 0.7969 MB / 0.67 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004472/1.159, allocations: 2.872 MB / 0.9503 GB, free: 16.41 MB / 0.6856 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01354/1.172, allocations: 5.263 MB / 0.9554 GB, free: 16.26 MB / 0.6856 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005342/1.178, allocations: 2.406 MB / 0.9578 GB, free: 15.89 MB / 0.6856 GB Notification: Performance of NFPackage.collectConstants: time 0.001161/1.179, allocations: 295.6 kB / 0.9581 GB, free: 15.89 MB / 0.6856 GB Notification: Performance of NFFlatten.collectFunctions: time 0.011/1.19, allocations: 4.812 MB / 0.9628 GB, free: 15.7 MB / 0.6856 GB Notification: Performance of NFScalarize.scalarize: time 0.001859/1.192, allocations: 1.072 MB / 0.9638 GB, free: 15.3 MB / 0.6856 GB Notification: Performance of NFVerifyModel.verify: time 0.003234/1.195, allocations: 1.738 MB / 0.9655 GB, free: 14.74 MB / 0.6856 GB Notification: Performance of NFConvertDAE.convert: time 0.0103/1.205, allocations: 5.713 MB / 0.9711 GB, free: 12.43 MB / 0.6856 GB Notification: Performance of FrontEnd - DAE generated: time 6.061e-06/1.206, allocations: 0 / 0.9711 GB, free: 12.43 MB / 0.6856 GB Notification: Performance of FrontEnd: time 2.044e-06/1.206, allocations: 0 / 0.9711 GB, free: 12.43 MB / 0.6856 GB Notification: Performance of Transformations before backend: time 0.0001181/1.206, allocations: 0 / 0.9711 GB, free: 12.43 MB / 0.6856 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.009741/1.215, allocations: 3.704 MB / 0.9747 GB, free: 10.34 MB / 0.6856 GB Notification: Performance of prepare preOptimizeDAE: time 4.049e-05/1.215, allocations: 8.156 kB / 0.9747 GB, free: 10.34 MB / 0.6856 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004613/1.216, allocations: 303.8 kB / 0.975 GB, free: 10.23 MB / 0.6856 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01041/1.226, allocations: 1.47 MB / 0.9764 GB, free: 9.684 MB / 0.6856 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004497/1.231, allocations: 1.979 MB / 0.9784 GB, free: 8.738 MB / 0.6856 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001316/1.232, allocations: 392 kB / 0.9787 GB, free: 8.574 MB / 0.6856 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006747/1.233, allocations: 221.7 kB / 0.9789 GB, free: 8.508 MB / 0.6856 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006456/1.239, allocations: 3.073 MB / 0.9819 GB, free: 5.641 MB / 0.6856 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.672e-05/1.239, allocations: 4 kB / 0.9819 GB, free: 5.637 MB / 0.6856 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002739/1.24, allocations: 95.94 kB / 0.982 GB, free: 5.543 MB / 0.6856 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.025e-05/1.24, allocations: 92 kB / 0.9821 GB, free: 5.449 MB / 0.6856 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00724/1.247, allocations: 3.144 MB / 0.9852 GB, free: 2.309 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.02296/1.27, allocations: 14.16 MB / 0.999 GB, free: 3.293 MB / 0.7012 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004175/1.274, allocations: 1.649 MB / 1.001 GB, free: 1.648 MB / 0.7012 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001761/1.276, allocations: 0.7791 MB / 1.001 GB, free: 0.875 MB / 0.7012 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006321/1.277, allocations: 323.3 kB / 1.002 GB, free: 0.5117 MB / 0.7012 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.071e-05/1.277, allocations: 51.56 kB / 1.002 GB, free: 464 kB / 0.7012 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001307/1.278, allocations: 205 kB / 1.002 GB, free: 260 kB / 0.7012 GB Notification: Performance of pre-optimization done (n=110): time 3.737e-06/1.278, allocations: 0 / 1.002 GB, free: 260 kB / 0.7012 GB Notification: Performance of matching and sorting (n=110): time 0.006096/1.284, allocations: 2.354 MB / 1.004 GB, free: 13.92 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.924e-05/1.284, allocations: 68.39 kB / 1.004 GB, free: 13.84 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004184/1.288, allocations: 2.544 MB / 1.007 GB, free: 11.28 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 0.0002915/1.289, allocations: 53.7 kB / 1.007 GB, free: 11.22 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.001027/1.29, allocations: 1.269 MB / 1.008 GB, free: 9.941 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003743/1.29, allocations: 387.4 kB / 1.008 GB, free: 9.566 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006555/1.291, allocations: 397.6 kB / 1.009 GB, free: 9.176 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 0.0001045/1.291, allocations: 301.1 kB / 1.009 GB, free: 8.879 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002714/1.294, allocations: 0.9728 MB / 1.01 GB, free: 7.902 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003129/1.297, allocations: 1.611 MB / 1.012 GB, free: 6.031 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004999/1.302, allocations: 2.282 MB / 1.014 GB, free: 3.602 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.551e-05/1.302, allocations: 8 kB / 1.014 GB, free: 3.594 MB / 0.7169 GB Notification: Performance of matching and sorting (n=216) (initialization): time 0.007129/1.309, allocations: 2.817 MB / 1.017 GB, free: 0.832 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 7.408e-05/1.309, allocations: 67.41 kB / 1.017 GB, free: 0.7539 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.128e-05/1.309, allocations: 16.03 kB / 1.017 GB, free: 0.7383 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.927e-05/1.309, allocations: 24 kB / 1.017 GB, free: 0.7148 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003074/1.312, allocations: 0.5742 MB / 1.017 GB, free: 176 kB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001417/1.314, allocations: 2.393 MB / 1.02 GB, free: 13.7 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003658/1.317, allocations: 311.9 kB / 1.02 GB, free: 13.39 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002596/1.318, allocations: 95.95 kB / 1.02 GB, free: 13.3 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.003511/1.321, allocations: 1.402 MB / 1.021 GB, free: 11.89 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.003233/1.324, allocations: 1.613 MB / 1.023 GB, free: 10.02 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00501/1.329, allocations: 2.264 MB / 1.025 GB, free: 7.605 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.001e-05/1.329, allocations: 4 kB / 1.025 GB, free: 7.602 MB / 0.7325 GB Notification: Performance of matching and sorting (n=216) (initialization_lambda0): time 0.006982/1.336, allocations: 2.822 MB / 1.028 GB, free: 4.84 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 7.851e-05/1.337, allocations: 75.39 kB / 1.028 GB, free: 4.754 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.956e-05/1.337, allocations: 12 kB / 1.028 GB, free: 4.742 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.806e-05/1.337, allocations: 24 kB / 1.028 GB, free: 4.719 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002596/1.339, allocations: 0.5108 MB / 1.029 GB, free: 4.227 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.336e-05/1.339, allocations: 36.14 kB / 1.029 GB, free: 4.199 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003712/1.343, allocations: 327.8 kB / 1.029 GB, free: 3.883 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002414/1.343, allocations: 87.95 kB / 1.029 GB, free: 3.797 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.0006544/1.344, allocations: 304.7 kB / 1.029 GB, free: 3.516 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006832/1.345, allocations: 256.8 kB / 1.03 GB, free: 3.262 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00472/1.349, allocations: 1.853 MB / 1.031 GB, free: 1.395 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.344e-05/1.349, allocations: 8 kB / 1.031 GB, free: 1.387 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.987e-06/1.349, allocations: 4.281 kB / 1.031 GB, free: 1.383 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.387e-05/1.349, allocations: 7.984 kB / 1.031 GB, free: 1.375 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009388/1.359, allocations: 4.489 MB / 1.036 GB, free: 12.81 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.359e-05/1.359, allocations: 8 kB / 1.036 GB, free: 12.8 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00172/1.361, allocations: 298.4 kB / 1.036 GB, free: 12.53 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.976e-05/1.361, allocations: 12 kB / 1.036 GB, free: 12.52 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.833e-05/1.361, allocations: 39.98 kB / 1.036 GB, free: 12.48 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001155/1.362, allocations: 2.369 MB / 1.038 GB, free: 10.02 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.933e-06/1.362, allocations: 8 kB / 1.038 GB, free: 10.02 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004315/1.366, allocations: 1.973 MB / 1.04 GB, free: 7.953 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001036/1.367, allocations: 0.532 MB / 1.041 GB, free: 7.402 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003659/1.368, allocations: 31.92 kB / 1.041 GB, free: 7.371 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002294/1.37, allocations: 183.8 kB / 1.041 GB, free: 7.191 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001447/1.37, allocations: 75.84 kB / 1.041 GB, free: 7.121 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001341/1.37, allocations: 67.95 kB / 1.041 GB, free: 7.055 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.002958/1.373, allocations: 1.747 MB / 1.043 GB, free: 5.305 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.8e-07/1.373, allocations: 4 kB / 1.043 GB, free: 5.301 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.002999/1.376, allocations: 1.283 MB / 1.044 GB, free: 4.016 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.004977/1.381, allocations: 2.785 MB / 1.047 GB, free: 1.184 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.009871/1.391, allocations: 3.807 MB / 1.051 GB, free: 13.45 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 1.084e-05/1.391, allocations: 4 kB / 1.051 GB, free: 13.45 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.002049/1.393, allocations: 0.8127 MB / 1.051 GB, free: 12.67 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006244/1.399, allocations: 1.196 MB / 1.053 GB, free: 11.54 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03748/1.437, allocations: 21.61 MB / 1.074 GB, free: 4.109 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001314/1.438, allocations: 1.701 MB / 1.075 GB, free: 2.367 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.003748/1.442, allocations: 0.7816 MB / 1.076 GB, free: 1.582 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001458/1.443, allocations: 1.007 MB / 1.077 GB, free: 0.5742 MB / 0.7794 GB Notification: Performance of SimCode: time 1.443e-06/1.444, allocations: 4 kB / 1.077 GB, free: 0.5703 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1131/1.557, allocations: 66.46 MB / 1.142 GB, free: 15.03 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.68/14.23, allocations: 8 kB / 1.142 GB, free: 15.02 MB / 0.8575 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)