Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: "" <> buildModelFMU(BuildingSystems.Fluid.Interfaces.Examples.ReverseFlowMassExchanger,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Interfaces_Examples_ReverseFlowMassExchanger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Interfaces.Examples.ReverseFlowMassExchanger,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Interfaces_Examples_ReverseFlowMassExchanger",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8618/0.8618, allocations: 143.3 MB / 158.3 MB, free: 5.793 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001257/0.001257, allocations: 177.1 kB / 191.5 MB, free: 5.762 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.631/1.631, allocations: 223.2 MB / 447.7 MB, free: 4.809 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001038/0.001038, allocations: 88.33 kB / 0.5187 GB, free: 1.168 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002055/0.002056, allocations: 281.1 kB / 0.6005 GB, free: 48.75 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004875/0.0004876, allocations: 11.53 kB / 0.6929 GB, free: 59.57 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2185/0.2191, allocations: 82.8 MB / 0.7738 GB, free: 13.76 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.495/5.714, allocations: 1.861 GB / 2.635 GB, free: 215.4 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00039/5.715, allocations: 96.08 kB / 2.635 GB, free: 215.4 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 11.13/16.85, allocations: 2.84 GB / 5.475 GB, free: 64.18 MB / 0.823 GB Notification: Performance of FrontEnd: time 2.184e-06/16.85, allocations: 0 / 5.475 GB, free: 64.18 MB / 0.823 GB Notification: Performance of Transformations before backend: time 0.0003478/16.85, allocations: 68.73 kB / 5.475 GB, free: 64.18 MB / 0.823 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.01566/16.86, allocations: 3.917 MB / 5.479 GB, free: 62.89 MB / 0.823 GB Notification: Performance of prepare preOptimizeDAE: time 4.915e-05/16.86, allocations: 18.34 kB / 5.479 GB, free: 62.89 MB / 0.823 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001553/16.87, allocations: 303.9 kB / 5.479 GB, free: 62.84 MB / 0.823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01036/16.88, allocations: 1.196 MB / 5.48 GB, free: 62.67 MB / 0.823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008935/16.89, allocations: 2.589 MB / 5.483 GB, free: 62.27 MB / 0.823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001289/16.89, allocations: 435.3 kB / 5.483 GB, free: 62.26 MB / 0.823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008872/16.89, allocations: 224.5 kB / 5.484 GB, free: 62.26 MB / 0.823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0074/16.9, allocations: 3.124 MB / 5.487 GB, free: 61.85 MB / 0.823 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.832e-05/16.9, allocations: 7.031 kB / 5.487 GB, free: 61.85 MB / 0.823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003547/16.9, allocations: 93.08 kB / 5.487 GB, free: 61.85 MB / 0.823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.222e-05/16.9, allocations: 91.7 kB / 5.487 GB, free: 61.84 MB / 0.823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007699/16.9, allocations: 3.228 MB / 5.49 GB, free: 61.81 MB / 0.823 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.02424/16.93, allocations: 14.07 MB / 5.504 GB, free: 54.42 MB / 0.823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003921/16.93, allocations: 1.717 MB / 5.505 GB, free: 54.38 MB / 0.823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005674/16.93, allocations: 323.2 kB / 5.506 GB, free: 54.1 MB / 0.823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.498e-05/16.93, allocations: 57.84 kB / 5.506 GB, free: 54.06 MB / 0.823 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002082/16.93, allocations: 214.5 kB / 5.506 GB, free: 54.02 MB / 0.823 GB Notification: Performance of pre-optimization done (n=110): time 5.21e-06/16.93, allocations: 1.312 kB / 5.506 GB, free: 54.02 MB / 0.823 GB Notification: Performance of matching and sorting (n=110): time 0.005775/16.94, allocations: 2.391 MB / 5.508 GB, free: 53.84 MB / 0.823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.741e-05/16.94, allocations: 68.03 kB / 5.508 GB, free: 53.77 MB / 0.823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003965/16.94, allocations: 2.236 MB / 5.511 GB, free: 53.55 MB / 0.823 GB Notification: Performance of collectPreVariables (initialization): time 0.0004142/16.94, allocations: 57.52 kB / 5.511 GB, free: 53.52 MB / 0.823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009873/16.95, allocations: 1.27 MB / 5.512 GB, free: 53.05 MB / 0.823 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003759/16.95, allocations: 388.2 kB / 5.512 GB, free: 52.82 MB / 0.823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001384/16.95, allocations: 39 kB / 5.512 GB, free: 52.82 MB / 0.823 GB Notification: Performance of setup shared object (initialization): time 0.0001076/16.95, allocations: 373.5 kB / 5.513 GB, free: 52.51 MB / 0.823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002333/16.95, allocations: 0.9946 MB / 5.514 GB, free: 52.5 MB / 0.823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002718/16.95, allocations: 1.671 MB / 5.515 GB, free: 51.73 MB / 0.823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002723/16.95, allocations: 1.213 MB / 5.516 GB, free: 51.65 MB / 0.823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.389e-05/16.95, allocations: 6.156 kB / 5.516 GB, free: 51.65 MB / 0.823 GB Notification: Performance of matching and sorting (n=216) (initialization): time 0.006486/16.96, allocations: 2.886 MB / 5.519 GB, free: 51.39 MB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 0.001184/16.96, allocations: 5.775 MB / 5.525 GB, free: 45.29 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.244e-05/16.96, allocations: 15 kB / 5.525 GB, free: 45.29 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.262e-05/16.96, allocations: 23.47 kB / 5.525 GB, free: 45.29 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002977/16.97, allocations: 0.5678 MB / 5.525 GB, free: 45.29 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009772/16.97, allocations: 2.386 MB / 5.528 GB, free: 42.96 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004612/16.97, allocations: 470.3 kB / 5.528 GB, free: 42.93 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005481/16.97, allocations: 91.27 kB / 5.528 GB, free: 42.93 MB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 2.454e-05/16.97, allocations: 4.875 kB / 5.528 GB, free: 42.93 MB / 0.823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006808/16.98, allocations: 2.651 MB / 5.531 GB, free: 42.83 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.809e-05/16.98, allocations: 11.91 kB / 5.531 GB, free: 42.83 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.028e-05/16.98, allocations: 28.52 kB / 5.531 GB, free: 42.83 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002595/16.98, allocations: 0.5345 MB / 5.532 GB, free: 42.83 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.009e-05/16.98, allocations: 32.3 kB / 5.532 GB, free: 42.83 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003895/16.98, allocations: 404 kB / 5.532 GB, free: 42.8 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00029/16.99, allocations: 94.34 kB / 5.532 GB, free: 42.8 MB / 0.823 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.001803/16.99, allocations: 0.6262 MB / 5.533 GB, free: 42.6 MB / 0.823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006918/16.99, allocations: 259.9 kB / 5.533 GB, free: 42.46 MB / 0.823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004241/16.99, allocations: 1.879 MB / 5.535 GB, free: 42.36 MB / 0.823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.166e-05/16.99, allocations: 14.89 kB / 5.535 GB, free: 42.36 MB / 0.823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.065e-05/16.99, allocations: 5.312 kB / 5.535 GB, free: 42.36 MB / 0.823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.165e-05/16.99, allocations: 2.578 kB / 5.535 GB, free: 42.36 MB / 0.823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009862/17, allocations: 4.493 MB / 5.539 GB, free: 41.8 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-05/17, allocations: 9.281 kB / 5.539 GB, free: 41.8 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001676/17, allocations: 314.4 kB / 5.539 GB, free: 41.8 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.831e-05/17, allocations: 10.47 kB / 5.539 GB, free: 41.8 MB / 0.823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.738e-05/17, allocations: 31.25 kB / 5.539 GB, free: 41.8 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007887/17, allocations: 2.374 MB / 5.542 GB, free: 39.46 MB / 0.823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.725e-06/17, allocations: 13.23 kB / 5.542 GB, free: 39.45 MB / 0.823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004255/17.01, allocations: 2.491 MB / 5.544 GB, free: 38.26 MB / 0.823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00196/17.01, allocations: 0.5461 MB / 5.545 GB, free: 38.03 MB / 0.823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008131/17.01, allocations: 24.56 kB / 5.545 GB, free: 38.03 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003225/17.02, allocations: 285.5 kB / 5.545 GB, free: 38.02 MB / 0.823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001998/17.02, allocations: 80.78 kB / 5.545 GB, free: 38.01 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001806/17.02, allocations: 65.25 kB / 5.545 GB, free: 38.01 MB / 0.823 GB Notification: Performance of sorting global known variables: time 0.003509/17.02, allocations: 1.75 MB / 5.547 GB, free: 37.87 MB / 0.823 GB Notification: Performance of sort global known variables: time 2.7e-07/17.02, allocations: 0 / 5.547 GB, free: 37.87 MB / 0.823 GB Notification: Performance of remove unused functions: time 0.008377/17.03, allocations: 1.931 MB / 5.549 GB, free: 37.73 MB / 0.823 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.01724/17.04, allocations: 12.03 MB / 5.561 GB, free: 30.64 MB / 0.823 GB Notification: Performance of simCode: created initialization part: time 0.00899/17.05, allocations: 3.667 MB / 5.564 GB, free: 30.37 MB / 0.823 GB Notification: Performance of simCode: created event and clocks part: time 1.671e-05/17.05, allocations: 1.875 kB / 5.564 GB, free: 30.37 MB / 0.823 GB Notification: Performance of simCode: created simulation system equations: time 0.001831/17.06, allocations: 0.8149 MB / 5.565 GB, free: 30.36 MB / 0.823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006155/17.06, allocations: 1.193 MB / 5.566 GB, free: 30.33 MB / 0.823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01596/17.08, allocations: 16.4 MB / 5.582 GB, free: 32.96 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001449/17.08, allocations: 1.746 MB / 5.584 GB, free: 32.21 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.004498/17.08, allocations: 0.7874 MB / 5.585 GB, free: 32.19 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001731/17.09, allocations: 1.016 MB / 5.586 GB, free: 32.18 MB / 0.8386 GB Notification: Performance of SimCode: time 1.132e-06/17.09, allocations: 0 / 5.586 GB, free: 32.18 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2449/17.33, allocations: 151.1 MB / 5.733 GB, free: 13.57 MB / 0.8542 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002487/17.33, allocations: 273.9 kB / 5.733 GB, free: 13.2 MB / 0.8542 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.775/25.11, allocations: 64 / 5.733 GB, free: 13.2 MB / 0.8542 GB (rm -f BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_Interfaces_Examples_ReverseFlowMassExchanger_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_Interfaces_Examples_ReverseFlowMassExchanger.fmu > BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.pipe 2>&1)