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.005495/0.005495, allocations: 103.2 kB / 15.73 MB, free: 6.004 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.001228/0.001228, allocations: 191.2 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.341/1.341, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7602/0.7602, allocations: 132.2 MB / 422.7 MB, free: 6.555 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001231/0.001231, allocations: 70.75 kB / 0.5809 GB, free: 24.13 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.166/0.1672, allocations: 80.21 MB / 0.6592 GB, free: 10.74 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Interfaces.Examples.ReverseFlowMassExchanger): time 0.7665/0.9338, allocations: 328.4 MB / 0.9799 GB, free: 13.34 MB / 0.7481 GB Notification: Performance of NFInst.instExpressions: time 0.03788/0.9717, allocations: 30.04 MB / 1.009 GB, free: 15.22 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.005137/0.9769, allocations: 95.44 kB / 1.009 GB, free: 15.12 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0068/0.9838, allocations: 2.167 MB / 1.011 GB, free: 12.95 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.01399/0.9978, allocations: 5.158 MB / 1.016 GB, free: 7.77 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.008741/1.007, allocations: 3.707 MB / 1.02 GB, free: 4.09 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.008978/1.016, allocations: 6.94 MB / 1.027 GB, free: 13.12 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00395/1.02, allocations: 2.855 MB / 1.03 GB, free: 10.21 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01174/1.031, allocations: 5.468 MB / 1.035 GB, free: 4.75 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004072/1.035, allocations: 2.415 MB / 1.037 GB, free: 2.34 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 0.0006014/1.036, allocations: 295.9 kB / 1.038 GB, free: 2.051 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.008761/1.045, allocations: 4.825 MB / 1.042 GB, free: 13.21 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.001331/1.046, allocations: 1.059 MB / 1.043 GB, free: 12.15 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.003333/1.049, allocations: 1.738 MB / 1.045 GB, free: 10.41 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.01194/1.061, allocations: 5.757 MB / 1.051 GB, free: 4.633 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 7.965e-06/1.061, allocations: 4 kB / 1.051 GB, free: 4.629 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.693e-06/1.061, allocations: 4 kB / 1.051 GB, free: 4.625 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 0.0001971/1.062, allocations: 0 / 1.051 GB, free: 4.625 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.009816/1.071, allocations: 3.696 MB / 1.054 GB, free: 0.8438 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 5.236e-05/1.072, allocations: 8.031 kB / 1.054 GB, free: 0.8359 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005456/1.072, allocations: 295.6 kB / 1.055 GB, free: 0.5352 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.4002/1.472, allocations: 1.464 MB / 1.056 GB, free: 319.7 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005127/1.477, allocations: 2.069 MB / 1.058 GB, free: 319.2 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002837/1.478, allocations: 168.6 kB / 1.058 GB, free: 319.2 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008241/1.479, allocations: 224.3 kB / 1.058 GB, free: 319.2 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00779/1.486, allocations: 3.034 MB / 1.061 GB, free: 318 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.215e-05/1.487, allocations: 1.969 kB / 1.061 GB, free: 318 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003225/1.487, allocations: 92.41 kB / 1.062 GB, free: 318 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001337/1.487, allocations: 92.31 kB / 1.062 GB, free: 318 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00794/1.495, allocations: 3.106 MB / 1.065 GB, free: 317 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.02317/1.518, allocations: 14.03 MB / 1.078 GB, free: 307.1 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003917/1.522, allocations: 1.657 MB / 1.08 GB, free: 306.4 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001593/1.524, allocations: 0.7781 MB / 1.081 GB, free: 306 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005564/1.524, allocations: 325.6 kB / 1.081 GB, free: 305.7 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.086e-05/1.524, allocations: 52.39 kB / 1.081 GB, free: 305.6 MB / 0.8106 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001377/1.526, allocations: 203.2 kB / 1.081 GB, free: 305.5 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=110): time 4.037e-06/1.526, allocations: 1.312 kB / 1.081 GB, free: 305.5 MB / 0.8106 GB Notification: Performance of matching and sorting (n=110): time 0.005377/1.531, allocations: 2.355 MB / 1.084 GB, free: 304.4 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.273e-05/1.531, allocations: 67.72 kB / 1.084 GB, free: 304.3 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003471/1.535, allocations: 2.512 MB / 1.086 GB, free: 303 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 0.0002074/1.535, allocations: 54.92 kB / 1.086 GB, free: 303 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007329/1.536, allocations: 1.271 MB / 1.087 GB, free: 301.8 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002279/1.536, allocations: 391.6 kB / 1.088 GB, free: 301.5 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005991/1.536, allocations: 393.2 kB / 1.088 GB, free: 301.3 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 4.468e-05/1.537, allocations: 305.1 kB / 1.088 GB, free: 301 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002075/1.539, allocations: 0.955 MB / 1.089 GB, free: 300.6 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002297/1.541, allocations: 1.589 MB / 1.091 GB, free: 299.3 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003575/1.544, allocations: 2.259 MB / 1.093 GB, free: 297.8 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.177e-06/1.545, allocations: 3.969 kB / 1.093 GB, free: 297.8 MB / 0.8106 GB Notification: Performance of matching and sorting (n=216) (initialization): time 0.005427/1.55, allocations: 2.785 MB / 1.096 GB, free: 296.5 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 5.989e-05/1.55, allocations: 76.77 kB / 1.096 GB, free: 296.4 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.101e-05/1.55, allocations: 11.91 kB / 1.096 GB, free: 296.4 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.655e-05/1.55, allocations: 23.75 kB / 1.096 GB, free: 296.4 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002735/1.553, allocations: 0.5597 MB / 1.096 GB, free: 296.2 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009386/1.554, allocations: 2.39 MB / 1.099 GB, free: 293.8 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003456/1.557, allocations: 280 kB / 1.099 GB, free: 293.7 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002936/1.558, allocations: 98.36 kB / 1.099 GB, free: 293.7 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002858/1.56, allocations: 1.388 MB / 1.101 GB, free: 292.9 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.002262/1.563, allocations: 1.586 MB / 1.102 GB, free: 291.7 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.003569/1.566, allocations: 2.244 MB / 1.104 GB, free: 289.8 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.834e-06/1.566, allocations: 4 kB / 1.104 GB, free: 289.8 MB / 0.8106 GB Notification: Performance of matching and sorting (n=216) (initialization_lambda0): time 0.005257/1.572, allocations: 2.781 MB / 1.107 GB, free: 287 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 5.645e-05/1.572, allocations: 75.39 kB / 1.107 GB, free: 286.9 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.696e-05/1.572, allocations: 12 kB / 1.107 GB, free: 286.9 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.915e-05/1.572, allocations: 24 kB / 1.107 GB, free: 286.8 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002206/1.574, allocations: 0.5038 MB / 1.108 GB, free: 286.3 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.534e-05/1.574, allocations: 31.86 kB / 1.108 GB, free: 286.3 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003075/1.577, allocations: 297.5 kB / 1.108 GB, free: 286 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001772/1.577, allocations: 91.95 kB / 1.108 GB, free: 285.9 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.0005585/1.578, allocations: 298.1 kB / 1.108 GB, free: 285.6 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006001/1.578, allocations: 264.7 kB / 1.109 GB, free: 285.4 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003614/1.582, allocations: 1.843 MB / 1.11 GB, free: 283.5 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.025e-06/1.582, allocations: 8 kB / 1.11 GB, free: 283.5 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.136e-06/1.582, allocations: 4 kB / 1.11 GB, free: 283.5 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.097e-06/1.582, allocations: 7.969 kB / 1.11 GB, free: 283.5 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006841/1.589, allocations: 4.493 MB / 1.115 GB, free: 278.9 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.406e-06/1.589, allocations: 8 kB / 1.115 GB, free: 278.9 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001476/1.59, allocations: 313.1 kB / 1.115 GB, free: 278.6 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.211e-05/1.59, allocations: 8 kB / 1.115 GB, free: 278.6 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.107e-05/1.591, allocations: 27.98 kB / 1.115 GB, free: 278.5 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006205/1.591, allocations: 2.371 MB / 1.117 GB, free: 276.1 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.388e-06/1.591, allocations: 8 kB / 1.117 GB, free: 276.1 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003358/1.595, allocations: 1.979 MB / 1.119 GB, free: 274 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001003/1.596, allocations: 0.5251 MB / 1.12 GB, free: 273.4 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002941/1.596, allocations: 23.94 kB / 1.12 GB, free: 273.4 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001981/1.598, allocations: 175.8 kB / 1.12 GB, free: 273.2 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001272/1.598, allocations: 80.78 kB / 1.12 GB, free: 273.2 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001384/1.598, allocations: 63.95 kB / 1.12 GB, free: 273.1 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.002409/1.601, allocations: 1.731 MB / 1.122 GB, free: 271.4 MB / 0.8106 GB Notification: Performance of sort global known variables: time 6.21e-07/1.601, allocations: 0 / 1.122 GB, free: 271.4 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.003491/1.604, allocations: 1.288 MB / 1.123 GB, free: 270.1 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.003995/1.608, allocations: 2.796 MB / 1.126 GB, free: 267.3 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.006943/1.615, allocations: 3.598 MB / 1.129 GB, free: 263.6 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 8.286e-06/1.615, allocations: 5.875 kB / 1.129 GB, free: 263.6 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.001537/1.617, allocations: 0.811 MB / 1.13 GB, free: 262.8 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004502/1.621, allocations: 1.182 MB / 1.131 GB, free: 261.7 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02515/1.646, allocations: 18.81 MB / 1.15 GB, free: 242.2 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008688/1.647, allocations: 1.701 MB / 1.151 GB, free: 240.5 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.002763/1.65, allocations: 0.7803 MB / 1.152 GB, free: 239.7 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001153/1.651, allocations: 1.011 MB / 1.153 GB, free: 238.7 MB / 0.8106 GB Notification: Performance of SimCode: time 7.82e-07/1.651, allocations: 0 / 1.153 GB, free: 238.7 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08809/1.739, allocations: 64.82 MB / 1.216 GB, free: 174.5 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.97/17.71, allocations: 10.47 kB / 1.216 GB, free: 174.4 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)