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.005409/0.005409, allocations: 99.98 kB / 15.73 MB, free: 6.016 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.001455/0.001455, allocations: 187.8 kB / 16.67 MB, free: 5.93 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.391/1.391, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.8397/0.8397, allocations: 132.2 MB / 422.7 MB, free: 6.562 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001977/0.001977, allocations: 68.2 kB / 0.5809 GB, free: 23.97 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.168/0.17, allocations: 80.2 MB / 0.6592 GB, free: 10.73 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Interfaces.Examples.ReverseFlowMassExchanger): time 0.764/0.934, allocations: 328.4 MB / 0.9799 GB, free: 13.32 MB / 0.7481 GB Notification: Performance of NFInst.instExpressions: time 0.04155/0.9756, allocations: 30.05 MB / 1.009 GB, free: 15.18 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00404/0.9797, allocations: 99.38 kB / 1.009 GB, free: 15.09 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.005868/0.9856, allocations: 2.085 MB / 1.011 GB, free: 12.99 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0137/0.9994, allocations: 4.942 MB / 1.016 GB, free: 8.027 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.009611/1.009, allocations: 3.669 MB / 1.02 GB, free: 4.383 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.01175/1.021, allocations: 6.922 MB / 1.027 GB, free: 13.43 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.005217/1.026, allocations: 2.867 MB / 1.029 GB, free: 10.51 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01394/1.04, allocations: 5.279 MB / 1.035 GB, free: 5.238 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005759/1.046, allocations: 2.417 MB / 1.037 GB, free: 2.824 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 0.001169/1.047, allocations: 296 kB / 1.037 GB, free: 2.535 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01111/1.058, allocations: 4.809 MB / 1.042 GB, free: 13.71 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.001945/1.06, allocations: 1.071 MB / 1.043 GB, free: 12.64 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.00307/1.063, allocations: 1.73 MB / 1.045 GB, free: 10.9 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.012/1.075, allocations: 5.781 MB / 1.05 GB, free: 5.102 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 6.202e-06/1.075, allocations: 0 / 1.05 GB, free: 5.102 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.124e-06/1.075, allocations: 0 / 1.05 GB, free: 5.102 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 0.0001026/1.075, allocations: 0 / 1.05 GB, free: 5.102 MB / 0.8106 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.008051/1.083, allocations: 3.796 MB / 1.054 GB, free: 1.215 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.52e-05/1.083, allocations: 12.03 kB / 1.054 GB, free: 1.203 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004157/1.084, allocations: 307.6 kB / 1.054 GB, free: 0.8906 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3769/1.461, allocations: 1.474 MB / 1.056 GB, free: 318.7 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005189/1.466, allocations: 2.085 MB / 1.058 GB, free: 318.3 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002301/1.466, allocations: 172.3 kB / 1.058 GB, free: 318.3 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006688/1.467, allocations: 224 kB / 1.058 GB, free: 318.3 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007822/1.475, allocations: 3.029 MB / 1.061 GB, free: 317.1 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.856e-05/1.475, allocations: 6.422 kB / 1.061 GB, free: 317.1 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005323/1.475, allocations: 92.69 kB / 1.061 GB, free: 317.1 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000241/1.476, allocations: 89.33 kB / 1.061 GB, free: 317.1 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01434/1.49, allocations: 3.106 MB / 1.064 GB, free: 316.1 MB / 0.8106 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.02579/1.516, allocations: 14.06 MB / 1.078 GB, free: 306.3 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004358/1.52, allocations: 1.654 MB / 1.08 GB, free: 305.7 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00172/1.522, allocations: 0.7767 MB / 1.08 GB, free: 305.3 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006306/1.523, allocations: 327.4 kB / 1.081 GB, free: 305 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.36e-05/1.523, allocations: 50.72 kB / 1.081 GB, free: 304.9 MB / 0.8106 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001792/1.525, allocations: 203.1 kB / 1.081 GB, free: 304.8 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=110): time 5.67e-06/1.525, allocations: 0 / 1.081 GB, free: 304.8 MB / 0.8106 GB Notification: Performance of matching and sorting (n=110): time 0.006971/1.532, allocations: 2.376 MB / 1.083 GB, free: 303.7 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.127e-05/1.532, allocations: 67.34 kB / 1.083 GB, free: 303.7 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005113/1.537, allocations: 2.522 MB / 1.086 GB, free: 302.3 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 0.0004637/1.537, allocations: 54.8 kB / 1.086 GB, free: 302.3 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.001025/1.538, allocations: 1.291 MB / 1.087 GB, free: 301.3 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004243/1.539, allocations: 413 kB / 1.087 GB, free: 301 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008044/1.54, allocations: 397.6 kB / 1.088 GB, free: 300.7 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 6.923e-05/1.54, allocations: 303.3 kB / 1.088 GB, free: 300.4 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002443/1.542, allocations: 0.9499 MB / 1.089 GB, free: 300 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002955/1.545, allocations: 1.587 MB / 1.091 GB, free: 298.8 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004169/1.549, allocations: 2.259 MB / 1.093 GB, free: 297.3 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.315e-05/1.549, allocations: 3.969 kB / 1.093 GB, free: 297.3 MB / 0.8106 GB Notification: Performance of matching and sorting (n=216) (initialization): time 0.006192/1.555, allocations: 2.799 MB / 1.096 GB, free: 295.9 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 5.923e-05/1.556, allocations: 67.28 kB / 1.096 GB, free: 295.9 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.354e-05/1.556, allocations: 15.72 kB / 1.096 GB, free: 295.9 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.854e-05/1.556, allocations: 19.84 kB / 1.096 GB, free: 295.9 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002714/1.558, allocations: 0.5609 MB / 1.096 GB, free: 295.7 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009412/1.559, allocations: 2.394 MB / 1.099 GB, free: 293.3 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003559/1.563, allocations: 286.8 kB / 1.099 GB, free: 293.2 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002811/1.563, allocations: 94.06 kB / 1.099 GB, free: 293.1 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.003354/1.567, allocations: 1.39 MB / 1.1 GB, free: 292.4 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.002658/1.569, allocations: 1.587 MB / 1.102 GB, free: 291.1 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.004166/1.573, allocations: 2.244 MB / 1.104 GB, free: 289.6 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.303e-05/1.573, allocations: 4 kB / 1.104 GB, free: 289.6 MB / 0.8106 GB Notification: Performance of matching and sorting (n=216) (initialization_lambda0): time 0.006166/1.58, allocations: 2.79 MB / 1.107 GB, free: 286.7 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 5.493e-05/1.58, allocations: 75.95 kB / 1.107 GB, free: 286.7 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.871e-05/1.58, allocations: 12 kB / 1.107 GB, free: 286.6 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.023e-05/1.58, allocations: 20 kB / 1.107 GB, free: 286.6 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003265/1.583, allocations: 0.5076 MB / 1.107 GB, free: 286.1 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.679e-05/1.583, allocations: 31.92 kB / 1.107 GB, free: 286.1 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005367/1.588, allocations: 294.3 kB / 1.108 GB, free: 285.8 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004197/1.589, allocations: 93.55 kB / 1.108 GB, free: 285.7 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.0007198/1.59, allocations: 302 kB / 1.108 GB, free: 285.4 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009907/1.591, allocations: 274.3 kB / 1.108 GB, free: 285.1 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0064/1.597, allocations: 1.846 MB / 1.11 GB, free: 283.3 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.693e-05/1.597, allocations: 12 kB / 1.11 GB, free: 283.3 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.059e-05/1.597, allocations: 0 / 1.11 GB, free: 283.3 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.578e-05/1.597, allocations: 7.969 kB / 1.11 GB, free: 283.3 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009075/1.606, allocations: 4.49 MB / 1.114 GB, free: 278.7 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.938e-06/1.606, allocations: 6.75 kB / 1.115 GB, free: 278.7 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001592/1.608, allocations: 296.8 kB / 1.115 GB, free: 278.4 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.242e-05/1.608, allocations: 16 kB / 1.115 GB, free: 278.4 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.701e-05/1.608, allocations: 31.98 kB / 1.115 GB, free: 278.3 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007506/1.609, allocations: 2.368 MB / 1.117 GB, free: 275.9 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.131e-06/1.609, allocations: 7.938 kB / 1.117 GB, free: 275.9 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004441/1.613, allocations: 1.992 MB / 1.119 GB, free: 273.8 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001898/1.615, allocations: 0.5381 MB / 1.12 GB, free: 273.2 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000661/1.616, allocations: 31 kB / 1.12 GB, free: 273.2 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002609/1.619, allocations: 187.5 kB / 1.12 GB, free: 273 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001643/1.619, allocations: 76.73 kB / 1.12 GB, free: 272.9 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001422/1.619, allocations: 63.95 kB / 1.12 GB, free: 272.9 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.002679/1.622, allocations: 1.731 MB / 1.122 GB, free: 271.1 MB / 0.8106 GB Notification: Performance of sort global known variables: time 2.6e-07/1.622, allocations: 0 / 1.122 GB, free: 271.1 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.004049/1.626, allocations: 1.289 MB / 1.123 GB, free: 269.9 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.004404/1.63, allocations: 2.815 MB / 1.126 GB, free: 267 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.007878/1.638, allocations: 3.591 MB / 1.129 GB, free: 263.4 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.124e-05/1.638, allocations: 5.75 kB / 1.129 GB, free: 263.4 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.001824/1.64, allocations: 0.8071 MB / 1.13 GB, free: 262.6 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005897/1.646, allocations: 1.194 MB / 1.131 GB, free: 261.5 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03074/1.677, allocations: 18.89 MB / 1.15 GB, free: 241.8 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008851/1.678, allocations: 1.697 MB / 1.151 GB, free: 240.1 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.002838/1.68, allocations: 0.7807 MB / 1.152 GB, free: 239.3 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001186/1.682, allocations: 1.011 MB / 1.153 GB, free: 238.3 MB / 0.8106 GB Notification: Performance of SimCode: time 1.082e-06/1.682, allocations: 0 / 1.153 GB, free: 238.3 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09952/1.781, allocations: 64.81 MB / 1.216 GB, free: 174.1 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.36/20.14, allocations: 23.73 kB / 1.216 GB, free: 174.1 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 & 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)