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.329/2.329, allocations: 387.4 MB / 394.9 MB, free: 13.39 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.001126/0.001126, allocations: 180.8 kB / 487.4 MB, free: 5.035 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.649/1.649, allocations: 221.5 MB / 0.7824 GB, free: 0.9883 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001044/0.001044, allocations: 99.42 kB / 0.9219 GB, free: 2.215 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 2.636e-05/2.631e-05, allocations: 8 kB / 1.067 GB, free: 185.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.335/0.3351, allocations: 142.4 MB / 1.206 GB, free: 43.87 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.19/4.525, allocations: 1.71 GB / 2.916 GB, free: 155.4 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002452/4.525, allocations: 90.64 kB / 2.917 GB, free: 155.4 MB / 1.151 GB Notification: Performance of FrontEnd - DAE generated: time 0.07484/4.6, allocations: 39.71 MB / 2.955 GB, free: 122.8 MB / 1.151 GB Notification: Performance of FrontEnd: time 1.332e-06/4.6, allocations: 0 / 2.955 GB, free: 122.8 MB / 1.151 GB Notification: Performance of Transformations before backend: time 1.275e-05/4.6, allocations: 4 kB / 2.955 GB, free: 122.8 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.0004994/4.6, allocations: 454.8 kB / 2.956 GB, free: 122.3 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.127e-05/4.6, allocations: 12.03 kB / 2.956 GB, free: 122.3 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000257/4.601, allocations: 39.55 kB / 2.956 GB, free: 122.3 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001942/4.601, allocations: 213.5 kB / 2.956 GB, free: 122.1 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.304e-05/4.601, allocations: 4 kB / 2.956 GB, free: 122.1 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.463e-05/4.601, allocations: 4 kB / 2.956 GB, free: 122.1 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001282/4.601, allocations: 58.5 kB / 2.956 GB, free: 122 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001355/4.601, allocations: 92.12 kB / 2.956 GB, free: 121.9 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.636e-06/4.601, allocations: 0 / 2.956 GB, free: 121.9 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.215e-05/4.601, allocations: 0 / 2.956 GB, free: 121.9 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.08e-06/4.601, allocations: 4 kB / 2.956 GB, free: 121.9 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005535/4.602, allocations: 413.8 kB / 2.957 GB, free: 121.6 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001104/4.602, allocations: 77.12 kB / 2.957 GB, free: 121.5 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.909e-05/4.602, allocations: 20.73 kB / 2.957 GB, free: 121.5 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 2.572e-05/4.602, allocations: 4 kB / 2.957 GB, free: 121.5 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.445e-05/4.602, allocations: 34.56 kB / 2.957 GB, free: 121.4 MB / 1.151 GB Notification: Performance of pre-optimization done (n=7): time 1.382e-06/4.602, allocations: 0 / 2.957 GB, free: 121.4 MB / 1.151 GB Notification: Performance of matching and sorting (n=7): time 0.0001736/4.602, allocations: 78.64 kB / 2.957 GB, free: 121.4 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.699e-05/4.602, allocations: 51.41 kB / 2.957 GB, free: 121.3 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.826e-05/4.602, allocations: 147.5 kB / 2.957 GB, free: 121.2 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 1.073e-05/4.602, allocations: 29.64 kB / 2.957 GB, free: 121.1 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 4.26e-05/4.602, allocations: 118.8 kB / 2.957 GB, free: 121 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 1.512e-05/4.602, allocations: 18.34 kB / 2.957 GB, free: 121 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.271e-06/4.602, allocations: 0 / 2.957 GB, free: 121 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 4.743e-05/4.603, allocations: 326 kB / 2.957 GB, free: 120.7 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.533e-05/4.603, allocations: 19.44 kB / 2.957 GB, free: 120.7 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.837e-05/4.603, allocations: 19.56 kB / 2.957 GB, free: 120.7 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 4e-05/4.603, allocations: 27.84 kB / 2.957 GB, free: 120.6 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/4.603, allocations: 0 / 2.957 GB, free: 120.6 MB / 1.151 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001121/4.603, allocations: 88.03 kB / 2.958 GB, free: 120.6 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.383e-05/4.603, allocations: 5.406 kB / 2.958 GB, free: 120.6 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.36e-06/4.603, allocations: 0 / 2.958 GB, free: 120.6 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.234e-05/4.603, allocations: 0 / 2.958 GB, free: 120.6 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001338/4.603, allocations: 23.98 kB / 2.958 GB, free: 120.5 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.743e-06/4.603, allocations: 7.938 kB / 2.958 GB, free: 120.5 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.155e-05/4.603, allocations: 11.91 kB / 2.958 GB, free: 120.5 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.879e-06/4.603, allocations: 14.62 kB / 2.958 GB, free: 120.5 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 4.579e-05/4.603, allocations: 104.9 kB / 2.958 GB, free: 120.4 MB / 1.151 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001086/4.603, allocations: 76.09 kB / 2.958 GB, free: 120.3 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.627e-05/4.603, allocations: 11.91 kB / 2.958 GB, free: 120.3 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001494/4.603, allocations: 96.17 kB / 2.958 GB, free: 120.2 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.994e-06/4.603, allocations: 0 / 2.958 GB, free: 120.2 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.629e-06/4.603, allocations: 3.953 kB / 2.958 GB, free: 120.2 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.647e-06/4.603, allocations: 3.984 kB / 2.958 GB, free: 120.2 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001433/4.604, allocations: 188.9 kB / 2.958 GB, free: 120 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.51e-07/4.604, allocations: 0 / 2.958 GB, free: 120 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001039/4.604, allocations: 15.98 kB / 2.958 GB, free: 120 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.264e-06/4.604, allocations: 4 kB / 2.958 GB, free: 120 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.895e-06/4.604, allocations: 0 / 2.958 GB, free: 120 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.312e-06/4.604, allocations: 4 kB / 2.958 GB, free: 120 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.394e-06/4.604, allocations: 0 / 2.958 GB, free: 120 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001222/4.604, allocations: 181.4 kB / 2.958 GB, free: 119.8 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 2.815e-05/4.604, allocations: 92.83 kB / 2.958 GB, free: 119.7 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.036e-05/4.604, allocations: 0 / 2.958 GB, free: 119.7 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000116/4.604, allocations: 11.89 kB / 2.958 GB, free: 119.7 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.701e-05/4.604, allocations: 4 kB / 2.958 GB, free: 119.7 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.169e-06/4.604, allocations: 4 kB / 2.958 GB, free: 119.7 MB / 1.151 GB Notification: Performance of sorting global known variables: time 5.733e-05/4.604, allocations: 112.5 kB / 2.958 GB, free: 119.6 MB / 1.151 GB Notification: Performance of sort global known variables: time 1.5e-07/4.604, allocations: 0 / 2.958 GB, free: 119.6 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.0003088/4.605, allocations: 53.61 kB / 2.959 GB, free: 119.6 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.0008306/4.605, allocations: 1.257 MB / 2.96 GB, free: 118.3 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.0001073/4.605, allocations: 59.05 kB / 2.96 GB, free: 118.3 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 1.513e-06/4.606, allocations: 3.938 kB / 2.96 GB, free: 118.3 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 3.699e-05/4.606, allocations: 23.5 kB / 2.96 GB, free: 118.3 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002761/4.606, allocations: 23.66 kB / 2.96 GB, free: 118.2 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000476/4.606, allocations: 187.5 kB / 2.96 GB, free: 118 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001251/4.606, allocations: 0.7154 MB / 2.961 GB, free: 117.3 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 6.792e-05/4.607, allocations: 12.42 kB / 2.961 GB, free: 117.3 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.244e-05/4.607, allocations: 33.17 kB / 2.961 GB, free: 117.3 MB / 1.151 GB Notification: Performance of SimCode: time 2.51e-07/4.607, allocations: 3.938 kB / 2.961 GB, free: 117.3 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02516/4.632, allocations: 6.589 MB / 2.967 GB, free: 110.7 MB / 1.151 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001353/4.632, allocations: 148.9 kB / 2.967 GB, free: 110.5 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.831/6.463, allocations: 0 / 2.967 GB, free: 110.5 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