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.001528/0.001528, allocations: 99.08 kB / 15.05 MB, free: 1.105 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.002002/0.002002, allocations: 177.3 kB / 15.94 MB, free: 220 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.461/2.461, allocations: 223.2 MB / 239.9 MB, free: 5.465 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 1.248/1.248, allocations: 132.3 MB / 423.2 MB, free: 2.203 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0005907/0.0005908, allocations: 12.59 kB / 0.5033 GB, free: 4.215 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8164/0.8171, allocations: 81.58 MB / 0.583 GB, free: 4.008 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Interfaces.Examples.ReverseFlowMassExchanger): time 1.246/2.063, allocations: 265.3 MB / 0.8421 GB, free: 8.086 MB / 0.6387 GB Notification: Performance of NFInst.instExpressions: time 0.05445/2.118, allocations: 27.1 MB / 0.8685 GB, free: 7.805 MB / 0.6387 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.007836/2.126, allocations: 82.78 kB / 0.8686 GB, free: 7.801 MB / 0.6387 GB Notification: Performance of NFTyping.typeComponents: time 0.009348/2.135, allocations: 1.664 MB / 0.8702 GB, free: 7.797 MB / 0.6387 GB Notification: Performance of NFTyping.typeBindings: time 0.02934/2.164, allocations: 4.677 MB / 0.8748 GB, free: 7.738 MB / 0.6387 GB Notification: Performance of NFTyping.typeClassSections: time 0.01363/2.178, allocations: 2.614 MB / 0.8774 GB, free: 7.688 MB / 0.6387 GB Notification: Performance of NFFlatten.flatten: time 0.01428/2.192, allocations: 3.918 MB / 0.8812 GB, free: 7.668 MB / 0.6387 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00718/2.2, allocations: 2.245 MB / 0.8834 GB, free: 7.391 MB / 0.6387 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01518/2.215, allocations: 3.462 MB / 0.8868 GB, free: 7.375 MB / 0.6387 GB Notification: Performance of NFSimplifyModel.simplify: time 0.006751/2.222, allocations: 1.585 MB / 0.8883 GB, free: 7.367 MB / 0.6387 GB Notification: Performance of NFPackage.collectConstants: time 0.001966/2.224, allocations: 132.5 kB / 0.8884 GB, free: 7.367 MB / 0.6387 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01426/2.238, allocations: 2.208 MB / 0.8906 GB, free: 7.363 MB / 0.6387 GB Notification: Performance of NFScalarize.scalarize: time 0.00351/2.242, allocations: 0.8147 MB / 0.8914 GB, free: 7.363 MB / 0.6387 GB Notification: Performance of NFVerifyModel.verify: time 0.004205/2.246, allocations: 0.6333 MB / 0.892 GB, free: 23.33 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0124/2.258, allocations: 3.62 MB / 0.8955 GB, free: 21.97 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 5.941e-06/2.258, allocations: 2.562 kB / 0.8955 GB, free: 21.97 MB / 0.6544 GB Notification: Performance of FrontEnd: time 4.91e-06/2.258, allocations: 0 / 0.8955 GB, free: 21.97 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 0.000208/2.259, allocations: 0 / 0.8955 GB, free: 21.97 MB / 0.6544 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.0126/2.271, allocations: 2.993 MB / 0.8985 GB, free: 20.09 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 7.398e-05/2.271, allocations: 7.875 kB / 0.8985 GB, free: 20.09 MB / 0.6544 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001829/2.273, allocations: 305.8 kB / 0.8988 GB, free: 19.99 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01482/2.288, allocations: 1.583 MB / 0.9003 GB, free: 19.43 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007543/2.296, allocations: 1.904 MB / 0.9022 GB, free: 18.57 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001923/2.298, allocations: 431.1 kB / 0.9026 GB, free: 18.47 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001267/2.299, allocations: 226.6 kB / 0.9028 GB, free: 18.47 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009777/2.309, allocations: 3.073 MB / 0.9058 GB, free: 17.48 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.862e-05/2.309, allocations: 2.906 kB / 0.9058 GB, free: 17.48 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004576/2.309, allocations: 94.91 kB / 0.9059 GB, free: 17.47 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001381/2.309, allocations: 93.62 kB / 0.906 GB, free: 17.46 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01154/2.321, allocations: 3.204 MB / 0.9091 GB, free: 16.86 MB / 0.6544 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.03827/2.359, allocations: 14.29 MB / 0.9231 GB, free: 7.168 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006141/2.365, allocations: 1.704 MB / 0.9247 GB, free: 6.867 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006013/2.366, allocations: 160.4 kB / 0.9249 GB, free: 6.75 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.405e-05/2.366, allocations: 55.44 kB / 0.9249 GB, free: 6.707 MB / 0.6544 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002267/2.368, allocations: 202 kB / 0.9251 GB, free: 6.602 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=110): time 7.674e-06/2.368, allocations: 0 / 0.9251 GB, free: 6.602 MB / 0.6544 GB Notification: Performance of matching and sorting (n=110): time 0.009044/2.377, allocations: 2.408 MB / 0.9275 GB, free: 6.07 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.764e-05/2.378, allocations: 61.22 kB / 0.9275 GB, free: 6.008 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006602/2.384, allocations: 2.539 MB / 0.93 GB, free: 5.332 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 0.0006995/2.385, allocations: 55.95 kB / 0.9301 GB, free: 5.301 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 0.001723/2.387, allocations: 1.272 MB / 0.9313 GB, free: 4.59 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006998/2.387, allocations: 389.1 kB / 0.9317 GB, free: 4.266 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002113/2.388, allocations: 36.12 kB / 0.9317 GB, free: 4.258 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 0.0002325/2.388, allocations: 374.3 kB / 0.9321 GB, free: 3.914 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003925/2.392, allocations: 0.9904 MB / 0.933 GB, free: 3.18 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004613/2.396, allocations: 1.633 MB / 0.9346 GB, free: 1.602 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004125/2.401, allocations: 1.204 MB / 0.9358 GB, free: 0.7344 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.806e-05/2.401, allocations: 4 kB / 0.9358 GB, free: 0.7305 MB / 0.6544 GB Notification: Performance of matching and sorting (n=216) (initialization): time 0.01161/2.412, allocations: 2.881 MB / 0.9386 GB, free: 14.54 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 0.003272/2.416, allocations: 5.769 MB / 0.9443 GB, free: 8.344 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.64e-05/2.416, allocations: 12 kB / 0.9443 GB, free: 8.332 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.836e-05/2.416, allocations: 24 kB / 0.9443 GB, free: 8.309 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005633/2.422, allocations: 0.5958 MB / 0.9449 GB, free: 7.758 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002229/2.424, allocations: 2.386 MB / 0.9472 GB, free: 5.316 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007987/2.432, allocations: 449.6 kB / 0.9476 GB, free: 4.906 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008733/2.433, allocations: 96.39 kB / 0.9477 GB, free: 4.828 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 2.56e-05/2.433, allocations: 4 kB / 0.9477 GB, free: 4.824 MB / 0.67 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0113/2.444, allocations: 2.637 MB / 0.9503 GB, free: 2.918 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.256e-05/2.444, allocations: 16 kB / 0.9503 GB, free: 2.902 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.334e-05/2.444, allocations: 27.98 kB / 0.9504 GB, free: 2.875 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004465/2.449, allocations: 0.533 MB / 0.9509 GB, free: 2.379 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001169/2.449, allocations: 31.88 kB / 0.9509 GB, free: 2.355 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006444/2.455, allocations: 375.8 kB / 0.9513 GB, free: 2.02 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006929/2.456, allocations: 97.81 kB / 0.9514 GB, free: 1.938 MB / 0.67 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 (masExcFor.i1_w,masExcFor.i2_w,masExcRev.i1_w,masExcRev.i2_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 (linear and non-linear blocks): 4 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 4 {1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002744/2.459, allocations: 0.6248 MB / 0.952 GB, free: 1.539 MB / 0.67 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00125/2.46, allocations: 260.8 kB / 0.9522 GB, free: 1.281 MB / 0.67 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00749/2.468, allocations: 1.888 MB / 0.9541 GB, free: 15.94 MB / 0.6856 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.774e-05/2.468, allocations: 12 kB / 0.9541 GB, free: 15.93 MB / 0.6856 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.15e-05/2.468, allocations: 0 / 0.9541 GB, free: 15.93 MB / 0.6856 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.311e-05/2.468, allocations: 3.984 kB / 0.9541 GB, free: 15.93 MB / 0.6856 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01677/2.485, allocations: 4.526 MB / 0.9585 GB, free: 12.59 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.15e-05/2.485, allocations: 9.859 kB / 0.9585 GB, free: 12.59 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0029/2.488, allocations: 312 kB / 0.9588 GB, free: 12.3 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.531e-05/2.488, allocations: 12 kB / 0.9588 GB, free: 12.29 MB / 0.6856 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001581/2.488, allocations: 33.42 kB / 0.9588 GB, free: 12.27 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001747/2.49, allocations: 2.373 MB / 0.9612 GB, free: 9.844 MB / 0.6856 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.271e-05/2.49, allocations: 11.66 kB / 0.9612 GB, free: 9.836 MB / 0.6856 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007737/2.497, allocations: 2.505 MB / 0.9636 GB, free: 7.469 MB / 0.6856 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002921/2.5, allocations: 0.5444 MB / 0.9642 GB, free: 7.02 MB / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001136/2.501, allocations: 24.62 kB / 0.9642 GB, free: 7.008 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00508/2.507, allocations: 287.1 kB / 0.9645 GB, free: 6.742 MB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002801/2.507, allocations: 72.97 kB / 0.9645 GB, free: 6.684 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003742/2.507, allocations: 65.27 kB / 0.9646 GB, free: 6.633 MB / 0.6856 GB Notification: Performance of sorting global known variables: time 0.006579/2.514, allocations: 1.751 MB / 0.9663 GB, free: 5.355 MB / 0.6856 GB Notification: Performance of sort global known variables: time 8.21e-07/2.514, allocations: 4 kB / 0.9663 GB, free: 5.352 MB / 0.6856 GB Notification: Performance of remove unused functions: time 0.01115/2.525, allocations: 1.3 MB / 0.9676 GB, free: 4.129 MB / 0.6856 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 (linear and non-linear blocks): 4 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 4 {1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01178/2.537, allocations: 4.751 MB / 0.9722 GB, free: 15.7 MB / 0.7012 GB Notification: Performance of simCode: created initialization part: time 0.0165/2.554, allocations: 3.695 MB / 0.9758 GB, free: 12.88 MB / 0.7012 GB Notification: Performance of simCode: created event and clocks part: time 2.234e-05/2.554, allocations: 4 kB / 0.9758 GB, free: 12.88 MB / 0.7012 GB Notification: Performance of simCode: created simulation system equations: time 0.004086/2.558, allocations: 0.8285 MB / 0.9766 GB, free: 12.27 MB / 0.7012 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01239/2.57, allocations: 1.199 MB / 0.9778 GB, free: 11.3 MB / 0.7012 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02874/2.599, allocations: 16.33 MB / 0.9937 GB, free: 10.98 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003339/2.602, allocations: 1.749 MB / 0.9955 GB, free: 9.25 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.008048/2.61, allocations: 0.7857 MB / 0.9962 GB, free: 8.457 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003396/2.614, allocations: 1.01 MB / 0.9972 GB, free: 8.203 MB / 0.7169 GB Notification: Performance of SimCode: time 3.587e-06/2.614, allocations: 0 / 0.9972 GB, free: 8.203 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1687/2.783, allocations: 65.58 MB / 1.061 GB, free: 7.609 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003587/2.783, allocations: 248.6 kB / 1.061 GB, free: 7.277 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.256/9.039, allocations: 1.969 kB / 1.061 GB, free: 7.277 MB / 0.7794 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/linux/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) Environment - environmentSimulation: