Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.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.HeatExchangers.BaseClasses.Examples.MassExchange,fileNamePrefix="Buildings_9_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_MassExchange",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange,fileNamePrefix="Buildings_9_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_MassExchange",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.294/2.294, allocations: 387.1 MB / 399.7 MB, free: 9.488 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.001204/0.001204, allocations: 180.9 kB / 492.3 MB, free: 0.6055 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.718/1.718, allocations: 221.3 MB / 0.7871 GB, free: 12.89 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.0008998/0.0008998, allocations: 87.84 kB / 0.9267 GB, free: 13.96 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.412e-05/3.436e-05, allocations: 4 kB / 1.073 GB, free: 180.3 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3248/0.3248, allocations: 142.4 MB / 1.213 GB, free: 38.39 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.593/4.918, allocations: 1.711 GB / 2.924 GB, free: 126.6 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002326/4.918, allocations: 89 kB / 2.924 GB, free: 126.5 MB / 1.151 GB Notification: Performance of FrontEnd - DAE generated: time 0.07639/4.995, allocations: 40.36 MB / 2.963 GB, free: 92.66 MB / 1.151 GB Notification: Performance of FrontEnd: time 1.122e-06/4.995, allocations: 0 / 2.963 GB, free: 92.66 MB / 1.151 GB Notification: Performance of Transformations before backend: time 1.146e-05/4.995, allocations: 0 / 2.963 GB, free: 92.66 MB / 1.151 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 25 * Number of variables: 25 Notification: Performance of Generate backend data structure: time 0.0004848/4.995, allocations: 461.8 kB / 2.963 GB, free: 92.18 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 5.039e-05/4.995, allocations: 8.031 kB / 2.963 GB, free: 92.17 MB / 1.151 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.048e-05/4.995, allocations: 45.94 kB / 2.964 GB, free: 92.12 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002284/4.995, allocations: 31.11 kB / 2.964 GB, free: 92.09 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001857/4.996, allocations: 214 kB / 2.964 GB, free: 91.86 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.099e-05/4.996, allocations: 11.38 kB / 2.964 GB, free: 91.85 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.036e-05/4.996, allocations: 11.56 kB / 2.964 GB, free: 91.84 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001733/4.996, allocations: 97.86 kB / 2.964 GB, free: 91.77 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.748e-06/4.996, allocations: 3.953 kB / 2.964 GB, free: 91.76 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.375e-05/4.996, allocations: 3.438 kB / 2.964 GB, free: 91.76 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.442e-06/4.996, allocations: 4 kB / 2.964 GB, free: 91.76 MB / 1.151 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001223/4.996, allocations: 65.95 kB / 2.964 GB, free: 91.71 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005752/4.997, allocations: 467.3 kB / 2.964 GB, free: 91.28 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001227/4.997, allocations: 69.39 kB / 2.964 GB, free: 91.22 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.62e-05/4.997, allocations: 36.42 kB / 2.964 GB, free: 91.19 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 2.688e-05/4.997, allocations: 7.969 kB / 2.964 GB, free: 91.18 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.449e-05/4.997, allocations: 30.56 kB / 2.965 GB, free: 91.14 MB / 1.151 GB Notification: Performance of pre-optimization done (n=7): time 1.342e-06/4.997, allocations: 0 / 2.965 GB, free: 91.14 MB / 1.151 GB Notification: Performance of matching and sorting (n=7): time 0.0001859/4.997, allocations: 95.89 kB / 2.965 GB, free: 91.06 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.453e-05/4.997, allocations: 51.41 kB / 2.965 GB, free: 91 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001315/4.997, allocations: 160.7 kB / 2.965 GB, free: 90.86 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 1.194e-05/4.997, allocations: 25.7 kB / 2.965 GB, free: 90.83 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 4.645e-05/4.997, allocations: 125.8 kB / 2.965 GB, free: 90.72 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 1.578e-05/4.997, allocations: 23.28 kB / 2.965 GB, free: 90.7 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.979e-06/4.997, allocations: 0 / 2.965 GB, free: 90.7 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 5.677e-05/4.997, allocations: 322.8 kB / 2.965 GB, free: 90.38 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.792e-05/4.998, allocations: 26.19 kB / 2.965 GB, free: 90.36 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.161e-05/4.998, allocations: 14.94 kB / 2.965 GB, free: 90.36 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.395e-05/4.998, allocations: 26.61 kB / 2.965 GB, free: 90.34 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/4.998, allocations: 0 / 2.965 GB, free: 90.34 MB / 1.151 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001254/4.998, allocations: 103.4 kB / 2.965 GB, free: 90.25 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.322e-05/4.998, allocations: 8 kB / 2.965 GB, free: 90.24 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.438e-06/4.998, allocations: 0 / 2.965 GB, free: 90.24 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.249e-05/4.998, allocations: 0 / 2.965 GB, free: 90.24 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001345/4.998, allocations: 23.97 kB / 2.965 GB, free: 90.22 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.925e-06/4.998, allocations: 3.953 kB / 2.965 GB, free: 90.21 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.12e-05/4.998, allocations: 8 kB / 2.965 GB, free: 90.21 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.037e-06/4.998, allocations: 4 kB / 2.965 GB, free: 90.2 MB / 1.151 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.139e-05/4.998, allocations: 117.9 kB / 2.966 GB, free: 90.09 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.161e-05/4.998, allocations: 15.81 kB / 2.966 GB, free: 90.07 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001784/4.998, allocations: 95.52 kB / 2.966 GB, free: 90 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.775e-06/4.998, allocations: 4 kB / 2.966 GB, free: 89.99 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.937e-06/4.998, allocations: 0 / 2.966 GB, free: 89.99 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.818e-06/4.998, allocations: 3.953 kB / 2.966 GB, free: 89.99 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001655/4.999, allocations: 218 kB / 2.966 GB, free: 89.75 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/4.999, allocations: 0 / 2.966 GB, free: 89.75 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000102/4.999, allocations: 19.98 kB / 2.966 GB, free: 89.73 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.824e-06/4.999, allocations: 4 kB / 2.966 GB, free: 89.73 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.16e-05/4.999, allocations: 3.438 kB / 2.966 GB, free: 89.73 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.246e-06/4.999, allocations: 7.984 kB / 2.966 GB, free: 89.72 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/4.999, allocations: 4 kB / 2.966 GB, free: 89.71 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001424/4.999, allocations: 185 kB / 2.966 GB, free: 89.54 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 3.913e-05/4.999, allocations: 88.39 kB / 2.966 GB, free: 89.43 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.003e-05/4.999, allocations: 0 / 2.966 GB, free: 89.43 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001176/4.999, allocations: 19.92 kB / 2.966 GB, free: 89.41 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.968e-05/4.999, allocations: 7.984 kB / 2.966 GB, free: 89.41 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.041e-06/4.999, allocations: 3.438 kB / 2.966 GB, free: 89.41 MB / 1.151 GB Notification: Performance of sorting global known variables: time 7.932e-05/4.999, allocations: 133.1 kB / 2.966 GB, free: 89.29 MB / 1.151 GB Notification: Performance of sort global known variables: time 1.7e-07/4.999, allocations: 0 / 2.966 GB, free: 89.29 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.000338/5, allocations: 58.08 kB / 2.966 GB, free: 89.25 MB / 1.151 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008407/5, allocations: 1.185 MB / 2.968 GB, free: 88.08 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.0001235/5.001, allocations: 50.44 kB / 2.968 GB, free: 88.05 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/5.001, allocations: 0 / 2.968 GB, free: 88.05 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 4.512e-05/5.001, allocations: 27.25 kB / 2.968 GB, free: 88.03 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002862/5.001, allocations: 34.89 kB / 2.968 GB, free: 88 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005039/5.001, allocations: 196.1 kB / 2.968 GB, free: 87.79 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000139/5.002, allocations: 0.7109 MB / 2.969 GB, free: 87.05 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 7.118e-05/5.002, allocations: 12.88 kB / 2.969 GB, free: 87.04 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.481e-05/5.002, allocations: 36.86 kB / 2.969 GB, free: 87.02 MB / 1.151 GB Notification: Performance of SimCode: time 2.61e-07/5.002, allocations: 0 / 2.969 GB, free: 87.02 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02287/5.025, allocations: 13.57 MB / 2.982 GB, free: 73.58 MB / 1.151 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001534/5.025, allocations: 172.9 kB / 2.982 GB, free: 73.35 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.194/7.218, allocations: 4 kB / 2.982 GB, free: 73.35 MB / 1.151 GB (rm -f Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe ; mkfifo Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe >> ../files/Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_MassExchange_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_MassExchange.fmu > Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange_res.mat does not exist to compare? outputFormat=mat