Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Interfaces.Examples.EightPortHeatMassExchanger.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Interfaces.Examples.EightPortHeatMassExchanger,fileNamePrefix="Buildings_latest_Buildings_Fluid_Interfaces_Examples_EightPortHeatMassExchanger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Interfaces.Examples.EightPortHeatMassExchanger,fileNamePrefix="Buildings_latest_Buildings_Fluid_Interfaces_Examples_EightPortHeatMassExchanger",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.508/2.508, allocations: 393.5 MB / 408.4 MB, free: 11.02 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.001271/0.00127, allocations: 183.9 kB / 0.4901 GB, free: 2.223 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.764/1.764, allocations: 223.1 MB / 0.7992 GB, free: 14.75 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001057/0.001057, allocations: 101.7 kB / 0.9396 GB, free: 1.922 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003689/0.0003691, allocations: 12.5 kB / 1.09 GB, free: 216.2 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2728/0.2731, allocations: 143 MB / 1.229 GB, free: 105.7 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.099/1.372, allocations: 426.9 MB / 1.646 GB, free: 2.5 MB / 0.9636 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003197/1.373, allocations: 98.83 kB / 1.646 GB, free: 2.449 MB / 0.9636 GB Notification: Performance of FrontEnd - DAE generated: time 3.021/4.393, allocations: 0.8159 GB / 2.462 GB, free: 216.3 MB / 1.167 GB Notification: Performance of FrontEnd: time 3.657e-06/4.394, allocations: 3.594 kB / 2.462 GB, free: 216.3 MB / 1.167 GB Notification: Performance of Transformations before backend: time 0.0003997/4.394, allocations: 56.39 kB / 2.462 GB, free: 216.2 MB / 1.167 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 344 * Number of variables: 344 Notification: Performance of Generate backend data structure: time 0.009267/4.403, allocations: 2.574 MB / 2.465 GB, free: 215.2 MB / 1.167 GB Notification: Performance of prepare preOptimizeDAE: time 5.457e-05/4.403, allocations: 10.56 kB / 2.465 GB, free: 215.2 MB / 1.167 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007993/4.404, allocations: 203.2 kB / 2.465 GB, free: 215.1 MB / 1.167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001463/4.406, allocations: 264.2 kB / 2.465 GB, free: 215 MB / 1.167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05607/4.462, allocations: 24.86 MB / 2.489 GB, free: 213.8 MB / 1.167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000141/4.462, allocations: 106.7 kB / 2.49 GB, free: 213.8 MB / 1.167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005349/4.462, allocations: 150.3 kB / 2.49 GB, free: 213.8 MB / 1.167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003795/4.466, allocations: 1.475 MB / 2.491 GB, free: 213.6 MB / 1.167 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.701e-05/4.466, allocations: 3.188 kB / 2.491 GB, free: 213.6 MB / 1.167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002089/4.467, allocations: 61.22 kB / 2.491 GB, free: 213.6 MB / 1.167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.012e-05/4.467, allocations: 38.75 kB / 2.491 GB, free: 213.6 MB / 1.167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002428/4.469, allocations: 1.117 MB / 2.492 GB, free: 213.6 MB / 1.167 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.00986/4.479, allocations: 7.566 MB / 2.5 GB, free: 209.3 MB / 1.167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001068/4.48, allocations: 0.516 MB / 2.5 GB, free: 209.3 MB / 1.167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007245/4.481, allocations: 1.159 MB / 2.501 GB, free: 208 MB / 1.167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.778e-05/4.481, allocations: 45.41 kB / 2.501 GB, free: 208 MB / 1.167 GB Notification: Performance of pre-optimization done (n=59): time 3.897e-06/4.481, allocations: 0 / 2.501 GB, free: 208 MB / 1.167 GB Notification: Performance of matching and sorting (n=59): time 0.002512/4.483, allocations: 1.041 MB / 2.502 GB, free: 207.8 MB / 1.167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.988e-05/4.483, allocations: 61.16 kB / 2.503 GB, free: 207.8 MB / 1.167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002859/4.486, allocations: 1.544 MB / 2.504 GB, free: 207.5 MB / 1.167 GB Notification: Performance of collectPreVariables (initialization): time 0.0001446/4.486, allocations: 39.11 kB / 2.504 GB, free: 207.5 MB / 1.167 GB Notification: Performance of collectInitialEqns (initialization): time 0.00082/4.487, allocations: 0.9429 MB / 2.505 GB, free: 207.2 MB / 1.167 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002124/4.487, allocations: 216.7 kB / 2.505 GB, free: 207.1 MB / 1.167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.118e-05/4.488, allocations: 24.36 kB / 2.505 GB, free: 207.1 MB / 1.167 GB Notification: Performance of setup shared object (initialization): time 8.94e-05/4.488, allocations: 335.8 kB / 2.506 GB, free: 206.8 MB / 1.167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006151/4.488, allocations: 312 kB / 2.506 GB, free: 206.8 MB / 1.167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007963/4.489, allocations: 0.6782 MB / 2.506 GB, free: 206.3 MB / 1.167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007539/4.49, allocations: 413.9 kB / 2.507 GB, free: 206.3 MB / 1.167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.163e-05/4.49, allocations: 6.5 kB / 2.507 GB, free: 206.3 MB / 1.167 GB Notification: Performance of matching and sorting (n=111) (initialization): time 0.002286/4.492, allocations: 1.134 MB / 2.508 GB, free: 206.2 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 2.382e-05/4.492, allocations: 9.375 kB / 2.508 GB, free: 206.2 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.939e-05/4.492, allocations: 13.61 kB / 2.508 GB, free: 206.2 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.665e-05/4.492, allocations: 20.5 kB / 2.508 GB, free: 206.2 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007293/4.493, allocations: 225.8 kB / 2.508 GB, free: 206.2 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.914e-05/4.493, allocations: 22.7 kB / 2.508 GB, free: 206.2 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001937/4.495, allocations: 234.6 kB / 2.509 GB, free: 206.1 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000139/4.495, allocations: 51.45 kB / 2.509 GB, free: 206.1 MB / 1.167 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 45 * 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 (111): * Single equations (assignments): 111 * 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.0009986/4.496, allocations: 440.3 kB / 2.509 GB, free: 206 MB / 1.167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004878/4.497, allocations: 197 kB / 2.509 GB, free: 205.9 MB / 1.167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001979/4.499, allocations: 0.9202 MB / 2.51 GB, free: 205.8 MB / 1.167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.497e-05/4.499, allocations: 7.609 kB / 2.51 GB, free: 205.8 MB / 1.167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.893e-06/4.499, allocations: 6.562 kB / 2.51 GB, free: 205.8 MB / 1.167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001207/4.5, allocations: 0.8384 MB / 2.511 GB, free: 205.5 MB / 1.167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005252/4.505, allocations: 2.526 MB / 2.513 GB, free: 205.1 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.206e-06/4.505, allocations: 3.812 kB / 2.513 GB, free: 205.1 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007037/4.506, allocations: 184.8 kB / 2.514 GB, free: 205.1 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.445e-05/4.506, allocations: 3.281 kB / 2.514 GB, free: 205.1 MB / 1.167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.137e-05/4.506, allocations: 20.19 kB / 2.514 GB, free: 205.1 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.266e-06/4.506, allocations: 6.938 kB / 2.514 GB, free: 205.1 MB / 1.167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.496e-06/4.506, allocations: 3.438 kB / 2.514 GB, free: 205.1 MB / 1.167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002471/4.508, allocations: 1.597 MB / 2.515 GB, free: 204.6 MB / 1.167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001209/4.51, allocations: 403.8 kB / 2.516 GB, free: 204.4 MB / 1.167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005938/4.51, allocations: 14.7 kB / 2.516 GB, free: 204.4 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001683/4.512, allocations: 132.5 kB / 2.516 GB, free: 204.3 MB / 1.167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001195/4.512, allocations: 51.91 kB / 2.516 GB, free: 204.3 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.516e-05/4.512, allocations: 34.45 kB / 2.516 GB, free: 204.3 MB / 1.167 GB Notification: Performance of sorting global known variables: time 0.00248/4.515, allocations: 1.235 MB / 2.517 GB, free: 204.2 MB / 1.167 GB Notification: Performance of sort global known variables: time 1.41e-07/4.515, allocations: 0 / 2.517 GB, free: 204.2 MB / 1.167 GB Notification: Performance of remove unused functions: time 0.002903/4.518, allocations: 0.6911 MB / 2.518 GB, free: 204.1 MB / 1.167 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 4 (eigPor.vol1.dynBal.U,eigPor.vol2.dynBal.U,eigPor.vol3.dynBal.U,eigPor.vol4.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 (64): * Single equations (assignments): 59 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 5 * 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.005692/4.523, allocations: 3.487 MB / 2.521 GB, free: 202.5 MB / 1.167 GB Notification: Performance of simCode: created initialization part: time 0.00172/4.525, allocations: 0.7908 MB / 2.522 GB, free: 202.4 MB / 1.167 GB Notification: Performance of simCode: created event and clocks part: time 8.416e-06/4.525, allocations: 0 / 2.522 GB, free: 202.4 MB / 1.167 GB Notification: Performance of simCode: created simulation system equations: time 0.0006886/4.526, allocations: 388.8 kB / 2.522 GB, free: 202.4 MB / 1.167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006242/4.532, allocations: 1.253 MB / 2.523 GB, free: 202.4 MB / 1.167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02614/4.558, allocations: 17.8 MB / 2.541 GB, free: 191.1 MB / 1.167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001349/4.56, allocations: 1.447 MB / 2.542 GB, free: 190.3 MB / 1.167 GB Notification: Performance of simCode: alias equations: time 0.00232/4.562, allocations: 392.2 kB / 2.543 GB, free: 190.3 MB / 1.167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001237/4.563, allocations: 0.7582 MB / 2.543 GB, free: 189.8 MB / 1.167 GB Notification: Performance of SimCode: time 2.274e-06/4.563, allocations: 0 / 2.543 GB, free: 189.8 MB / 1.167 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1182/4.681, allocations: 63.15 MB / 2.605 GB, free: 148.6 MB / 1.167 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001758/4.682, allocations: 243 kB / 2.605 GB, free: 148.4 MB / 1.167 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.293/8.974, allocations: 0 / 2.605 GB, free: 148.4 MB / 1.167 GB (rm -f Buildings_latest_Buildings.Fluid.Interfaces.Examples.EightPortHeatMassExchanger.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Interfaces.Examples.EightPortHeatMassExchanger.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Interfaces.Examples.EightPortHeatMassExchanger.pipe >> ../files/Buildings_latest_Buildings.Fluid.Interfaces.Examples.EightPortHeatMassExchanger.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.Interfaces.Examples.EightPortHeatMassExchanger_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_Interfaces_Examples_EightPortHeatMassExchanger_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_Interfaces_Examples_EightPortHeatMassExchanger.fmu > Buildings_latest_Buildings.Fluid.Interfaces.Examples.EightPortHeatMassExchanger.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Fluid.Interfaces.Examples.EightPortHeatMassExchanger_res.mat does not exist to compare? outputFormat=mat