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.008084/0.008084, allocations: 101.4 kB / 15.73 MB, free: 6.051 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.001771/0.001771, allocations: 188.4 kB / 16.67 MB, free: 5.98 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.377/1.377, allocations: 222.9 MB / 240.4 MB, free: 4.293 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.963/0.963, allocations: 135.1 MB / 425.7 MB, free: 12.02 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001566/0.001566, allocations: 67.89 kB / 0.5852 GB, free: 3.844 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4602/0.4618, allocations: 80.91 MB / 0.6642 GB, free: 7.289 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Interfaces.Examples.ReverseFlowMassExchanger): time 0.8137/1.275, allocations: 328.4 MB / 0.9849 GB, free: 80 kB / 0.6856 GB Notification: Performance of NFInst.instExpressions: time 0.03876/1.314, allocations: 30.04 MB / 1.014 GB, free: 5.938 MB / 0.7012 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00484/1.319, allocations: 95.34 kB / 1.014 GB, free: 5.938 MB / 0.7012 GB Notification: Performance of NFTyping.typeComponents: time 0.006414/1.326, allocations: 2.174 MB / 1.016 GB, free: 4.793 MB / 0.7012 GB Notification: Performance of NFTyping.typeBindings: time 0.01591/1.342, allocations: 5.15 MB / 1.021 GB, free: 0.6875 MB / 0.7012 GB Notification: Performance of NFTyping.typeClassSections: time 0.01109/1.353, allocations: 3.713 MB / 1.025 GB, free: 13.3 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.01129/1.364, allocations: 6.929 MB / 1.032 GB, free: 6.363 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004695/1.369, allocations: 2.883 MB / 1.035 GB, free: 3.422 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01615/1.385, allocations: 5.451 MB / 1.04 GB, free: 13.98 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005672/1.391, allocations: 2.415 MB / 1.042 GB, free: 11.56 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 0.001196/1.392, allocations: 300 kB / 1.043 GB, free: 11.27 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01097/1.403, allocations: 4.817 MB / 1.047 GB, free: 6.441 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.002206/1.405, allocations: 1.063 MB / 1.048 GB, free: 5.375 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.004284/1.409, allocations: 1.738 MB / 1.05 GB, free: 3.629 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.01346/1.423, allocations: 5.753 MB / 1.056 GB, free: 13.86 MB / 0.7481 GB Notification: Performance of FrontEnd - DAE generated: time 9.548e-06/1.423, allocations: 0 / 1.056 GB, free: 13.86 MB / 0.7481 GB Notification: Performance of FrontEnd: time 2.224e-06/1.423, allocations: 3.938 kB / 1.056 GB, free: 13.85 MB / 0.7481 GB Notification: Performance of Transformations before backend: time 0.0001938/1.423, allocations: 0 / 1.056 GB, free: 13.85 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.01014/1.433, allocations: 3.704 MB / 1.059 GB, free: 10.06 MB / 0.7481 GB Notification: Performance of prepare preOptimizeDAE: time 4.724e-05/1.433, allocations: 8.031 kB / 1.059 GB, free: 10.05 MB / 0.7481 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008064/1.434, allocations: 295.6 kB / 1.06 GB, free: 9.754 MB / 0.7481 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009566/1.444, allocations: 1.467 MB / 1.061 GB, free: 8.281 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004901/1.449, allocations: 2.061 MB / 1.063 GB, free: 6.141 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002103/1.449, allocations: 172.1 kB / 1.063 GB, free: 5.969 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007253/1.45, allocations: 216 kB / 1.063 GB, free: 5.758 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007564/1.457, allocations: 3.042 MB / 1.066 GB, free: 2.578 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.311e-05/1.457, allocations: 7.938 kB / 1.066 GB, free: 2.57 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005048/1.458, allocations: 91.98 kB / 1.066 GB, free: 2.48 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001275/1.458, allocations: 95.94 kB / 1.067 GB, free: 2.383 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007629/1.466, allocations: 3.107 MB / 1.07 GB, free: 15.26 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.02503/1.491, allocations: 14.02 MB / 1.083 GB, free: 140 kB / 0.7637 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00413/1.495, allocations: 1.66 MB / 1.085 GB, free: 14.47 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001726/1.497, allocations: 0.7728 MB / 1.086 GB, free: 13.7 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006692/1.497, allocations: 325.2 kB / 1.086 GB, free: 13.32 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.11e-05/1.497, allocations: 51.56 kB / 1.086 GB, free: 13.26 MB / 0.7794 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001381/1.499, allocations: 202.1 kB / 1.086 GB, free: 13.06 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=110): time 7.103e-06/1.499, allocations: 0 / 1.086 GB, free: 13.06 MB / 0.7794 GB Notification: Performance of matching and sorting (n=110): time 0.006026/1.505, allocations: 2.363 MB / 1.089 GB, free: 10.7 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.267e-05/1.505, allocations: 64.41 kB / 1.089 GB, free: 10.62 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004856/1.51, allocations: 2.509 MB / 1.091 GB, free: 8.09 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 0.0003522/1.51, allocations: 61.7 kB / 1.091 GB, free: 8.023 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.001213/1.511, allocations: 1.265 MB / 1.092 GB, free: 6.742 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004845/1.512, allocations: 390.4 kB / 1.093 GB, free: 6.355 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009969/1.513, allocations: 395 kB / 1.093 GB, free: 5.965 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 9.845e-05/1.513, allocations: 305.1 kB / 1.093 GB, free: 5.664 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002371/1.515, allocations: 0.9533 MB / 1.094 GB, free: 4.707 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003023/1.518, allocations: 1.587 MB / 1.096 GB, free: 2.848 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004734/1.523, allocations: 2.249 MB / 1.098 GB, free: 408 kB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.026e-05/1.523, allocations: 4 kB / 1.098 GB, free: 404 kB / 0.7794 GB Notification: Performance of matching and sorting (n=216) (initialization): time 0.006887/1.53, allocations: 2.793 MB / 1.101 GB, free: 13.58 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 8.569e-05/1.53, allocations: 74.02 kB / 1.101 GB, free: 13.5 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.798e-05/1.53, allocations: 12 kB / 1.101 GB, free: 13.48 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.707e-05/1.53, allocations: 28.28 kB / 1.101 GB, free: 13.46 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002881/1.533, allocations: 0.5578 MB / 1.101 GB, free: 12.9 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001424/1.535, allocations: 2.387 MB / 1.104 GB, free: 10.42 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003345/1.538, allocations: 291.6 kB / 1.104 GB, free: 10.13 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000332/1.538, allocations: 99.89 kB / 1.104 GB, free: 10.04 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.003432/1.542, allocations: 1.386 MB / 1.106 GB, free: 8.645 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.002975/1.545, allocations: 1.591 MB / 1.107 GB, free: 6.785 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.004565/1.549, allocations: 2.246 MB / 1.109 GB, free: 4.34 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.994e-05/1.549, allocations: 4 kB / 1.109 GB, free: 4.336 MB / 0.795 GB Notification: Performance of matching and sorting (n=216) (initialization_lambda0): time 0.00682/1.556, allocations: 2.77 MB / 1.112 GB, free: 1.543 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 9.24e-05/1.556, allocations: 75.39 kB / 1.112 GB, free: 1.457 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.643e-05/1.556, allocations: 16 kB / 1.112 GB, free: 1.441 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.585e-05/1.557, allocations: 23.94 kB / 1.112 GB, free: 1.418 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00249/1.559, allocations: 0.5072 MB / 1.113 GB, free: 0.9102 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.121e-05/1.559, allocations: 27.94 kB / 1.113 GB, free: 0.8828 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003254/1.562, allocations: 296 kB / 1.113 GB, free: 0.5977 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002877/1.563, allocations: 95.95 kB / 1.113 GB, free: 0.5039 MB / 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.0006686/1.563, allocations: 299 kB / 1.113 GB, free: 212 kB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008402/1.564, allocations: 260.8 kB / 1.113 GB, free: 15.95 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004677/1.569, allocations: 1.851 MB / 1.115 GB, free: 14.08 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.479e-05/1.569, allocations: 15.94 kB / 1.115 GB, free: 14.07 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.718e-06/1.569, allocations: 0 / 1.115 GB, free: 14.07 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.277e-05/1.569, allocations: 11.92 kB / 1.115 GB, free: 14.05 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00957/1.579, allocations: 4.497 MB / 1.12 GB, free: 9.414 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.594e-05/1.579, allocations: 4 kB / 1.12 GB, free: 9.41 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001661/1.58, allocations: 295.7 kB / 1.12 GB, free: 9.121 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.262e-05/1.58, allocations: 8 kB / 1.12 GB, free: 9.113 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000126/1.58, allocations: 35.98 kB / 1.12 GB, free: 9.078 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001161/1.582, allocations: 2.368 MB / 1.122 GB, free: 6.617 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.256e-06/1.582, allocations: 11.94 kB / 1.122 GB, free: 6.605 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004226/1.586, allocations: 1.967 MB / 1.124 GB, free: 4.547 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001554/1.587, allocations: 0.5289 MB / 1.125 GB, free: 3.996 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007691/1.588, allocations: 35.88 kB / 1.125 GB, free: 3.961 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0025/1.591, allocations: 177.3 kB / 1.125 GB, free: 3.789 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001494/1.591, allocations: 80.73 kB / 1.125 GB, free: 3.711 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001945/1.591, allocations: 67.94 kB / 1.125 GB, free: 3.645 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.003541/1.595, allocations: 1.727 MB / 1.127 GB, free: 1.914 MB / 0.8106 GB Notification: Performance of sort global known variables: time 3.61e-07/1.595, allocations: 0 / 1.127 GB, free: 1.914 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.004998/1.6, allocations: 1.287 MB / 1.128 GB, free: 0.625 MB / 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.005596/1.605, allocations: 2.795 MB / 1.131 GB, free: 13.74 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.008918/1.614, allocations: 3.581 MB / 1.134 GB, free: 10.12 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.386e-05/1.614, allocations: 4 kB / 1.134 GB, free: 10.11 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.001991/1.616, allocations: 0.8116 MB / 1.135 GB, free: 9.305 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006865/1.623, allocations: 1.191 MB / 1.136 GB, free: 8.125 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04096/1.664, allocations: 18.8 MB / 1.155 GB, free: 4.59 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002038/1.666, allocations: 1.697 MB / 1.156 GB, free: 2.855 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.003986/1.67, allocations: 0.7816 MB / 1.157 GB, free: 2.07 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001922/1.672, allocations: 1.019 MB / 1.158 GB, free: 1.055 MB / 0.8419 GB Notification: Performance of SimCode: time 1.683e-06/1.672, allocations: 3.938 kB / 1.158 GB, free: 1.051 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4679/2.14, allocations: 64.84 MB / 1.221 GB, free: 382.4 MB / 0.8887 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.44/18.58, allocations: 4.266 kB / 1.221 GB, free: 382.4 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Fluid_Interfaces_Examples_ReverseFlowMassExchanger_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 IDEAS_dev_IDEAS_Fluid_Interfaces_Examples_ReverseFlowMassExchanger.fmu > IDEAS_dev_IDEAS.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.pipe 2>&1)