Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.SolarCollectors.Examples.FlatPlate.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.SolarCollectors.Examples.FlatPlate,fileNamePrefix="Buildings_latest_Buildings_Fluid_SolarCollectors_Examples_FlatPlate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.SolarCollectors.Examples.FlatPlate,fileNamePrefix="Buildings_latest_Buildings_Fluid_SolarCollectors_Examples_FlatPlate",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.409/2.409, allocations: 393.5 MB / 408.4 MB, free: 11.05 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.001232/0.001232, allocations: 179.9 kB / 0.4901 GB, free: 2.234 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.668/1.668, 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.00106/0.00106, allocations: 107.6 kB / 0.9396 GB, free: 1.941 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004727/0.0004727, allocations: 11.73 kB / 1.09 GB, free: 216.5 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3488/0.3493, allocations: 143 MB / 1.229 GB, free: 105.7 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 6.429/6.779, allocations: 2.12 GB / 3.35 GB, free: 267.8 MB / 1.167 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004308/6.779, allocations: 99.02 kB / 3.35 GB, free: 267.8 MB / 1.167 GB Notification: Performance of FrontEnd - DAE generated: time 5.189/11.97, allocations: 1.391 GB / 4.741 GB, free: 227.2 MB / 1.167 GB Notification: Performance of FrontEnd: time 3.196e-06/11.97, allocations: 0 / 4.741 GB, free: 227.2 MB / 1.167 GB Notification: Performance of Transformations before backend: time 0.00123/11.97, allocations: 143 kB / 4.741 GB, free: 227 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: 993 * Number of variables: 993 Notification: Performance of Generate backend data structure: time 0.02189/11.99, allocations: 5.691 MB / 4.747 GB, free: 221.3 MB / 1.167 GB Notification: Performance of prepare preOptimizeDAE: time 5.217e-05/11.99, allocations: 12.83 kB / 4.747 GB, free: 221.3 MB / 1.167 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002517/11.99, allocations: 0.5423 MB / 4.747 GB, free: 220.8 MB / 1.167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01303/12.01, allocations: 1.621 MB / 4.749 GB, free: 219.1 MB / 1.167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01674/12.02, allocations: 5.876 MB / 4.755 GB, free: 213.3 MB / 1.167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002728/12.02, allocations: 279.6 kB / 4.755 GB, free: 213.1 MB / 1.167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001362/12.03, allocations: 383.9 kB / 4.755 GB, free: 212.7 MB / 1.167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01217/12.04, allocations: 5.521 MB / 4.761 GB, free: 207 MB / 1.167 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.657e-05/12.04, allocations: 7.641 kB / 4.761 GB, free: 207 MB / 1.167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006253/12.04, allocations: 160 kB / 4.761 GB, free: 206.9 MB / 1.167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000125/12.04, allocations: 163.4 kB / 4.761 GB, free: 206.7 MB / 1.167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0121/12.05, allocations: 5.396 MB / 4.766 GB, free: 201.3 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.03342/12.08, allocations: 19.24 MB / 4.785 GB, free: 181.8 MB / 1.167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007406/12.09, allocations: 3.799 MB / 4.789 GB, free: 178.1 MB / 1.167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002259/12.09, allocations: 2.829 MB / 4.791 GB, free: 174.6 MB / 1.167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004535/12.1, allocations: 2.143 MB / 4.793 GB, free: 172.4 MB / 1.167 GB Notification: Performance of pre-optimization done (n=285): time 5.04e-06/12.1, allocations: 2.531 kB / 4.793 GB, free: 172.4 MB / 1.167 GB Notification: Performance of matching and sorting (n=285): time 0.01597/12.11, allocations: 6.87 MB / 4.8 GB, free: 165.3 MB / 1.167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.659e-05/12.11, allocations: 299.2 kB / 4.8 GB, free: 165 MB / 1.167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005879/12.12, allocations: 3.36 MB / 4.804 GB, free: 161.6 MB / 1.167 GB Notification: Performance of collectPreVariables (initialization): time 0.0009907/12.12, allocations: 77.7 kB / 4.804 GB, free: 161.5 MB / 1.167 GB Notification: Performance of collectInitialEqns (initialization): time 0.001865/12.12, allocations: 1.977 MB / 4.806 GB, free: 159.5 MB / 1.167 GB Notification: Performance of collectInitialBindings (initialization): time 0.001602/12.13, allocations: 0.9644 MB / 4.807 GB, free: 158.6 MB / 1.167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002307/12.13, allocations: 60 kB / 4.807 GB, free: 158.5 MB / 1.167 GB Notification: Performance of setup shared object (initialization): time 0.0001782/12.13, allocations: 428.2 kB / 4.807 GB, free: 158.1 MB / 1.167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003444/12.13, allocations: 1.618 MB / 4.809 GB, free: 156.5 MB / 1.167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003806/12.13, allocations: 2.26 MB / 4.811 GB, free: 154 MB / 1.167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003838/12.14, allocations: 1.959 MB / 4.813 GB, free: 152 MB / 1.167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.495e-05/12.14, allocations: 4 kB / 4.813 GB, free: 152 MB / 1.167 GB Notification: Performance of matching and sorting (n=381) (initialization): time 0.01137/12.15, allocations: 4.515 MB / 4.817 GB, free: 147.4 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 0.001407/12.15, allocations: 6.58 MB / 4.824 GB, free: 140.3 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.381e-05/12.15, allocations: 16 kB / 4.824 GB, free: 140.3 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006781/12.15, allocations: 116.7 kB / 4.824 GB, free: 140.2 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004446/12.15, allocations: 0.7975 MB / 4.825 GB, free: 139.4 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002241/12.16, allocations: 2.193 MB / 4.827 GB, free: 137.1 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006031/12.16, allocations: 0.5121 MB / 4.827 GB, free: 136.5 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009156/12.16, allocations: 155.9 kB / 4.827 GB, free: 136.4 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 1.706e-05/12.16, allocations: 4 kB / 4.827 GB, free: 136.4 MB / 1.167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01107/12.18, allocations: 4.166 MB / 4.831 GB, free: 132.2 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.893e-05/12.18, allocations: 16 kB / 4.831 GB, free: 132.2 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005969/12.18, allocations: 113.6 kB / 4.832 GB, free: 132.1 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004268/12.18, allocations: 0.8011 MB / 4.832 GB, free: 131.2 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001814/12.18, allocations: 1.585 MB / 4.834 GB, free: 129.5 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005773/12.19, allocations: 492.9 kB / 4.834 GB, free: 129.1 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000855/12.19, allocations: 155.9 kB / 4.835 GB, free: 128.9 MB / 1.167 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 67 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,$PRE.weaDat.conTimMin.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTim.tNext) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (379): * Single equations (assignments): 377 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of prepare postOptimizeDAE: time 0.004263/12.19, allocations: 1.539 MB / 4.836 GB, free: 127.3 MB / 1.167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001846/12.19, allocations: 402.6 kB / 4.836 GB, free: 127 MB / 1.167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01434/12.21, allocations: 5.145 MB / 4.841 GB, free: 121.8 MB / 1.167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.789e-05/12.21, allocations: 28 kB / 4.841 GB, free: 121.7 MB / 1.167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.243e-05/12.21, allocations: 4 kB / 4.841 GB, free: 121.7 MB / 1.167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.009563/12.22, allocations: 4.094 MB / 4.845 GB, free: 117.5 MB / 1.167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02357/12.24, allocations: 9.933 MB / 4.855 GB, free: 107.6 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.227e-05/12.24, allocations: 0 / 4.855 GB, free: 107.6 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003522/12.25, allocations: 0.6202 MB / 4.856 GB, free: 106.9 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002921/12.25, allocations: 0.6663 MB / 4.856 GB, free: 106.3 MB / 1.167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004641/12.25, allocations: 91.92 kB / 4.857 GB, free: 106.2 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004038/12.25, allocations: 7.519 MB / 4.864 GB, free: 98.27 MB / 1.167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.246e-06/12.25, allocations: 3.938 kB / 4.864 GB, free: 98.27 MB / 1.167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01539/12.27, allocations: 6.845 MB / 4.871 GB, free: 91.32 MB / 1.167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003625/12.27, allocations: 1.096 MB / 4.872 GB, free: 90.2 MB / 1.167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001494/12.27, allocations: 59.89 kB / 4.872 GB, free: 90.14 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004981/12.28, allocations: 323.4 kB / 4.872 GB, free: 89.82 MB / 1.167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004919/12.28, allocations: 186.1 kB / 4.872 GB, free: 89.64 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005124/12.28, allocations: 139.9 kB / 4.872 GB, free: 89.5 MB / 1.167 GB Notification: Performance of sorting global known variables: time 0.005504/12.29, allocations: 2.665 MB / 4.875 GB, free: 86.86 MB / 1.167 GB Notification: Performance of sort global known variables: time 2.3e-07/12.29, allocations: 0 / 4.875 GB, free: 86.86 MB / 1.167 GB Notification: Performance of remove unused functions: time 0.01187/12.3, allocations: 2.747 MB / 4.878 GB, free: 84.11 MB / 1.167 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 11 (solCol.vol[1].dynBal.U,solCol.vol[2].dynBal.U,solCol.vol[3].dynBal.U,solCol.vol[4].dynBal.U,solCol.vol[5].dynBal.U,solCol.vol[6].dynBal.U,solCol.vol[7].dynBal.U,solCol.vol[8].dynBal.U,solCol.vol[9].dynBal.U,TOut.T,TIn.T) * Number of discrete variables: 4 ($whenCondition2,$whenCondition1,weaDat.conTimMin.tNext,weaDat.conTim.tNext) * Number of discrete states: 2 (weaDat.conTimMin.tNext,weaDat.conTim.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (274): * Single equations (assignments): 259 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 10 {1 3,1 3,1 3,1 3,1 3,1 3,1 3,1 3,1 3,1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.01936/12.32, allocations: 8.902 MB / 4.886 GB, free: 75.46 MB / 1.167 GB Notification: Performance of simCode: created initialization part: time 0.0148/12.33, allocations: 6.349 MB / 4.892 GB, free: 69.06 MB / 1.167 GB Notification: Performance of simCode: created event and clocks part: time 1.061e-05/12.33, allocations: 4.562 kB / 4.892 GB, free: 69.05 MB / 1.167 GB Notification: Performance of simCode: created simulation system equations: time 0.00527/12.34, allocations: 2.155 MB / 4.895 GB, free: 66.89 MB / 1.167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01049/12.35, allocations: 1.946 MB / 4.896 GB, free: 65.01 MB / 1.167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03102/12.38, allocations: 25.27 MB / 4.921 GB, free: 38.67 MB / 1.167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003844/12.38, allocations: 3.184 MB / 4.924 GB, free: 35.45 MB / 1.167 GB Notification: Performance of simCode: alias equations: time 0.009947/12.39, allocations: 2.364 MB / 4.927 GB, free: 33.16 MB / 1.167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004693/12.4, allocations: 1.975 MB / 4.929 GB, free: 31.19 MB / 1.167 GB Notification: Performance of SimCode: time 2.364e-06/12.4, allocations: 0 / 4.929 GB, free: 31.19 MB / 1.167 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8479/13.25, allocations: 131.1 MB / 5.057 GB, free: 240.4 MB / 1.182 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002173/13.25, allocations: 257.7 kB / 5.057 GB, free: 240.1 MB / 1.182 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.044/19.29, allocations: 3.594 kB / 5.057 GB, free: 240.1 MB / 1.182 GB (rm -f Buildings_latest_Buildings.Fluid.SolarCollectors.Examples.FlatPlate.pipe ; mkfifo Buildings_latest_Buildings.Fluid.SolarCollectors.Examples.FlatPlate.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.SolarCollectors.Examples.FlatPlate.pipe >> ../files/Buildings_latest_Buildings.Fluid.SolarCollectors.Examples.FlatPlate.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.SolarCollectors.Examples.FlatPlate_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_SolarCollectors_Examples_FlatPlate_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_SolarCollectors_Examples_FlatPlate.fmu > Buildings_latest_Buildings.Fluid.SolarCollectors.Examples.FlatPlate.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Fluid.SolarCollectors.Examples.FlatPlate_res.mat does not exist to compare? outputFormat=mat