Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.HeatExchangers.Examples.PlateHeatExchangerEffectivenessNTUPControl.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.HeatExchangers.Examples.PlateHeatExchangerEffectivenessNTUPControl,fileNamePrefix="Buildings_9_Buildings_Fluid_HeatExchangers_Examples_PlateHeatExchangerEffectivenessNTUPControl",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.PlateHeatExchangerEffectivenessNTUPControl,fileNamePrefix="Buildings_9_Buildings_Fluid_HeatExchangers_Examples_PlateHeatExchangerEffectivenessNTUPControl",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.222/2.222, allocations: 387.1 MB / 399.7 MB, free: 9.527 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.001054/0.001054, allocations: 172.2 kB / 492.3 MB, free: 0.6484 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.545/1.545, allocations: 221.3 MB / 0.7872 GB, free: 12.89 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.001065/0.001065, allocations: 91.94 kB / 0.9267 GB, free: 13.96 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.752e-05/3.771e-05, allocations: 7.984 kB / 1.073 GB, free: 180.3 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3004/0.3005, allocations: 142.4 MB / 1.212 GB, free: 38.4 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.257/1.557, allocations: 423.4 MB / 1.626 GB, free: 6.746 MB / 1.042 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002167/1.557, allocations: 90.08 kB / 1.626 GB, free: 6.703 MB / 1.042 GB Notification: Performance of FrontEnd - DAE generated: time 2.78/4.337, allocations: 0.6279 GB / 2.254 GB, free: 246.3 MB / 1.151 GB Notification: Performance of FrontEnd: time 2.144e-06/4.337, allocations: 0 / 2.254 GB, free: 246.3 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.0003038/4.337, allocations: 41.67 kB / 2.254 GB, free: 246.3 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: 214 * Number of variables: 214 Notification: Performance of Generate backend data structure: time 0.005833/4.343, allocations: 1.824 MB / 2.256 GB, free: 245.6 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 5.159e-05/4.343, allocations: 14.22 kB / 2.256 GB, free: 245.6 MB / 1.151 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004684/4.344, allocations: 137.6 kB / 2.256 GB, free: 245.6 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002076/4.346, allocations: 392.7 kB / 2.256 GB, free: 245.5 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03026/4.376, allocations: 13.68 MB / 2.27 GB, free: 244.8 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007094/4.377, allocations: 206.5 kB / 2.27 GB, free: 244.8 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004668/4.377, allocations: 98.41 kB / 2.27 GB, free: 244.8 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002474/4.38, allocations: 1.002 MB / 2.271 GB, free: 244.6 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.62e-05/4.38, allocations: 0 / 2.271 GB, free: 244.6 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001379/4.38, allocations: 34.19 kB / 2.271 GB, free: 244.6 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.737e-05/4.38, allocations: 42.92 kB / 2.271 GB, free: 244.6 MB / 1.151 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001489/4.382, allocations: 0.8012 MB / 2.272 GB, free: 244.6 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.008851/4.39, allocations: 4.826 MB / 2.277 GB, free: 242.6 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001064/4.392, allocations: 0.6393 MB / 2.277 GB, free: 242.6 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004893/4.392, allocations: 345.6 kB / 2.277 GB, free: 242.6 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009259/4.393, allocations: 1.062 MB / 2.279 GB, free: 241.4 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006911/4.394, allocations: 434.8 kB / 2.279 GB, free: 241.4 MB / 1.151 GB Notification: Performance of pre-optimization done (n=74): time 3.367e-06/4.394, allocations: 3.938 kB / 2.279 GB, free: 241.4 MB / 1.151 GB Notification: Performance of matching and sorting (n=74): time 0.001728/4.395, allocations: 0.775 MB / 2.28 GB, free: 241.2 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.406e-05/4.396, allocations: 111.2 kB / 2.28 GB, free: 241.1 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001725/4.397, allocations: 1.023 MB / 2.281 GB, free: 241 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 0.0001836/4.397, allocations: 48.83 kB / 2.281 GB, free: 240.9 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005502/4.398, allocations: 0.5936 MB / 2.281 GB, free: 240.7 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002108/4.398, allocations: 255.3 kB / 2.282 GB, free: 240.6 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.76e-05/4.398, allocations: 21.28 kB / 2.282 GB, free: 240.6 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 8.167e-05/4.398, allocations: 342.2 kB / 2.282 GB, free: 240.3 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005118/4.399, allocations: 315.8 kB / 2.282 GB, free: 240.3 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007656/4.4, allocations: 0.5786 MB / 2.283 GB, free: 240 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006014/4.4, allocations: 396.9 kB / 2.283 GB, free: 240 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.631e-06/4.4, allocations: 3.875 kB / 2.283 GB, free: 240 MB / 1.151 GB Notification: Performance of matching and sorting (n=121) (initialization): time 0.001869/4.402, allocations: 1.061 MB / 2.284 GB, free: 239.8 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003374/4.403, allocations: 1.62 MB / 2.286 GB, free: 238.1 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.148e-05/4.403, allocations: 7.094 kB / 2.286 GB, free: 238.1 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.58e-05/4.403, allocations: 9.75 kB / 2.286 GB, free: 238.1 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001494/4.404, allocations: 310.6 kB / 2.286 GB, free: 238.1 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005303/4.405, allocations: 1.204 MB / 2.287 GB, free: 237 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001597/4.406, allocations: 204.3 kB / 2.288 GB, free: 236.9 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000113/4.406, allocations: 53.09 kB / 2.288 GB, free: 236.9 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.398e-05/4.406, allocations: 3.844 kB / 2.288 GB, free: 236.9 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001445/4.408, allocations: 0.92 MB / 2.289 GB, free: 236.9 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.134e-06/4.408, allocations: 7.734 kB / 2.289 GB, free: 236.9 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.127e-05/4.408, allocations: 10.41 kB / 2.289 GB, free: 236.9 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001136/4.409, allocations: 292.4 kB / 2.289 GB, free: 236.9 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.298e-05/4.409, allocations: 13.52 kB / 2.289 GB, free: 236.9 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001519/4.411, allocations: 204.7 kB / 2.289 GB, free: 236.8 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001076/4.411, allocations: 54.95 kB / 2.289 GB, free: 236.8 MB / 1.151 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition1,$PRE.TSet.T_start,TSet.T_start,$PRE.TSet.count,TSet.count,hex.flowRegime,hex.flowRegime_nominal,P.I.trigger_internal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (120): * Single equations (assignments): 117 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002991/4.411, allocations: 166.2 kB / 2.289 GB, free: 236.7 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002859/4.411, allocations: 147.2 kB / 2.289 GB, free: 236.6 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001948/4.413, allocations: 1.064 MB / 2.29 GB, free: 236.5 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.467e-05/4.413, allocations: 18.03 kB / 2.29 GB, free: 236.5 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.284e-06/4.413, allocations: 0 / 2.29 GB, free: 236.5 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.026e-05/4.413, allocations: 5.25 kB / 2.29 GB, free: 236.5 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003229/4.417, allocations: 2.335 MB / 2.293 GB, free: 236.1 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.394e-06/4.417, allocations: 3.938 kB / 2.293 GB, free: 236.1 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009973/4.418, allocations: 235.5 kB / 2.293 GB, free: 236.1 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.077e-05/4.418, allocations: 6.812 kB / 2.293 GB, free: 236.1 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.603e-05/4.418, allocations: 25.61 kB / 2.293 GB, free: 236.1 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003891/4.418, allocations: 1.197 MB / 2.294 GB, free: 234.9 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.528e-06/4.418, allocations: 5.844 kB / 2.294 GB, free: 234.9 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002128/4.42, allocations: 1.653 MB / 2.296 GB, free: 234.5 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006703/4.421, allocations: 361.7 kB / 2.296 GB, free: 234.3 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001694/4.421, allocations: 18.34 kB / 2.296 GB, free: 234.3 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001116/4.422, allocations: 133 kB / 2.296 GB, free: 234.3 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001434/4.422, allocations: 79.33 kB / 2.296 GB, free: 234.3 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.253e-05/4.422, allocations: 43.3 kB / 2.296 GB, free: 234.3 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.001056/4.424, allocations: 0.7773 MB / 2.297 GB, free: 234.2 MB / 1.151 GB Notification: Performance of sort global known variables: time 2e-07/4.424, allocations: 0 / 2.297 GB, free: 234.2 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.00257/4.426, allocations: 0.848 MB / 2.298 GB, free: 234 MB / 1.151 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 4 (temSen.T,val.filter.s[1],val.filter.s[2],P.I.y) * Number of discrete variables: 4 ($whenCondition1,TSet.T_start,TSet.count,hex.flowRegime) * Number of discrete states: 1 (TSet.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (91): * Single equations (assignments): 81 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00428/4.43, allocations: 3.471 MB / 2.301 GB, free: 232.4 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.002769/4.433, allocations: 1.531 MB / 2.303 GB, free: 232.3 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 6.482e-06/4.433, allocations: 0 / 2.303 GB, free: 232.3 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0007448/4.434, allocations: 493.8 kB / 2.303 GB, free: 232.3 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003219/4.437, allocations: 0.583 MB / 2.304 GB, free: 232.3 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006039/4.443, allocations: 2.203 MB / 2.306 GB, free: 231.6 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007926/4.444, allocations: 1.199 MB / 2.307 GB, free: 230.9 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.002417/4.447, allocations: 421 kB / 2.308 GB, free: 230.9 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007464/4.447, allocations: 0.5213 MB / 2.308 GB, free: 230.9 MB / 1.151 GB Notification: Performance of SimCode: time 1.633e-06/4.447, allocations: 7.031 kB / 2.308 GB, free: 230.9 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08841/4.536, allocations: 46.49 MB / 2.354 GB, free: 229.6 MB / 1.151 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001968/4.536, allocations: 249 kB / 2.354 GB, free: 229.3 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.893/8.429, allocations: 4.172 kB / 2.354 GB, free: 229.3 MB / 1.151 GB (rm -f Buildings_9_Buildings.Fluid.HeatExchangers.Examples.PlateHeatExchangerEffectivenessNTUPControl.pipe ; mkfifo Buildings_9_Buildings.Fluid.HeatExchangers.Examples.PlateHeatExchangerEffectivenessNTUPControl.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.HeatExchangers.Examples.PlateHeatExchangerEffectivenessNTUPControl.pipe >> ../files/Buildings_9_Buildings.Fluid.HeatExchangers.Examples.PlateHeatExchangerEffectivenessNTUPControl.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.HeatExchangers.Examples.PlateHeatExchangerEffectivenessNTUPControl_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_HeatExchangers_Examples_PlateHeatExchangerEffectivenessNTUPControl_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_HeatExchangers_Examples_PlateHeatExchangerEffectivenessNTUPControl.fmu > Buildings_9_Buildings.Fluid.HeatExchangers.Examples.PlateHeatExchangerEffectivenessNTUPControl.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Fluid.HeatExchangers.Examples.PlateHeatExchangerEffectivenessNTUPControl_res.mat does not exist to compare? outputFormat=mat