Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.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.Interfaces.Examples.FourPortHeatMassExchanger,fileNamePrefix="Buildings_9_Buildings_Fluid_Interfaces_Examples_FourPortHeatMassExchanger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger,fileNamePrefix="Buildings_9_Buildings_Fluid_Interfaces_Examples_FourPortHeatMassExchanger",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.001006/0.001006, allocations: 99.86 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.0009602/0.0009602, allocations: 177.3 kB / 15.94 MB, free: 228 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.35/1.35, allocations: 223.2 MB / 239.9 MB, free: 5.328 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.389/2.389, allocations: 390.3 MB / 0.6653 GB, free: 2.918 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003903/0.0003905, allocations: 8 kB / 0.8146 GB, free: 14.21 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7036/0.704, allocations: 142.3 MB / 0.9536 GB, free: 8.09 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger): time 0.0407/0.7447, allocations: 34.82 MB / 0.9876 GB, free: 12.73 MB / 0.7481 GB Notification: Performance of NFInst.instExpressions: time 0.0137/0.7585, allocations: 8.946 MB / 0.9963 GB, free: 4.289 MB / 0.7481 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00168/0.7602, allocations: 51.62 kB / 0.9964 GB, free: 4.238 MB / 0.7481 GB Notification: Performance of NFTyping.typeComponents: time 0.001887/0.7621, allocations: 0.6102 MB / 0.997 GB, free: 3.625 MB / 0.7481 GB Notification: Performance of NFTyping.typeBindings: time 0.005422/0.7675, allocations: 1.831 MB / 0.9988 GB, free: 1.789 MB / 0.7481 GB Notification: Performance of NFTyping.typeClassSections: time 0.004223/0.7718, allocations: 1.347 MB / 1 GB, free: 480 kB / 0.7481 GB Notification: Performance of NFFlatten.flatten: time 0.00417/0.7759, allocations: 1.981 MB / 1.002 GB, free: 14.49 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001339/0.7773, allocations: 0.744 MB / 1.003 GB, free: 13.74 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001999/0.7793, allocations: 0.8836 MB / 1.004 GB, free: 12.85 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001058/0.7804, allocations: 0.5404 MB / 1.004 GB, free: 12.31 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 0.0001329/0.7805, allocations: 36 kB / 1.004 GB, free: 12.27 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001745/0.7823, allocations: 0.5422 MB / 1.005 GB, free: 11.73 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 0.0002469/0.7825, allocations: 191.2 kB / 1.005 GB, free: 11.54 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 0.0003257/0.7829, allocations: 265.1 kB / 1.005 GB, free: 11.28 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.001743/0.7846, allocations: 1.356 MB / 1.006 GB, free: 9.918 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.7846, allocations: 0 / 1.006 GB, free: 9.918 MB / 0.7637 GB Notification: Performance of FrontEnd: time 1.603e-06/0.7846, allocations: 3.938 kB / 1.006 GB, free: 9.914 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 2.172e-05/0.7847, allocations: 0 / 1.006 GB, free: 9.914 MB / 0.7637 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 174 * Number of variables: 174 Notification: Performance of Generate backend data structure: time 0.002454/0.7871, allocations: 1.312 MB / 1.008 GB, free: 8.547 MB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 4.319e-05/0.7872, allocations: 11.97 kB / 1.008 GB, free: 8.535 MB / 0.7637 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001524/0.7873, allocations: 114.5 kB / 1.008 GB, free: 8.414 MB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003291/0.7877, allocations: 126.6 kB / 1.008 GB, free: 8.289 MB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001631/0.7893, allocations: 0.9864 MB / 1.009 GB, free: 7.262 MB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.106e-05/0.7894, allocations: 54 kB / 1.009 GB, free: 7.207 MB / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000103/0.7895, allocations: 72 kB / 1.009 GB, free: 7.137 MB / 0.7637 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001329/0.7908, allocations: 0.7905 MB / 1.01 GB, free: 6.312 MB / 0.7637 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.256e-05/0.7909, allocations: 3.906 kB / 1.01 GB, free: 6.309 MB / 0.7637 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.563e-05/0.7909, allocations: 32 kB / 1.01 GB, free: 6.277 MB / 0.7637 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.219e-05/0.791, allocations: 23.97 kB / 1.01 GB, free: 6.254 MB / 0.7637 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001135/0.7921, allocations: 0.5867 MB / 1.01 GB, free: 5.668 MB / 0.7637 GB Warning: The model contains alias variables with redundant start and/or conflicting 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.004154/0.7963, allocations: 3.583 MB / 1.014 GB, free: 1.855 MB / 0.7637 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00059/0.7969, allocations: 263.4 kB / 1.014 GB, free: 1.59 MB / 0.7637 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000562/0.7975, allocations: 0.657 MB / 1.015 GB, free: 0.7852 MB / 0.7637 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.573e-05/0.7975, allocations: 42.55 kB / 1.015 GB, free: 0.7344 MB / 0.7637 GB Notification: Performance of pre-optimization done (n=31): time 2.375e-06/0.7975, allocations: 0 / 1.015 GB, free: 0.7344 MB / 0.7637 GB Notification: Performance of matching and sorting (n=31): time 0.001241/0.7988, allocations: 0.5475 MB / 1.015 GB, free: 184 kB / 0.7637 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.271e-05/0.7988, allocations: 55.39 kB / 1.015 GB, free: 116 kB / 0.7637 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001276/0.8001, allocations: 0.9651 MB / 1.016 GB, free: 15.13 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 4.878e-05/0.8002, allocations: 33.7 kB / 1.016 GB, free: 15.09 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004332/0.8006, allocations: 0.4957 MB / 1.017 GB, free: 14.59 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 0.000125/0.8008, allocations: 114.4 kB / 1.017 GB, free: 14.47 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.061e-05/0.8008, allocations: 15.88 kB / 1.017 GB, free: 14.46 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001347/0.8009, allocations: 334 kB / 1.017 GB, free: 14.12 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003748/0.8013, allocations: 169 kB / 1.018 GB, free: 13.96 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004988/0.8018, allocations: 358.9 kB / 1.018 GB, free: 13.54 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004232/0.8023, allocations: 227.8 kB / 1.018 GB, free: 13.31 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.717e-06/0.8023, allocations: 0 / 1.018 GB, free: 13.31 MB / 0.7794 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001233/0.8035, allocations: 0.6405 MB / 1.019 GB, free: 12.66 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.934e-05/0.8035, allocations: 9.25 kB / 1.019 GB, free: 12.66 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.111e-05/0.8036, allocations: 8.062 kB / 1.019 GB, free: 12.65 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.953e-05/0.8036, allocations: 8 kB / 1.019 GB, free: 12.64 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004466/0.804, allocations: 132.2 kB / 1.019 GB, free: 12.51 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.831e-05/0.8041, allocations: 15.89 kB / 1.019 GB, free: 12.5 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007637/0.8048, allocations: 115.2 kB / 1.019 GB, free: 12.38 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.224e-05/0.8049, allocations: 24 kB / 1.019 GB, free: 12.36 MB / 0.7794 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * 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 (65): * Single equations (assignments): 65 * 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.0004164/0.8053, allocations: 277.6 kB / 1.019 GB, free: 12.08 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001321/0.8054, allocations: 98.78 kB / 1.019 GB, free: 11.98 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009863/0.8064, allocations: 0.5033 MB / 1.02 GB, free: 11.47 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.152e-05/0.8065, allocations: 4 kB / 1.02 GB, free: 11.47 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.07e-06/0.8065, allocations: 0 / 1.02 GB, free: 11.47 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007475/0.8072, allocations: 481.2 kB / 1.02 GB, free: 10.97 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00225/0.8095, allocations: 1.381 MB / 1.022 GB, free: 9.516 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.349e-06/0.8095, allocations: 0 / 1.022 GB, free: 9.516 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003399/0.8099, allocations: 87.83 kB / 1.022 GB, free: 9.43 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.404e-06/0.8099, allocations: 4 kB / 1.022 GB, free: 9.426 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.394e-05/0.8099, allocations: 8 kB / 1.022 GB, free: 9.418 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.698e-06/0.8099, allocations: 4 kB / 1.022 GB, free: 9.414 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.8099, allocations: 0 / 1.022 GB, free: 9.414 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001305/0.8112, allocations: 0.8651 MB / 1.023 GB, free: 8.496 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000372/0.8116, allocations: 251.7 kB / 1.023 GB, free: 8.23 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001154/0.8117, allocations: 11.98 kB / 1.023 GB, free: 8.219 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005468/0.8123, allocations: 63.81 kB / 1.023 GB, free: 8.156 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.729e-05/0.8124, allocations: 27.97 kB / 1.023 GB, free: 8.129 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.661e-05/0.8124, allocations: 19.98 kB / 1.023 GB, free: 8.109 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0008304/0.8133, allocations: 0.6705 MB / 1.024 GB, free: 7.43 MB / 0.7794 GB Notification: Performance of sort global known variables: time 2.034e-06/0.8133, allocations: 0 / 1.024 GB, free: 7.43 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.001026/0.8143, allocations: 347.4 kB / 1.024 GB, free: 7.09 MB / 0.7794 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (fouPor.vol1.dynBal.U,fouPor.vol2.dynBal.U) * 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 (34): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * 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.002375/0.8167, allocations: 2.013 MB / 1.026 GB, free: 5.023 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.000896/0.8176, allocations: 444 kB / 1.026 GB, free: 4.59 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 3.987e-06/0.8176, allocations: 0 / 1.026 GB, free: 4.59 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0004064/0.818, allocations: 192.6 kB / 1.027 GB, free: 4.402 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002836/0.8209, allocations: 0.5911 MB / 1.027 GB, free: 3.816 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004737/0.8256, allocations: 5.963 MB / 1.033 GB, free: 13.68 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005609/0.8262, allocations: 1.056 MB / 1.034 GB, free: 12.59 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0008037/0.827, allocations: 198.9 kB / 1.034 GB, free: 12.4 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004569/0.8275, allocations: 375.2 kB / 1.035 GB, free: 12.04 MB / 0.795 GB Notification: Performance of SimCode: time 5.71e-07/0.8275, allocations: 0 / 1.035 GB, free: 12.04 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04931/0.8768, allocations: 29 MB / 1.063 GB, free: 15.48 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002063/0.8771, allocations: 233.8 kB / 1.063 GB, free: 15.24 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.352/3.229, allocations: 0 / 1.063 GB, free: 15.24 MB / 0.8262 GB (rm -f Buildings_9_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe ; mkfifo Buildings_9_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe >> ../files/Buildings_9_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_Interfaces_Examples_FourPortHeatMassExchanger_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_Interfaces_Examples_FourPortHeatMassExchanger.fmu > Buildings_9_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger_res.mat does not exist to compare? outputFormat=mat