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/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.289/2.289, allocations: 387.4 MB / 394.9 MB, free: 13.3 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.001087/0.001087, allocations: 184.3 kB / 487.4 MB, free: 5.023 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.652/1.652, allocations: 221.5 MB / 0.7824 GB, free: 0.9961 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009736/0.0009735, allocations: 91.97 kB / 0.9219 GB, free: 2.223 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 2.048e-05/2.042e-05, allocations: 7.984 kB / 1.067 GB, free: 185.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3035/0.3035, allocations: 142.4 MB / 1.206 GB, free: 43.85 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.223/1.527, allocations: 419.1 MB / 1.615 GB, free: 3.105 MB / 1.026 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002456/1.527, allocations: 96.97 kB / 1.615 GB, free: 3.059 MB / 1.026 GB Notification: Performance of FrontEnd - DAE generated: time 1.647/3.174, allocations: 441.8 MB / 2.047 GB, free: 159.5 MB / 1.151 GB Notification: Performance of FrontEnd: time 1.031e-06/3.174, allocations: 0 / 2.047 GB, free: 159.5 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.0001005/3.174, allocations: 31.98 kB / 2.047 GB, free: 159.5 MB / 1.151 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.002141/3.176, allocations: 1.255 MB / 2.048 GB, free: 158.2 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 5.007e-05/3.176, allocations: 8.031 kB / 2.048 GB, free: 158.2 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003324/3.177, allocations: 142.4 kB / 2.048 GB, free: 158.1 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0241/3.201, allocations: 12.91 MB / 2.061 GB, free: 145 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.46e-05/3.201, allocations: 28 kB / 2.061 GB, free: 144.9 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001001/3.201, allocations: 40 kB / 2.061 GB, free: 144.9 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008874/3.202, allocations: 455.9 kB / 2.061 GB, free: 144.5 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009891/3.203, allocations: 0.6232 MB / 2.062 GB, free: 143.8 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.773e-05/3.203, allocations: 7.938 kB / 2.062 GB, free: 143.8 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.397e-05/3.203, allocations: 3.953 kB / 2.062 GB, free: 143.8 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.043e-05/3.203, allocations: 20 kB / 2.062 GB, free: 143.8 MB / 1.151 GB Warning: The model contains alias variables with conflicting start and/or 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.003549/3.207, allocations: 3.375 MB / 2.065 GB, free: 140.2 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004528/3.207, allocations: 319.8 kB / 2.066 GB, free: 139.8 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001716/3.207, allocations: 150 kB / 2.066 GB, free: 139.7 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003909/3.208, allocations: 0.6609 MB / 2.066 GB, free: 138.9 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.536e-05/3.208, allocations: 50.5 kB / 2.066 GB, free: 138.8 MB / 1.151 GB Notification: Performance of pre-optimization done (n=31): time 3.246e-06/3.208, allocations: 0 / 2.066 GB, free: 138.8 MB / 1.151 GB Notification: Performance of matching and sorting (n=31): time 0.0007093/3.208, allocations: 341.1 kB / 2.067 GB, free: 138.5 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.413e-05/3.208, allocations: 63.38 kB / 2.067 GB, free: 138.4 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00066/3.209, allocations: 0.6414 MB / 2.067 GB, free: 137.8 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 3.331e-05/3.209, allocations: 29.7 kB / 2.067 GB, free: 137.7 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002656/3.209, allocations: 0.495 MB / 2.068 GB, free: 137.2 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 7.1e-05/3.21, allocations: 114.4 kB / 2.068 GB, free: 137.1 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.682e-05/3.21, allocations: 4 kB / 2.068 GB, free: 137.1 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 6.201e-05/3.21, allocations: 326 kB / 2.068 GB, free: 136.8 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001462/3.21, allocations: 113.1 kB / 2.068 GB, free: 136.7 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002404/3.21, allocations: 323.1 kB / 2.069 GB, free: 136.3 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003319/3.21, allocations: 191.5 kB / 2.069 GB, free: 136.1 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.958e-06/3.21, allocations: 4 kB / 2.069 GB, free: 136.1 MB / 1.151 GB Notification: Performance of matching and sorting (n=57) (initialization): time 0.0007216/3.211, allocations: 488 kB / 2.069 GB, free: 135.6 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 2.35e-05/3.211, allocations: 7.953 kB / 2.069 GB, free: 135.6 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.002e-05/3.211, allocations: 8.688 kB / 2.069 GB, free: 135.6 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.248e-05/3.211, allocations: 8 kB / 2.069 GB, free: 135.6 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004471/3.212, allocations: 119.8 kB / 2.07 GB, free: 135.5 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.05e-05/3.212, allocations: 8 kB / 2.07 GB, free: 135.4 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007447/3.212, allocations: 79.48 kB / 2.07 GB, free: 135.4 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.444e-05/3.212, allocations: 31.98 kB / 2.07 GB, free: 135.3 MB / 1.151 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (57): * Single equations (assignments): 57 * 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.0001089/3.213, allocations: 116.8 kB / 2.07 GB, free: 135.2 MB / 1.151 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0006181/3.213, allocations: 344.5 kB / 2.07 GB, free: 134.9 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001068/3.213, allocations: 90.92 kB / 2.07 GB, free: 134.8 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008031/3.214, allocations: 425.6 kB / 2.071 GB, free: 134.4 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.278e-06/3.214, allocations: 4 kB / 2.071 GB, free: 134.3 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/3.214, allocations: 0 / 2.071 GB, free: 134.3 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005226/3.215, allocations: 391.1 kB / 2.071 GB, free: 133.9 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001707/3.216, allocations: 1.284 MB / 2.072 GB, free: 132.6 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.729e-06/3.216, allocations: 4 kB / 2.072 GB, free: 132.6 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003225/3.217, allocations: 79.89 kB / 2.072 GB, free: 132.5 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.134e-06/3.217, allocations: 7.938 kB / 2.072 GB, free: 132.5 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.377e-05/3.217, allocations: 4.156 kB / 2.072 GB, free: 132.5 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.08e-06/3.217, allocations: 11.98 kB / 2.072 GB, free: 132.5 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.789e-06/3.217, allocations: 3.984 kB / 2.072 GB, free: 132.5 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007994/3.218, allocations: 0.7397 MB / 2.073 GB, free: 131.7 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002897/3.218, allocations: 227.8 kB / 2.073 GB, free: 131.4 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.811e-05/3.218, allocations: 0 / 2.073 GB, free: 131.4 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004849/3.219, allocations: 55.94 kB / 2.073 GB, free: 131.4 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.327e-05/3.219, allocations: 23.97 kB / 2.073 GB, free: 131.3 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.712e-05/3.219, allocations: 23.98 kB / 2.073 GB, free: 131.3 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.0005499/3.219, allocations: 499.1 kB / 2.074 GB, free: 130.8 MB / 1.151 GB Notification: Performance of sort global known variables: time 1.4e-07/3.219, allocations: 0 / 2.074 GB, free: 130.8 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.001152/3.22, allocations: 371 kB / 2.074 GB, free: 130.5 MB / 1.151 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 () * 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.001875/3.222, allocations: 2.08 MB / 2.076 GB, free: 128.4 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.0005158/3.223, allocations: 323.9 kB / 2.077 GB, free: 128 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 3.266e-06/3.223, allocations: 5.312 kB / 2.077 GB, free: 128 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0001875/3.223, allocations: 159.8 kB / 2.077 GB, free: 127.9 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002069/3.225, allocations: 477.5 kB / 2.077 GB, free: 127.4 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002495/3.228, allocations: 1.396 MB / 2.079 GB, free: 126 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004131/3.228, allocations: 1.051 MB / 2.08 GB, free: 124.9 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.000665/3.229, allocations: 187.5 kB / 2.08 GB, free: 124.7 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003754/3.229, allocations: 355.3 kB / 2.08 GB, free: 124.3 MB / 1.151 GB Notification: Performance of SimCode: time 6.51e-07/3.229, allocations: 0 / 2.08 GB, free: 124.3 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05158/3.281, allocations: 25.15 MB / 2.105 GB, free: 99.41 MB / 1.151 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001821/3.281, allocations: 182.8 kB / 2.105 GB, free: 99.22 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.779/6.059, allocations: 4 kB / 2.105 GB, free: 99.21 MB / 1.151 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