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.0009956/0.0009956, allocations: 99.7 kB / 15.05 MB, free: 1.105 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.0009491/0.0009492, allocations: 177.3 kB / 15.95 MB, free: 216 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 / 239.9 MB, free: 5.445 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.408/2.408, allocations: 390.3 MB / 0.6653 GB, free: 3.004 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003849/0.0003849, allocations: 16 kB / 0.8146 GB, free: 14.23 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7625/0.7629, allocations: 142.3 MB / 0.9536 GB, free: 8.098 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange): time 0.1548/0.9177, allocations: 125.9 MB / 1.077 GB, free: 1.984 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001185/0.9189, allocations: 0.8574 MB / 1.077 GB, free: 1.125 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.266e-05/0.919, allocations: 0 / 1.077 GB, free: 1.125 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0002385/0.9193, allocations: 35.81 kB / 1.077 GB, free: 1.09 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0003785/0.9197, allocations: 143.6 kB / 1.078 GB, free: 0.9492 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001845/0.9199, allocations: 91.75 kB / 1.078 GB, free: 0.8594 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0005572/0.9204, allocations: 227.5 kB / 1.078 GB, free: 0.6367 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001543/0.9206, allocations: 51.5 kB / 1.078 GB, free: 0.5898 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 6.538e-05/0.9207, allocations: 31.86 kB / 1.078 GB, free: 0.5586 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 7.041e-05/0.9207, allocations: 39.78 kB / 1.078 GB, free: 0.5195 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.563e-05/0.9208, allocations: 4 kB / 1.078 GB, free: 0.5156 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003559/0.9211, allocations: 211.7 kB / 1.078 GB, free: 316 kB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 4.164e-05/0.9212, allocations: 23.89 kB / 1.078 GB, free: 292 kB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 3.264e-05/0.9212, allocations: 45.64 kB / 1.078 GB, free: 240 kB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002477/0.9215, allocations: 151.7 kB / 1.078 GB, free: 88 kB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 2.835e-06/0.9215, allocations: 0 / 1.078 GB, free: 88 kB / 0.8262 GB Notification: Performance of FrontEnd: time 2.004e-06/0.9215, allocations: 0 / 1.078 GB, free: 88 kB / 0.8262 GB Notification: Performance of Transformations before backend: time 4.859e-06/0.9215, allocations: 0 / 1.078 GB, free: 88 kB / 0.8262 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.0006263/0.9221, allocations: 450.7 kB / 1.079 GB, free: 15.6 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.26e-05/0.9222, allocations: 8.031 kB / 1.079 GB, free: 15.59 MB / 0.8419 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.133e-05/0.9222, allocations: 42.55 kB / 1.079 GB, free: 15.54 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002867/0.9225, allocations: 39.78 kB / 1.079 GB, free: 15.5 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002289/0.9228, allocations: 202.9 kB / 1.079 GB, free: 15.26 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.323e-05/0.9228, allocations: 8 kB / 1.079 GB, free: 15.25 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.814e-05/0.9228, allocations: 8 kB / 1.079 GB, free: 15.25 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002721/0.9231, allocations: 125.6 kB / 1.079 GB, free: 15.12 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.107e-06/0.9231, allocations: 0 / 1.079 GB, free: 15.12 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.565e-05/0.9231, allocations: 4 kB / 1.079 GB, free: 15.11 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.264e-06/0.9231, allocations: 4 kB / 1.079 GB, free: 15.11 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002637/0.9234, allocations: 110 kB / 1.079 GB, free: 15 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006739/0.9241, allocations: 456.1 kB / 1.08 GB, free: 14.51 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002117/0.9243, allocations: 98.58 kB / 1.08 GB, free: 14.4 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 2.078e-05/0.9244, allocations: 4 kB / 1.08 GB, free: 14.4 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.255e-05/0.9244, allocations: 30.56 kB / 1.08 GB, free: 14.36 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=7): time 1.102e-06/0.9244, allocations: 0 / 1.08 GB, free: 14.36 MB / 0.8419 GB Notification: Performance of matching and sorting (n=7): time 0.0004551/0.9248, allocations: 165.6 kB / 1.08 GB, free: 14.19 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.046e-05/0.9249, allocations: 51.41 kB / 1.08 GB, free: 14.13 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001694/0.9251, allocations: 174.9 kB / 1.08 GB, free: 13.95 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 2.042e-05/0.9251, allocations: 33.7 kB / 1.08 GB, free: 13.91 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 8.008e-05/0.9252, allocations: 119.9 kB / 1.08 GB, free: 13.79 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 2.106e-05/0.9252, allocations: 23.7 kB / 1.08 GB, free: 13.77 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.671e-06/0.9252, allocations: 0 / 1.08 GB, free: 13.77 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001548/0.9254, allocations: 322.8 kB / 1.081 GB, free: 13.44 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001089/0.9255, allocations: 35.92 kB / 1.081 GB, free: 13.41 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001064/0.9256, allocations: 39.97 kB / 1.081 GB, free: 13.37 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001211/0.9257, allocations: 39.98 kB / 1.081 GB, free: 13.33 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.9257, allocations: 0 / 1.081 GB, free: 13.33 MB / 0.8419 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002742/0.926, allocations: 134 kB / 1.081 GB, free: 13.19 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.509e-05/0.926, allocations: 7.938 kB / 1.081 GB, free: 13.18 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.804e-06/0.9261, allocations: 7.984 kB / 1.081 GB, free: 13.18 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.25e-05/0.9261, allocations: 3.953 kB / 1.081 GB, free: 13.17 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001323/0.9262, allocations: 19.98 kB / 1.081 GB, free: 13.15 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.31e-06/0.9262, allocations: 0 / 1.081 GB, free: 13.15 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001022/0.9263, allocations: 23.84 kB / 1.081 GB, free: 13.13 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.268e-06/0.9264, allocations: 4 kB / 1.081 GB, free: 13.12 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.0001006/0.9265, allocations: 123.9 kB / 1.081 GB, free: 13 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.44e-05/0.9265, allocations: 15.81 kB / 1.081 GB, free: 12.98 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003342/0.9268, allocations: 139 kB / 1.081 GB, free: 12.84 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.037e-06/0.9269, allocations: 3.953 kB / 1.081 GB, free: 12.83 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.967e-06/0.9269, allocations: 0 / 1.081 GB, free: 12.83 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.37e-06/0.9269, allocations: 3.984 kB / 1.081 GB, free: 12.83 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002235/0.9271, allocations: 221.6 kB / 1.082 GB, free: 12.56 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-06/0.9271, allocations: 0 / 1.082 GB, free: 12.56 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001066/0.9272, allocations: 15.98 kB / 1.082 GB, free: 12.55 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.831e-06/0.9272, allocations: 4 kB / 1.082 GB, free: 12.54 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.688e-06/0.9272, allocations: 0 / 1.082 GB, free: 12.54 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.463e-06/0.9273, allocations: 4 kB / 1.082 GB, free: 12.54 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.564e-06/0.9273, allocations: 3.953 kB / 1.082 GB, free: 12.54 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000312/0.9276, allocations: 215.4 kB / 1.082 GB, free: 12.31 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 5.526e-05/0.9276, allocations: 100.8 kB / 1.082 GB, free: 12.19 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.145e-05/0.9277, allocations: 0 / 1.082 GB, free: 12.19 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001269/0.9278, allocations: 8 kB / 1.082 GB, free: 12.18 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.922e-05/0.9279, allocations: 7.984 kB / 1.082 GB, free: 12.18 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.346e-06/0.9279, allocations: 7.953 kB / 1.082 GB, free: 12.17 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0001092/0.928, allocations: 136.7 kB / 1.082 GB, free: 12.04 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.9e-07/0.928, allocations: 0 / 1.082 GB, free: 12.04 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0002427/0.9282, allocations: 24 kB / 1.082 GB, free: 12.01 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.0006389/0.9289, allocations: 0.7591 MB / 1.083 GB, free: 11.23 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0002703/0.9292, allocations: 87.92 kB / 1.083 GB, free: 11.14 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 1.873e-06/0.9292, allocations: 0 / 1.083 GB, free: 11.14 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0001408/0.9293, allocations: 43.92 kB / 1.083 GB, free: 11.1 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003279/0.9297, allocations: 40.98 kB / 1.083 GB, free: 11.06 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001527/0.9312, allocations: 0.8424 MB / 1.084 GB, free: 10.17 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002881/0.9315, allocations: 0.716 MB / 1.084 GB, free: 9.43 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 7.291e-05/0.9316, allocations: 12.88 kB / 1.084 GB, free: 9.418 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.264e-05/0.9317, allocations: 35.42 kB / 1.085 GB, free: 9.383 MB / 0.8419 GB Notification: Performance of SimCode: time 2.91e-07/0.9317, allocations: 8 kB / 1.085 GB, free: 9.375 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01313/0.9448, allocations: 2.854 MB / 1.087 GB, free: 6.684 MB / 0.8419 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001765/0.945, allocations: 202.5 kB / 1.088 GB, free: 6.438 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.682/2.627, allocations: 0 / 1.088 GB, free: 6.438 MB / 0.8419 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