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/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.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/Buildings 10.0.0-master/package.mo): time 2.795/2.795, allocations: 390.5 MB / 398 MB, free: 10.94 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.001286/0.001286, allocations: 172.8 kB / 491.2 MB, free: 1.555 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.679/1.679, allocations: 221.5 MB / 0.7868 GB, free: 13.29 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.001017/0.001017, allocations: 98.84 kB / 0.9269 GB, free: 13.77 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.32e-05/2.322e-05, allocations: 7.984 kB / 1.073 GB, free: 181.9 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3377/0.3377, allocations: 143 MB / 1.212 GB, free: 39.43 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.291/1.629, allocations: 419.9 MB / 1.622 GB, free: 10.98 MB / 1.042 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002259/1.629, allocations: 93 kB / 1.623 GB, free: 10.93 MB / 1.042 GB Notification: Performance of FrontEnd - DAE generated: time 1.63/3.259, allocations: 441.8 MB / 2.054 GB, free: 148.2 MB / 1.151 GB Notification: Performance of FrontEnd: time 1.533e-06/3.259, allocations: 0 / 2.054 GB, free: 148.2 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.0001733/3.259, allocations: 31.98 kB / 2.054 GB, free: 148.1 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.002871/3.262, allocations: 1.251 MB / 2.055 GB, free: 146.8 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.545e-05/3.262, allocations: 8.031 kB / 2.055 GB, free: 146.8 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006066/3.263, allocations: 134.6 kB / 2.055 GB, free: 146.7 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02445/3.287, allocations: 12.94 MB / 2.068 GB, free: 133.6 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.806e-05/3.287, allocations: 24 kB / 2.068 GB, free: 133.6 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002665/3.288, allocations: 44 kB / 2.068 GB, free: 133.5 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001164/3.289, allocations: 447.9 kB / 2.068 GB, free: 133.1 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001305/3.29, allocations: 0.6305 MB / 2.069 GB, free: 132.4 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.05e-05/3.29, allocations: 7.938 kB / 2.069 GB, free: 132.4 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.597e-05/3.29, allocations: 4 kB / 2.069 GB, free: 132.4 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.123e-05/3.29, allocations: 23.94 kB / 2.069 GB, free: 132.4 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.004413/3.295, allocations: 3.376 MB / 2.072 GB, free: 128.8 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000495/3.295, allocations: 325.2 kB / 2.073 GB, free: 128.5 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001855/3.295, allocations: 140.8 kB / 2.073 GB, free: 128.3 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004193/3.296, allocations: 0.6649 MB / 2.074 GB, free: 127.5 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.143e-05/3.296, allocations: 39.03 kB / 2.074 GB, free: 127.5 MB / 1.151 GB Notification: Performance of pre-optimization done (n=31): time 2.204e-06/3.296, allocations: 4 kB / 2.074 GB, free: 127.4 MB / 1.151 GB Notification: Performance of matching and sorting (n=31): time 0.0008784/3.297, allocations: 352.5 kB / 2.074 GB, free: 127.1 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.733e-05/3.297, allocations: 55.41 kB / 2.074 GB, free: 127 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001025/3.298, allocations: 0.6376 MB / 2.075 GB, free: 126.4 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 5.562e-05/3.298, allocations: 29.7 kB / 2.075 GB, free: 126.3 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003013/3.298, allocations: 0.5028 MB / 2.075 GB, free: 125.8 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 9.142e-05/3.298, allocations: 106.5 kB / 2.075 GB, free: 125.7 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.676e-05/3.298, allocations: 0 / 2.075 GB, free: 125.7 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 7.618e-05/3.298, allocations: 326 kB / 2.076 GB, free: 125.4 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001607/3.298, allocations: 113.1 kB / 2.076 GB, free: 125.3 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002491/3.299, allocations: 326.1 kB / 2.076 GB, free: 124.9 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004039/3.299, allocations: 183.8 kB / 2.076 GB, free: 124.7 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.564e-06/3.299, allocations: 4 kB / 2.076 GB, free: 124.7 MB / 1.151 GB Notification: Performance of matching and sorting (n=57) (initialization): time 0.0009045/3.3, allocations: 487.9 kB / 2.077 GB, free: 124.2 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 2.348e-05/3.3, allocations: 8 kB / 2.077 GB, free: 124.2 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.039e-05/3.3, allocations: 8 kB / 2.077 GB, free: 124.2 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.401e-05/3.3, allocations: 8.688 kB / 2.077 GB, free: 124.2 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003785/3.301, allocations: 119.8 kB / 2.077 GB, free: 124.1 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.224e-05/3.301, allocations: 8 kB / 2.077 GB, free: 124.1 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007538/3.301, allocations: 79.39 kB / 2.077 GB, free: 124 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.092e-05/3.301, allocations: 31.97 kB / 2.077 GB, free: 124 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.0001164/3.302, allocations: 124.8 kB / 2.077 GB, free: 123.8 MB / 1.151 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0006219/3.302, allocations: 353.2 kB / 2.077 GB, free: 123.5 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001392/3.302, allocations: 82.97 kB / 2.077 GB, free: 123.4 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000726/3.303, allocations: 423.6 kB / 2.078 GB, free: 123 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.107e-06/3.303, allocations: 8 kB / 2.078 GB, free: 123 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.552e-06/3.303, allocations: 0 / 2.078 GB, free: 123 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0004733/3.304, allocations: 391.7 kB / 2.078 GB, free: 122.6 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001814/3.305, allocations: 1.275 MB / 2.079 GB, free: 121.2 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.07e-06/3.305, allocations: 4 kB / 2.079 GB, free: 121.2 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003239/3.306, allocations: 79.88 kB / 2.079 GB, free: 121.1 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.562e-06/3.306, allocations: 4 kB / 2.079 GB, free: 121.1 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.654e-05/3.306, allocations: 8 kB / 2.079 GB, free: 121.1 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.649e-06/3.306, allocations: 4.141 kB / 2.079 GB, free: 121.1 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.119e-06/3.306, allocations: 15.94 kB / 2.08 GB, free: 121.1 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008709/3.307, allocations: 0.7386 MB / 2.08 GB, free: 120.3 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003693/3.307, allocations: 223.8 kB / 2.08 GB, free: 120 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001517/3.307, allocations: 4 kB / 2.08 GB, free: 120 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005698/3.308, allocations: 51.94 kB / 2.08 GB, free: 120 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.944e-05/3.308, allocations: 27.97 kB / 2.081 GB, free: 120 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.689e-05/3.308, allocations: 19.98 kB / 2.081 GB, free: 119.9 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.0005885/3.309, allocations: 0.4991 MB / 2.081 GB, free: 119.5 MB / 1.151 GB Notification: Performance of sort global known variables: time 6.92e-07/3.309, allocations: 0 / 2.081 GB, free: 119.5 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.001297/3.31, allocations: 371 kB / 2.081 GB, free: 119.1 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.002101/3.312, allocations: 2.072 MB / 2.083 GB, free: 117 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.0005268/3.312, allocations: 327.2 kB / 2.084 GB, free: 116.6 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 4.108e-06/3.313, allocations: 0 / 2.084 GB, free: 116.6 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0002139/3.313, allocations: 165.1 kB / 2.084 GB, free: 116.5 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002214/3.315, allocations: 466.4 kB / 2.084 GB, free: 116 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002788/3.318, allocations: 1.396 MB / 2.086 GB, free: 114.6 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000488/3.318, allocations: 1.063 MB / 2.087 GB, free: 113.5 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.000719/3.319, allocations: 183 kB / 2.087 GB, free: 113.3 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004209/3.319, allocations: 359.3 kB / 2.087 GB, free: 113 MB / 1.151 GB Notification: Performance of SimCode: time 6.31e-07/3.319, allocations: 0 / 2.087 GB, free: 113 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05123/3.371, allocations: 25.14 MB / 2.112 GB, free: 88.03 MB / 1.151 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001842/3.371, allocations: 184.9 kB / 2.112 GB, free: 87.84 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.853/6.224, allocations: 5.562 kB / 2.112 GB, free: 87.83 MB / 1.151 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) 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