Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_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 10.0.0-master/package.mo", uses=false) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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_latest_Buildings_Fluid_Interfaces_Examples_FourPortHeatMassExchanger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger,fileNamePrefix="Buildings_latest_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.0009364/0.0009363, allocations: 99.16 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.001097/0.001097, 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.438 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.319/2.319, allocations: 409.2 MB / 0.6838 GB, free: 1.012 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0003761/0.0003762, allocations: 8 kB / 0.8375 GB, free: 6.57 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8398/0.8402, allocations: 146.8 MB / 0.9809 GB, free: 6.27 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger): time 0.03297/0.8732, allocations: 34.81 MB / 1.015 GB, free: 3.363 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.01357/0.8869, allocations: 8.943 MB / 1.024 GB, free: 10.4 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001844/0.8888, allocations: 51.62 kB / 1.024 GB, free: 10.35 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.002121/0.8909, allocations: 0.6141 MB / 1.024 GB, free: 9.734 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.006158/0.8971, allocations: 1.822 MB / 1.026 GB, free: 7.91 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.004029/0.9011, allocations: 1.353 MB / 1.027 GB, free: 6.582 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.004397/0.9055, allocations: 1.964 MB / 1.029 GB, free: 4.617 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00136/0.9069, allocations: 0.7633 MB / 1.03 GB, free: 3.84 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001876/0.9088, allocations: 0.8796 MB / 1.031 GB, free: 2.957 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000689/0.9095, allocations: 0.5482 MB / 1.031 GB, free: 2.406 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 8.367e-05/0.9096, allocations: 36 kB / 1.031 GB, free: 2.371 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001883/0.9115, allocations: 0.5422 MB / 1.032 GB, free: 1.828 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0002253/0.9117, allocations: 199.2 kB / 1.032 GB, free: 1.633 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0002707/0.912, allocations: 257.1 kB / 1.032 GB, free: 1.375 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.001543/0.9135, allocations: 1.356 MB / 1.034 GB, free: 16 kB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.106e-06/0.9135, allocations: 0 / 1.034 GB, free: 16 kB / 0.7794 GB Notification: Performance of FrontEnd: time 2.084e-06/0.9136, allocations: 4 kB / 1.034 GB, free: 12 kB / 0.7794 GB Notification: Performance of Transformations before backend: time 1.603e-05/0.9136, allocations: 0 / 1.034 GB, free: 12 kB / 0.7794 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.002386/0.916, allocations: 1.316 MB / 1.035 GB, free: 14.64 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 5.17e-05/0.916, allocations: 8.031 kB / 1.035 GB, free: 14.63 MB / 0.795 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001616/0.9162, allocations: 118.5 kB / 1.035 GB, free: 14.51 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003355/0.9165, allocations: 138.4 kB / 1.035 GB, free: 14.37 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001571/0.9181, allocations: 0.9632 MB / 1.036 GB, free: 13.37 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.151e-05/0.9182, allocations: 58 kB / 1.036 GB, free: 13.31 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001066/0.9183, allocations: 79.84 kB / 1.036 GB, free: 13.23 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001275/0.9196, allocations: 0.7944 MB / 1.037 GB, free: 12.41 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.135e-05/0.9196, allocations: 4 kB / 1.037 GB, free: 12.4 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.438e-05/0.9197, allocations: 24 kB / 1.037 GB, free: 12.38 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.568e-05/0.9197, allocations: 27.95 kB / 1.037 GB, free: 12.35 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001128/0.9209, allocations: 0.5828 MB / 1.038 GB, free: 11.77 MB / 0.795 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.004037/0.9249, allocations: 3.575 MB / 1.041 GB, free: 7.969 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000584/0.9255, allocations: 278.5 kB / 1.041 GB, free: 7.688 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005448/0.9261, allocations: 0.6648 MB / 1.042 GB, free: 6.875 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.195e-05/0.9261, allocations: 34.56 kB / 1.042 GB, free: 6.832 MB / 0.795 GB Notification: Performance of pre-optimization done (n=31): time 2.204e-06/0.9261, allocations: 0 / 1.042 GB, free: 6.832 MB / 0.795 GB Notification: Performance of matching and sorting (n=31): time 0.001178/0.9273, allocations: 0.5476 MB / 1.043 GB, free: 6.277 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.253e-05/0.9274, allocations: 55.41 kB / 1.043 GB, free: 6.211 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001138/0.9285, allocations: 0.9767 MB / 1.044 GB, free: 5.215 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 4.291e-05/0.9286, allocations: 33.7 kB / 1.044 GB, free: 5.176 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003831/0.9289, allocations: 499.7 kB / 1.044 GB, free: 4.68 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001002/0.9291, allocations: 118.4 kB / 1.044 GB, free: 4.562 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.898e-05/0.9291, allocations: 8 kB / 1.044 GB, free: 4.555 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001169/0.9292, allocations: 326 kB / 1.045 GB, free: 4.23 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003449/0.9295, allocations: 177 kB / 1.045 GB, free: 4.059 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004518/0.93, allocations: 355 kB / 1.045 GB, free: 3.637 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004072/0.9304, allocations: 235.8 kB / 1.045 GB, free: 3.406 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.92e-06/0.9304, allocations: 0 / 1.045 GB, free: 3.406 MB / 0.795 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001051/0.9315, allocations: 0.6368 MB / 1.046 GB, free: 2.762 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 2.186e-05/0.9315, allocations: 9.672 kB / 1.046 GB, free: 2.754 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.003e-05/0.9315, allocations: 8 kB / 1.046 GB, free: 2.746 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.911e-05/0.9316, allocations: 8 kB / 1.046 GB, free: 2.738 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004446/0.932, allocations: 127.8 kB / 1.046 GB, free: 2.613 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.706e-05/0.932, allocations: 16.2 kB / 1.046 GB, free: 2.598 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007624/0.9328, allocations: 119.2 kB / 1.046 GB, free: 2.48 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.783e-05/0.9329, allocations: 27.94 kB / 1.046 GB, free: 2.453 MB / 0.795 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.0003844/0.9333, allocations: 273.6 kB / 1.047 GB, free: 2.176 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000134/0.9334, allocations: 98.78 kB / 1.047 GB, free: 2.078 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001017/0.9344, allocations: 0.5057 MB / 1.047 GB, free: 1.57 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.511e-05/0.9345, allocations: 7.984 kB / 1.047 GB, free: 1.562 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.781e-06/0.9345, allocations: 0 / 1.047 GB, free: 1.562 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007346/0.9352, allocations: 465.5 kB / 1.048 GB, free: 1.078 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002225/0.9374, allocations: 1.385 MB / 1.049 GB, free: 15.62 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.747e-06/0.9375, allocations: 4 kB / 1.049 GB, free: 15.62 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003265/0.9378, allocations: 84.05 kB / 1.049 GB, free: 15.54 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.504e-06/0.9378, allocations: 4 kB / 1.049 GB, free: 15.53 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.69e-05/0.9378, allocations: 11.98 kB / 1.049 GB, free: 15.52 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.568e-06/0.9379, allocations: 7.938 kB / 1.049 GB, free: 15.51 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.484e-06/0.9379, allocations: 0 / 1.049 GB, free: 15.51 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001228/0.9391, allocations: 0.8634 MB / 1.05 GB, free: 14.59 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003532/0.9395, allocations: 263.6 kB / 1.05 GB, free: 14.32 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001105/0.9396, allocations: 8 kB / 1.05 GB, free: 14.31 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005475/0.9401, allocations: 55.94 kB / 1.05 GB, free: 14.25 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.643e-05/0.9402, allocations: 27.97 kB / 1.05 GB, free: 14.23 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.619e-05/0.9403, allocations: 19.98 kB / 1.05 GB, free: 14.21 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0008593/0.9411, allocations: 0.6745 MB / 1.051 GB, free: 13.52 MB / 0.8106 GB Notification: Performance of sort global known variables: time 3e-07/0.9411, allocations: 0 / 1.051 GB, free: 13.52 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.00098/0.9421, allocations: 343.4 kB / 1.051 GB, free: 13.19 MB / 0.8106 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.00231/0.9445, allocations: 2.025 MB / 1.053 GB, free: 11.11 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0009246/0.9454, allocations: 432.7 kB / 1.054 GB, free: 10.69 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 5.12e-06/0.9454, allocations: 8.125 kB / 1.054 GB, free: 10.68 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0003633/0.9458, allocations: 191.8 kB / 1.054 GB, free: 10.5 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002755/0.9485, allocations: 0.5886 MB / 1.054 GB, free: 9.918 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004787/0.9533, allocations: 5.959 MB / 1.06 GB, free: 3.781 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006844/0.9541, allocations: 1.056 MB / 1.061 GB, free: 2.695 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.0008453/0.9549, allocations: 199.5 kB / 1.061 GB, free: 2.5 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004402/0.9554, allocations: 371.3 kB / 1.062 GB, free: 2.137 MB / 0.8106 GB Notification: Performance of SimCode: time 3.476e-06/0.9554, allocations: 0 / 1.062 GB, free: 2.137 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07349/1.029, allocations: 29 MB / 1.09 GB, free: 5.57 MB / 0.8419 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002636/1.029, allocations: 239.3 kB / 1.09 GB, free: 5.328 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.247/3.277, allocations: 8 kB / 1.09 GB, free: 5.32 MB / 0.8419 GB (rm -f Buildings_latest_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe >> ../files/Buildings_latest_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_Interfaces_Examples_FourPortHeatMassExchanger_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_Interfaces_Examples_FourPortHeatMassExchanger.fmu > Buildings_latest_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger_res.mat does not exist to compare? outputFormat=mat