Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.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) 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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger,fileNamePrefix="Buildings_latest_Buildings_Fluid_Interfaces_Examples_ReverseFlowMassExchanger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger,fileNamePrefix="Buildings_latest_Buildings_Fluid_Interfaces_Examples_ReverseFlowMassExchanger",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.223/2.223, allocations: 390.5 MB / 398 MB, free: 10.97 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.001355/0.001355, allocations: 188.8 kB / 491.2 MB, free: 1.57 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.586/1.586, allocations: 221.5 MB / 0.7868 GB, free: 13.29 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.0009489/0.0009489, allocations: 95.83 kB / 0.9269 GB, free: 13.79 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.667e-05/2.668e-05, allocations: 4 kB / 1.073 GB, free: 182 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4226/0.4226, allocations: 143 MB / 1.212 GB, free: 39.45 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 6.498/6.921, allocations: 1.901 GB / 3.114 GB, free: 352.4 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003134/6.922, allocations: 93.7 kB / 3.114 GB, free: 352.4 MB / 1.151 GB Notification: Performance of FrontEnd - DAE generated: time 10.67/17.59, allocations: 2.806 GB / 5.92 GB, free: 112.6 MB / 1.245 GB Notification: Performance of FrontEnd: time 2.976e-06/17.59, allocations: 7.328 kB / 5.92 GB, free: 112.6 MB / 1.245 GB Notification: Performance of Transformations before backend: time 0.0002836/17.59, allocations: 70.58 kB / 5.92 GB, free: 112.6 MB / 1.245 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.01269/17.6, allocations: 3.495 MB / 5.924 GB, free: 111.2 MB / 1.245 GB Notification: Performance of prepare preOptimizeDAE: time 4.668e-05/17.6, allocations: 7.625 kB / 5.924 GB, free: 111.2 MB / 1.245 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01027/17.61, allocations: 1.196 MB / 5.925 GB, free: 111 MB / 1.245 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007723/17.62, allocations: 2.584 MB / 5.927 GB, free: 110.6 MB / 1.245 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001265/17.62, allocations: 350.9 kB / 5.928 GB, free: 110.6 MB / 1.245 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00096/17.62, allocations: 134.2 kB / 5.928 GB, free: 110.6 MB / 1.245 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004832/17.63, allocations: 2.434 MB / 5.93 GB, free: 110.6 MB / 1.245 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004272/17.63, allocations: 2.374 MB / 5.932 GB, free: 110.2 MB / 1.245 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.59e-05/17.63, allocations: 3.469 kB / 5.932 GB, free: 110.2 MB / 1.245 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002388/17.63, allocations: 10 kB / 5.932 GB, free: 110.2 MB / 1.245 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.776e-05/17.63, allocations: 93.62 kB / 5.933 GB, free: 110.2 MB / 1.245 GB Warning: The model contains alias variables with conflicting start and/or 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.02165/17.65, allocations: 13.58 MB / 5.946 GB, free: 102.9 MB / 1.245 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002004/17.65, allocations: 1.495 MB / 5.947 GB, free: 102.7 MB / 1.245 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007502/17.65, allocations: 0.602 MB / 5.948 GB, free: 102.7 MB / 1.245 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005096/17.66, allocations: 330.6 kB / 5.948 GB, free: 102.4 MB / 1.245 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.052e-05/17.66, allocations: 53.06 kB / 5.948 GB, free: 102.3 MB / 1.245 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001606/17.66, allocations: 158.6 kB / 5.948 GB, free: 102.3 MB / 1.245 GB Notification: Performance of pre-optimization done (n=110): time 4.98e-06/17.66, allocations: 0 / 5.948 GB, free: 102.3 MB / 1.245 GB Notification: Performance of matching and sorting (n=110): time 0.002612/17.66, allocations: 1.515 MB / 5.95 GB, free: 102.1 MB / 1.245 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.886e-05/17.66, allocations: 67.09 kB / 5.95 GB, free: 102.1 MB / 1.245 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00203/17.66, allocations: 1.555 MB / 5.951 GB, free: 101.8 MB / 1.245 GB Notification: Performance of collectPreVariables (initialization): time 0.0001821/17.66, allocations: 36.02 kB / 5.951 GB, free: 101.8 MB / 1.245 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007474/17.66, allocations: 1.286 MB / 5.953 GB, free: 101.2 MB / 1.245 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002409/17.66, allocations: 375.5 kB / 5.953 GB, free: 101 MB / 1.245 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001078/17.66, allocations: 3.281 kB / 5.953 GB, free: 101 MB / 1.245 GB Notification: Performance of setup shared object (initialization): time 0.0001006/17.66, allocations: 373.3 kB / 5.953 GB, free: 100.7 MB / 1.245 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009088/17.66, allocations: 0.6699 MB / 5.954 GB, free: 100.7 MB / 1.245 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001239/17.67, allocations: 1.319 MB / 5.955 GB, free: 99.92 MB / 1.245 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002187/17.67, allocations: 1.158 MB / 5.957 GB, free: 99.89 MB / 1.245 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.025e-05/17.67, allocations: 4.344 kB / 5.957 GB, free: 99.89 MB / 1.245 GB Notification: Performance of matching and sorting (n=216) (initialization): time 0.004515/17.67, allocations: 2.378 MB / 5.959 GB, free: 99.72 MB / 1.245 GB Notification: Performance of prepare postOptimizeDAE: time 0.001176/17.67, allocations: 5.627 MB / 5.964 GB, free: 93.87 MB / 1.245 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.166e-05/17.67, allocations: 16.59 kB / 5.964 GB, free: 93.87 MB / 1.245 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.619e-05/17.67, allocations: 27.19 kB / 5.964 GB, free: 93.87 MB / 1.245 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002836/17.68, allocations: 0.5749 MB / 5.965 GB, free: 93.86 MB / 1.245 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009423/17.68, allocations: 2.396 MB / 5.967 GB, free: 91.53 MB / 1.245 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003709/17.68, allocations: 384.6 kB / 5.968 GB, free: 91.51 MB / 1.245 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002103/17.68, allocations: 94.75 kB / 5.968 GB, free: 91.51 MB / 1.245 GB Notification: Performance of prepare postOptimizeDAE: time 1.295e-05/17.68, allocations: 2.625 kB / 5.968 GB, free: 91.51 MB / 1.245 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003823/17.69, allocations: 2.132 MB / 5.97 GB, free: 91.48 MB / 1.245 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.571e-05/17.69, allocations: 13.22 kB / 5.97 GB, free: 91.48 MB / 1.245 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.473e-05/17.69, allocations: 25.56 kB / 5.97 GB, free: 91.48 MB / 1.245 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002279/17.69, allocations: 0.5284 MB / 5.97 GB, free: 91.48 MB / 1.245 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.183e-05/17.69, allocations: 34.47 kB / 5.97 GB, free: 91.48 MB / 1.245 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003044/17.69, allocations: 313.2 kB / 5.971 GB, free: 91.46 MB / 1.245 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001732/17.69, allocations: 95.97 kB / 5.971 GB, free: 91.46 MB / 1.245 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 () * 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.0004791/17.69, allocations: 157.5 kB / 5.971 GB, free: 91.35 MB / 1.245 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002309/17.69, allocations: 1.479 MB / 5.972 GB, free: 91.18 MB / 1.245 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002999/17.69, allocations: 222.5 kB / 5.973 GB, free: 91.06 MB / 1.245 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002658/17.7, allocations: 1.625 MB / 5.974 GB, free: 90.95 MB / 1.245 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.025e-05/17.7, allocations: 13.14 kB / 5.974 GB, free: 90.95 MB / 1.245 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.971e-06/17.7, allocations: 0 / 5.974 GB, free: 90.95 MB / 1.245 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.159e-05/17.7, allocations: 5.625 kB / 5.974 GB, free: 90.95 MB / 1.245 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005967/17.7, allocations: 3.928 MB / 5.978 GB, free: 90.43 MB / 1.245 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.267e-06/17.7, allocations: 4.438 kB / 5.978 GB, free: 90.43 MB / 1.245 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001594/17.7, allocations: 310.8 kB / 5.978 GB, free: 90.43 MB / 1.245 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.527e-05/17.7, allocations: 13 kB / 5.978 GB, free: 90.43 MB / 1.245 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.496e-05/17.7, allocations: 24.06 kB / 5.978 GB, free: 90.43 MB / 1.245 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006784/17.7, allocations: 2.36 MB / 5.981 GB, free: 88.09 MB / 1.245 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.995e-06/17.7, allocations: 11.06 kB / 5.981 GB, free: 88.09 MB / 1.245 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002616/17.71, allocations: 2.204 MB / 5.983 GB, free: 87.01 MB / 1.245 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001067/17.71, allocations: 0.4935 MB / 5.983 GB, free: 86.8 MB / 1.245 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002891/17.71, allocations: 11.58 kB / 5.983 GB, free: 86.8 MB / 1.245 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002167/17.71, allocations: 241.1 kB / 5.984 GB, free: 86.79 MB / 1.245 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001139/17.71, allocations: 77.98 kB / 5.984 GB, free: 86.78 MB / 1.245 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001245/17.71, allocations: 69.23 kB / 5.984 GB, free: 86.78 MB / 1.245 GB Notification: Performance of sorting global known variables: time 0.001608/17.71, allocations: 1.147 MB / 5.985 GB, free: 86.64 MB / 1.245 GB Notification: Performance of sort global known variables: time 1.81e-07/17.71, allocations: 1.125 kB / 5.985 GB, free: 86.64 MB / 1.245 GB Notification: Performance of remove unused functions: time 0.005291/17.72, allocations: 1.739 MB / 5.987 GB, free: 86.46 MB / 1.245 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 () * 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.01299/17.73, allocations: 12.39 MB / 5.999 GB, free: 79.26 MB / 1.245 GB Notification: Performance of simCode: created initialization part: time 0.004953/17.74, allocations: 2.845 MB / 6.001 GB, free: 78.98 MB / 1.245 GB Notification: Performance of simCode: created event and clocks part: time 1.413e-05/17.74, allocations: 0 / 6.001 GB, free: 78.98 MB / 1.245 GB Notification: Performance of simCode: created simulation system equations: time 0.001003/17.74, allocations: 0.6287 MB / 6.002 GB, free: 78.97 MB / 1.245 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003949/17.74, allocations: 0.7428 MB / 6.003 GB, free: 78.94 MB / 1.245 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007705/17.75, allocations: 3.569 MB / 6.006 GB, free: 77.83 MB / 1.245 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001171/17.75, allocations: 1.75 MB / 6.008 GB, free: 77.08 MB / 1.245 GB Notification: Performance of simCode: alias equations: time 0.004134/17.75, allocations: 0.8204 MB / 6.009 GB, free: 77.06 MB / 1.245 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001162/17.76, allocations: 0.9469 MB / 6.01 GB, free: 77.05 MB / 1.245 GB Notification: Performance of SimCode: time 9.72e-07/17.76, allocations: 0 / 6.01 GB, free: 77.05 MB / 1.245 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1721/17.93, allocations: 99.59 MB / 6.107 GB, free: 58.67 MB / 1.245 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001831/17.93, allocations: 195.5 kB / 6.107 GB, free: 58.47 MB / 1.245 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.321/24.25, allocations: 4 kB / 6.107 GB, free: 58.46 MB / 1.245 GB (rm -f Buildings_latest_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.pipe >> ../files/Buildings_latest_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_Interfaces_Examples_ReverseFlowMassExchanger_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_Interfaces_Examples_ReverseFlowMassExchanger.fmu > Buildings_latest_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger_res.mat does not exist to compare? outputFormat=mat