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/ModelicaServices 4.0.0+maint.om/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/Buildings 9.1.1-maint.9.1.x/package.mo", uses=false) 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) 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008121/0.000812, allocations: 86.72 kB / 15.06 MB, free: 1.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.000923/0.0009229, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.369/1.369, allocations: 223.2 MB / 240 MB, free: 5.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.445/2.445, allocations: 390.4 MB / 0.6655 GB, free: 2.875 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003822/0.0003823, allocations: 16 kB / 0.8149 GB, free: 14.09 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6928/0.6932, allocations: 142.3 MB / 0.9538 GB, free: 8.176 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange): time 0.1569/0.8501, allocations: 135.1 MB / 1.086 GB, free: 8.664 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001729/0.8519, allocations: 1.06 MB / 1.087 GB, free: 7.602 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001719/0.8521, allocations: 0 / 1.087 GB, free: 7.602 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0002912/0.8524, allocations: 35.75 kB / 1.087 GB, free: 7.566 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.0008188/0.8532, allocations: 195 kB / 1.087 GB, free: 7.375 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004041/0.8536, allocations: 135.5 kB / 1.087 GB, free: 7.242 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0005119/0.8542, allocations: 223.3 kB / 1.087 GB, free: 7.023 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001442/0.8543, allocations: 51.5 kB / 1.087 GB, free: 6.977 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 8.746e-05/0.8544, allocations: 35.8 kB / 1.087 GB, free: 6.941 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001101/0.8545, allocations: 51.77 kB / 1.088 GB, free: 6.891 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 1.442e-05/0.8546, allocations: 0 / 1.088 GB, free: 6.891 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005484/0.8551, allocations: 283.5 kB / 1.088 GB, free: 6.613 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 4.636e-05/0.8552, allocations: 31.83 kB / 1.088 GB, free: 6.582 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 4.603e-05/0.8552, allocations: 41.64 kB / 1.088 GB, free: 6.535 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0003213/0.8556, allocations: 199.6 kB / 1.088 GB, free: 6.34 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 5.73e-06/0.8556, allocations: 0 / 1.088 GB, free: 6.34 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.993e-06/0.8556, allocations: 0 / 1.088 GB, free: 6.34 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 6.131e-06/0.8556, allocations: 0 / 1.088 GB, free: 6.34 MB / 0.8419 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.0007414/0.8563, allocations: 458.7 kB / 1.088 GB, free: 5.844 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 5.198e-05/0.8564, allocations: 12.03 kB / 1.089 GB, free: 5.832 MB / 0.8419 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.312e-05/0.8565, allocations: 42.55 kB / 1.089 GB, free: 5.781 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003251/0.8568, allocations: 35.78 kB / 1.089 GB, free: 5.746 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002626/0.8571, allocations: 205 kB / 1.089 GB, free: 5.508 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.446e-05/0.8571, allocations: 8 kB / 1.089 GB, free: 5.5 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.836e-05/0.8571, allocations: 8 kB / 1.089 GB, free: 5.492 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002929/0.8574, allocations: 123.8 kB / 1.089 GB, free: 5.367 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.608e-06/0.8574, allocations: 0 / 1.089 GB, free: 5.367 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.575e-05/0.8575, allocations: 4 kB / 1.089 GB, free: 5.363 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.955e-06/0.8575, allocations: 4 kB / 1.089 GB, free: 5.359 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000265/0.8578, allocations: 103.9 kB / 1.089 GB, free: 5.258 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007702/0.8585, allocations: 468 kB / 1.089 GB, free: 4.75 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002224/0.8588, allocations: 94.55 kB / 1.09 GB, free: 4.648 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001182/0.8589, allocations: 44.94 kB / 1.09 GB, free: 4.602 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 2.769e-05/0.8589, allocations: 4 kB / 1.09 GB, free: 4.598 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.136e-05/0.859, allocations: 38.52 kB / 1.09 GB, free: 4.551 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=7): time 1.272e-06/0.859, allocations: 0 / 1.09 GB, free: 4.551 MB / 0.8419 GB Notification: Performance of matching and sorting (n=7): time 0.0004693/0.8594, allocations: 165.4 kB / 1.09 GB, free: 4.383 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.988e-05/0.8595, allocations: 55.41 kB / 1.09 GB, free: 4.316 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002022/0.8597, allocations: 170.9 kB / 1.09 GB, free: 4.141 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 1.782e-05/0.8597, allocations: 25.7 kB / 1.09 GB, free: 4.109 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001005/0.8598, allocations: 123.9 kB / 1.09 GB, free: 3.984 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 2.308e-05/0.8599, allocations: 23.66 kB / 1.09 GB, free: 3.961 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.13e-06/0.8599, allocations: 0 / 1.09 GB, free: 3.961 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001374/0.86, allocations: 326.8 kB / 1.09 GB, free: 3.633 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001121/0.8601, allocations: 39.97 kB / 1.091 GB, free: 3.594 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001021/0.8602, allocations: 31.98 kB / 1.091 GB, free: 3.562 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001105/0.8604, allocations: 39.98 kB / 1.091 GB, free: 3.523 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-06/0.8604, allocations: 0 / 1.091 GB, free: 3.523 MB / 0.8419 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002773/0.8607, allocations: 133.5 kB / 1.091 GB, free: 3.387 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.657e-05/0.8607, allocations: 4 kB / 1.091 GB, free: 3.383 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.294e-06/0.8607, allocations: 7.891 kB / 1.091 GB, free: 3.375 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.251e-05/0.8607, allocations: 0 / 1.091 GB, free: 3.375 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001373/0.8609, allocations: 19.98 kB / 1.091 GB, free: 3.355 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.071e-06/0.8609, allocations: 4 kB / 1.091 GB, free: 3.352 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.847e-05/0.861, allocations: 19.83 kB / 1.091 GB, free: 3.332 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.243e-05/0.861, allocations: 8 kB / 1.091 GB, free: 3.324 MB / 0.8419 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 () * Number of clocked 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 0.0001126/0.8611, allocations: 113.8 kB / 1.091 GB, free: 3.203 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.402e-05/0.8612, allocations: 19.81 kB / 1.091 GB, free: 3.184 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003701/0.8615, allocations: 139 kB / 1.091 GB, free: 3.039 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.619e-06/0.8616, allocations: 3.953 kB / 1.091 GB, free: 3.035 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/0.8616, allocations: 0 / 1.091 GB, free: 3.035 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.968e-06/0.8616, allocations: 0 / 1.091 GB, free: 3.035 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002561/0.8618, allocations: 217.6 kB / 1.091 GB, free: 2.773 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-06/0.8618, allocations: 0 / 1.091 GB, free: 2.773 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000106/0.862, allocations: 23.98 kB / 1.091 GB, free: 2.75 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.352e-06/0.862, allocations: 7.984 kB / 1.091 GB, free: 2.742 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.978e-06/0.862, allocations: 0 / 1.091 GB, free: 2.742 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.814e-06/0.862, allocations: 0 / 1.091 GB, free: 2.742 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.976e-06/0.862, allocations: 3.953 kB / 1.091 GB, free: 2.738 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003395/0.8623, allocations: 223.3 kB / 1.092 GB, free: 2.504 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001435/0.8625, allocations: 96.86 kB / 1.092 GB, free: 2.391 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.437e-05/0.8625, allocations: 0 / 1.092 GB, free: 2.391 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001134/0.8626, allocations: 11.98 kB / 1.092 GB, free: 2.379 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.591e-05/0.8627, allocations: 3.953 kB / 1.092 GB, free: 2.375 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.895e-06/0.8627, allocations: 4 kB / 1.092 GB, free: 2.371 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0001291/0.8628, allocations: 140.7 kB / 1.092 GB, free: 2.234 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.11e-07/0.8628, allocations: 4 kB / 1.092 GB, free: 2.23 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0002506/0.8631, allocations: 20 kB / 1.092 GB, free: 2.211 MB / 0.8419 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 () * Number of clocked 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.0007077/0.8638, allocations: 0.7676 MB / 1.093 GB, free: 1.418 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0002581/0.8641, allocations: 87.95 kB / 1.093 GB, free: 1.332 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.8641, allocations: 0 / 1.093 GB, free: 1.332 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0001105/0.8642, allocations: 48.08 kB / 1.093 GB, free: 1.285 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000417/0.8646, allocations: 27.98 kB / 1.093 GB, free: 1.258 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001603/0.8663, allocations: 0.8583 MB / 1.094 GB, free: 364 kB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004238/0.8667, allocations: 0.7121 MB / 1.094 GB, free: 15.62 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 8.3e-05/0.8668, allocations: 8.891 kB / 1.094 GB, free: 15.61 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.022e-05/0.8669, allocations: 39.42 kB / 1.094 GB, free: 15.57 MB / 0.8575 GB Notification: Performance of SimCode: time 4.91e-07/0.8669, allocations: 0 / 1.094 GB, free: 15.57 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01523/0.8821, allocations: 2.871 MB / 1.097 GB, free: 12.87 MB / 0.8575 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001713/0.8823, allocations: 197.8 kB / 1.097 GB, free: 12.63 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.744/2.627, allocations: 4.062 kB / 1.097 GB, free: 12.63 MB / 0.8575 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