Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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) 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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger,fileNamePrefix="Buildings_9_Buildings_Fluid_Interfaces_Examples_ReverseFlowMassExchanger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger,fileNamePrefix="Buildings_9_Buildings_Fluid_Interfaces_Examples_ReverseFlowMassExchanger",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.244/2.244, allocations: 390.3 MB / 405.3 MB, free: 13.35 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001222/0.001222, allocations: 185 kB / 498.1 MB, free: 5.613 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.685/1.685, allocations: 223.2 MB / 0.7948 GB, free: 17.97 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000969/0.0009691, allocations: 100.3 kB / 0.9346 GB, free: 6.254 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003764/0.0003764, allocations: 13.03 kB / 1.084 GB, free: 221.2 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3256/0.326, allocations: 142.3 MB / 1.223 GB, free: 114.2 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.465/4.791, allocations: 1.901 GB / 3.124 GB, free: 85.23 MB / 1.167 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002661/4.791, allocations: 95.39 kB / 3.124 GB, free: 85.18 MB / 1.167 GB Notification: Performance of FrontEnd - DAE generated: time 9.96/14.75, allocations: 2.839 GB / 5.963 GB, free: 132.6 MB / 1.26 GB Notification: Performance of FrontEnd: time 3.206e-06/14.75, allocations: 1.625 kB / 5.963 GB, free: 132.6 MB / 1.26 GB Notification: Performance of Transformations before backend: time 0.000251/14.75, allocations: 68.42 kB / 5.963 GB, free: 132.6 MB / 1.26 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.01372/14.77, allocations: 3.919 MB / 5.967 GB, free: 131.7 MB / 1.26 GB Notification: Performance of prepare preOptimizeDAE: time 4.478e-05/14.77, allocations: 9.875 kB / 5.967 GB, free: 131.7 MB / 1.26 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001092/14.77, allocations: 303.3 kB / 5.967 GB, free: 131.6 MB / 1.26 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009768/14.78, allocations: 1.201 MB / 5.968 GB, free: 131.4 MB / 1.26 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007871/14.78, allocations: 2.586 MB / 5.971 GB, free: 131 MB / 1.26 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001427/14.79, allocations: 435.6 kB / 5.971 GB, free: 131 MB / 1.26 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001024/14.79, allocations: 228.5 kB / 5.972 GB, free: 131 MB / 1.26 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006195/14.79, allocations: 3.13 MB / 5.975 GB, free: 130.6 MB / 1.26 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.145e-05/14.79, allocations: 2.625 kB / 5.975 GB, free: 130.6 MB / 1.26 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002797/14.79, allocations: 89.25 kB / 5.975 GB, free: 130.6 MB / 1.26 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.658e-05/14.79, allocations: 88.16 kB / 5.975 GB, free: 130.6 MB / 1.26 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006738/14.8, allocations: 3.231 MB / 5.978 GB, free: 130.6 MB / 1.26 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.02431/14.82, allocations: 14.08 MB / 5.992 GB, free: 123.2 MB / 1.26 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003846/14.83, allocations: 1.714 MB / 5.993 GB, free: 123.1 MB / 1.26 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005843/14.83, allocations: 329.4 kB / 5.994 GB, free: 122.9 MB / 1.26 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.467e-05/14.83, allocations: 48.31 kB / 5.994 GB, free: 122.8 MB / 1.26 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002087/14.83, allocations: 216.5 kB / 5.994 GB, free: 122.8 MB / 1.26 GB Notification: Performance of pre-optimization done (n=110): time 9.358e-06/14.83, allocations: 0 / 5.994 GB, free: 122.8 MB / 1.26 GB Notification: Performance of matching and sorting (n=110): time 0.006206/14.84, allocations: 2.392 MB / 5.996 GB, free: 122.6 MB / 1.26 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.195e-05/14.84, allocations: 66.5 kB / 5.996 GB, free: 122.5 MB / 1.26 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004813/14.84, allocations: 2.242 MB / 5.999 GB, free: 122.3 MB / 1.26 GB Notification: Performance of collectPreVariables (initialization): time 0.0003769/14.84, allocations: 56.95 kB / 5.999 GB, free: 122.3 MB / 1.26 GB Notification: Performance of collectInitialEqns (initialization): time 0.001129/14.84, allocations: 1.279 MB / 6 GB, free: 121.9 MB / 1.26 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004466/14.84, allocations: 388.8 kB / 6 GB, free: 121.7 MB / 1.26 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002076/14.84, allocations: 38.44 kB / 6 GB, free: 121.7 MB / 1.26 GB Notification: Performance of setup shared object (initialization): time 0.0001112/14.84, allocations: 368.9 kB / 6.001 GB, free: 121.4 MB / 1.26 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002419/14.85, allocations: 0.9982 MB / 6.002 GB, free: 121.4 MB / 1.26 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002861/14.85, allocations: 1.662 MB / 6.003 GB, free: 120.7 MB / 1.26 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002633/14.85, allocations: 1.217 MB / 6.004 GB, free: 120.6 MB / 1.26 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-05/14.85, allocations: 3.906 kB / 6.004 GB, free: 120.6 MB / 1.26 GB Notification: Performance of matching and sorting (n=216) (initialization): time 0.006441/14.86, allocations: 2.884 MB / 6.007 GB, free: 120.3 MB / 1.26 GB Notification: Performance of prepare postOptimizeDAE: time 0.001244/14.86, allocations: 5.777 MB / 6.013 GB, free: 114.2 MB / 1.26 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.186e-05/14.86, allocations: 14.78 kB / 6.013 GB, free: 114.2 MB / 1.26 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.19e-05/14.86, allocations: 24.16 kB / 6.013 GB, free: 114.2 MB / 1.26 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002947/14.86, allocations: 0.5643 MB / 6.013 GB, free: 114.2 MB / 1.26 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009761/14.86, allocations: 2.393 MB / 6.016 GB, free: 111.9 MB / 1.26 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004356/14.87, allocations: 472.7 kB / 6.016 GB, free: 111.9 MB / 1.26 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003245/14.87, allocations: 92.78 kB / 6.016 GB, free: 111.9 MB / 1.26 GB Notification: Performance of prepare postOptimizeDAE: time 1.347e-05/14.87, allocations: 6.688 kB / 6.016 GB, free: 111.9 MB / 1.26 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005838/14.88, allocations: 2.649 MB / 6.019 GB, free: 111.8 MB / 1.26 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.997e-05/14.88, allocations: 10.66 kB / 6.019 GB, free: 111.8 MB / 1.26 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.397e-05/14.88, allocations: 24.5 kB / 6.019 GB, free: 111.8 MB / 1.26 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002414/14.88, allocations: 0.5338 MB / 6.019 GB, free: 111.8 MB / 1.26 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.644e-05/14.88, allocations: 34.72 kB / 6.019 GB, free: 111.8 MB / 1.26 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003634/14.88, allocations: 404.6 kB / 6.02 GB, free: 111.8 MB / 1.26 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002239/14.88, allocations: 88.28 kB / 6.02 GB, free: 111.8 MB / 1.26 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.001556/14.88, allocations: 0.6323 MB / 6.021 GB, free: 111.6 MB / 1.26 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007807/14.88, allocations: 262.2 kB / 6.021 GB, free: 111.4 MB / 1.26 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004236/14.89, allocations: 1.868 MB / 6.023 GB, free: 111.3 MB / 1.26 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.849e-06/14.89, allocations: 14.16 kB / 6.023 GB, free: 111.3 MB / 1.26 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.971e-06/14.89, allocations: 0 / 6.023 GB, free: 111.3 MB / 1.26 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.958e-06/14.89, allocations: 3.609 kB / 6.023 GB, free: 111.3 MB / 1.26 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008813/14.9, allocations: 4.497 MB / 6.027 GB, free: 110.8 MB / 1.26 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.246e-05/14.9, allocations: 8.656 kB / 6.027 GB, free: 110.8 MB / 1.26 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001654/14.9, allocations: 319.3 kB / 6.027 GB, free: 110.8 MB / 1.26 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.264e-05/14.9, allocations: 8.219 kB / 6.027 GB, free: 110.8 MB / 1.26 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.899e-05/14.9, allocations: 33.64 kB / 6.027 GB, free: 110.8 MB / 1.26 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008886/14.9, allocations: 2.37 MB / 6.03 GB, free: 108.4 MB / 1.26 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.553e-06/14.9, allocations: 7.312 kB / 6.03 GB, free: 108.4 MB / 1.26 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004373/14.9, allocations: 2.504 MB / 6.032 GB, free: 107.2 MB / 1.26 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001553/14.91, allocations: 0.5401 MB / 6.033 GB, free: 107 MB / 1.26 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003339/14.91, allocations: 25.78 kB / 6.033 GB, free: 107 MB / 1.26 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002438/14.91, allocations: 286.7 kB / 6.033 GB, free: 107 MB / 1.26 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001218/14.91, allocations: 79.14 kB / 6.033 GB, free: 107 MB / 1.26 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001298/14.91, allocations: 64.66 kB / 6.033 GB, free: 107 MB / 1.26 GB Notification: Performance of sorting global known variables: time 0.002923/14.91, allocations: 1.749 MB / 6.035 GB, free: 106.8 MB / 1.26 GB Notification: Performance of sort global known variables: time 1.7e-07/14.91, allocations: 0 / 6.035 GB, free: 106.8 MB / 1.26 GB Notification: Performance of remove unused functions: time 0.00735/14.92, allocations: 1.935 MB / 6.037 GB, free: 106.8 MB / 1.26 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.01378/14.93, allocations: 12.01 MB / 6.048 GB, free: 99.67 MB / 1.26 GB Notification: Performance of simCode: created initialization part: time 0.007936/14.94, allocations: 3.67 MB / 6.052 GB, free: 99.4 MB / 1.26 GB Notification: Performance of simCode: created event and clocks part: time 1.263e-05/14.94, allocations: 3.75 kB / 6.052 GB, free: 99.4 MB / 1.26 GB Notification: Performance of simCode: created simulation system equations: time 0.001708/14.94, allocations: 0.8122 MB / 6.053 GB, free: 99.39 MB / 1.26 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005768/14.95, allocations: 1.202 MB / 6.054 GB, free: 99.37 MB / 1.26 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01221/14.96, allocations: 16.4 MB / 6.07 GB, free: 86 MB / 1.26 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001357/14.96, allocations: 1.746 MB / 6.072 GB, free: 85.25 MB / 1.26 GB Notification: Performance of simCode: alias equations: time 0.004116/14.97, allocations: 0.7905 MB / 6.073 GB, free: 85.22 MB / 1.26 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001337/14.97, allocations: 1.014 MB / 6.074 GB, free: 85.22 MB / 1.26 GB Notification: Performance of SimCode: time 2.375e-06/14.97, allocations: 0 / 6.074 GB, free: 85.22 MB / 1.26 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2014/15.17, allocations: 151.1 MB / 6.221 GB, free: 79.18 MB / 1.26 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001511/15.17, allocations: 262.2 kB / 6.221 GB, free: 78.84 MB / 1.26 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.07/22.24, allocations: 2.109 kB / 6.221 GB, free: 78.84 MB / 1.26 GB (rm -f Buildings_9_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.pipe ; mkfifo Buildings_9_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.pipe >> ../files/Buildings_9_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_Interfaces_Examples_ReverseFlowMassExchanger_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_Interfaces_Examples_ReverseFlowMassExchanger.fmu > Buildings_9_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger_res.mat does not exist to compare? outputFormat=mat