Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.SolarCollectors.Examples.FlatPlate.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.SolarCollectors.Examples.FlatPlate,fileNamePrefix="Buildings_9_Buildings_Fluid_SolarCollectors_Examples_FlatPlate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.SolarCollectors.Examples.FlatPlate,fileNamePrefix="Buildings_9_Buildings_Fluid_SolarCollectors_Examples_FlatPlate",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.401/2.401, allocations: 390.3 MB / 405.3 MB, free: 13.44 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.001509/0.001509, allocations: 176.2 kB / 498.1 MB, free: 5.703 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.562/1.562, allocations: 223.1 MB / 0.7948 GB, free: 17.86 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.001366/0.001366, allocations: 92.33 kB / 0.9346 GB, free: 6.148 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003606/0.0003604, allocations: 14.97 kB / 1.084 GB, free: 221.1 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.255/0.2554, allocations: 142.3 MB / 1.223 GB, free: 114.1 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.802/5.058, allocations: 2.12 GB / 3.343 GB, free: 308.7 MB / 1.167 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003222/5.058, allocations: 95.77 kB / 3.343 GB, free: 308.7 MB / 1.167 GB Notification: Performance of FrontEnd - DAE generated: time 5.586/10.64, allocations: 1.391 GB / 4.734 GB, free: 244.8 MB / 1.167 GB Notification: Performance of FrontEnd: time 2.625e-06/10.64, allocations: 0 / 4.734 GB, free: 244.8 MB / 1.167 GB Notification: Performance of Transformations before backend: time 0.000944/10.64, allocations: 130.4 kB / 4.735 GB, free: 244.7 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.02069/10.67, allocations: 5.699 MB / 4.74 GB, free: 242.2 MB / 1.167 GB Notification: Performance of prepare preOptimizeDAE: time 5.061e-05/10.67, allocations: 9.781 kB / 4.74 GB, free: 242.2 MB / 1.167 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002826/10.67, allocations: 0.5389 MB / 4.741 GB, free: 242.2 MB / 1.167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01321/10.68, allocations: 1.639 MB / 4.742 GB, free: 241.9 MB / 1.167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01893/10.7, allocations: 5.869 MB / 4.748 GB, free: 241 MB / 1.167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004095/10.7, allocations: 284.8 kB / 4.748 GB, free: 241 MB / 1.167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001974/10.7, allocations: 377.9 kB / 4.749 GB, free: 241 MB / 1.167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01788/10.72, allocations: 5.519 MB / 4.754 GB, free: 240.5 MB / 1.167 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002381/10.72, allocations: 5.781 kB / 4.754 GB, free: 240.5 MB / 1.167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001664/10.72, allocations: 162.9 kB / 4.754 GB, free: 240.5 MB / 1.167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001698/10.72, allocations: 162.1 kB / 4.754 GB, free: 240.5 MB / 1.167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01495/10.74, allocations: 5.4 MB / 4.76 GB, free: 240.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.0416/10.78, allocations: 19.23 MB / 4.778 GB, free: 224.7 MB / 1.167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00923/10.79, allocations: 3.805 MB / 4.782 GB, free: 220.9 MB / 1.167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00253/10.79, allocations: 2.83 MB / 4.785 GB, free: 217.5 MB / 1.167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005966/10.8, allocations: 2.138 MB / 4.787 GB, free: 215.3 MB / 1.167 GB Notification: Performance of pre-optimization done (n=285): time 1.223e-05/10.8, allocations: 3.844 kB / 4.787 GB, free: 215.3 MB / 1.167 GB Notification: Performance of matching and sorting (n=285): time 0.02062/10.82, allocations: 6.881 MB / 4.794 GB, free: 208.2 MB / 1.167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001181/10.82, allocations: 287.3 kB / 4.794 GB, free: 207.9 MB / 1.167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008103/10.83, allocations: 3.364 MB / 4.797 GB, free: 204.6 MB / 1.167 GB Notification: Performance of collectPreVariables (initialization): time 0.00106/10.83, allocations: 88.67 kB / 4.797 GB, free: 204.5 MB / 1.167 GB Notification: Performance of collectInitialEqns (initialization): time 0.002665/10.83, allocations: 1.969 MB / 4.799 GB, free: 202.5 MB / 1.167 GB Notification: Performance of collectInitialBindings (initialization): time 0.00194/10.83, allocations: 0.9689 MB / 4.8 GB, free: 201.5 MB / 1.167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007738/10.83, allocations: 60 kB / 4.8 GB, free: 201.5 MB / 1.167 GB Notification: Performance of setup shared object (initialization): time 0.0003609/10.83, allocations: 428.2 kB / 4.801 GB, free: 201 MB / 1.167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004428/10.84, allocations: 1.617 MB / 4.802 GB, free: 199.4 MB / 1.167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00492/10.84, allocations: 2.269 MB / 4.804 GB, free: 197 MB / 1.167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004787/10.85, allocations: 1.953 MB / 4.806 GB, free: 195 MB / 1.167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.458e-05/10.85, allocations: 7.812 kB / 4.806 GB, free: 195 MB / 1.167 GB Notification: Performance of matching and sorting (n=381) (initialization): time 0.01396/10.86, allocations: 4.508 MB / 4.811 GB, free: 190.5 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 0.001879/10.86, allocations: 6.587 MB / 4.817 GB, free: 183.4 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.93e-05/10.86, allocations: 23.92 kB / 4.817 GB, free: 183.4 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007575/10.86, allocations: 109.4 kB / 4.817 GB, free: 183.3 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004804/10.87, allocations: 0.8039 MB / 4.818 GB, free: 182.5 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002379/10.87, allocations: 2.17 MB / 4.82 GB, free: 180.2 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00662/10.88, allocations: 0.5209 MB / 4.821 GB, free: 179.7 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001203/10.88, allocations: 155.9 kB / 4.821 GB, free: 179.5 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 1.991e-05/10.88, allocations: 4 kB / 4.821 GB, free: 179.5 MB / 1.167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01299/10.89, allocations: 4.173 MB / 4.825 GB, free: 175.3 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.507e-05/10.89, allocations: 16 kB / 4.825 GB, free: 175.3 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006144/10.89, allocations: 108.8 kB / 4.825 GB, free: 175.2 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004617/10.9, allocations: 0.7918 MB / 4.826 GB, free: 174.4 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002005/10.9, allocations: 1.584 MB / 4.827 GB, free: 172.7 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006243/10.91, allocations: 492.9 kB / 4.828 GB, free: 172.2 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001159/10.91, allocations: 159.9 kB / 4.828 GB, free: 172.1 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.005227/10.91, allocations: 1.554 MB / 4.83 GB, free: 170.5 MB / 1.167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002404/10.92, allocations: 395.2 kB / 4.83 GB, free: 170.1 MB / 1.167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01658/10.93, allocations: 5.142 MB / 4.835 GB, free: 165 MB / 1.167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.478e-05/10.93, allocations: 28 kB / 4.835 GB, free: 164.9 MB / 1.167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.774e-05/10.93, allocations: 3.953 kB / 4.835 GB, free: 164.9 MB / 1.167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01098/10.94, allocations: 4.085 MB / 4.839 GB, free: 160.8 MB / 1.167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02731/10.97, allocations: 9.925 MB / 4.849 GB, free: 150.8 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.496e-05/10.97, allocations: 3.938 kB / 4.849 GB, free: 150.8 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003685/10.97, allocations: 0.6242 MB / 4.849 GB, free: 150.1 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002912/10.98, allocations: 0.6508 MB / 4.85 GB, free: 149.5 MB / 1.167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008082/10.98, allocations: 99.91 kB / 4.85 GB, free: 149.4 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004974/10.98, allocations: 7.518 MB / 4.857 GB, free: 141.5 MB / 1.167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.02e-06/10.98, allocations: 7.688 kB / 4.857 GB, free: 141.5 MB / 1.167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01955/11, allocations: 6.851 MB / 4.864 GB, free: 134.5 MB / 1.167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005764/11.01, allocations: 1.093 MB / 4.865 GB, free: 133.4 MB / 1.167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002882/11.01, allocations: 67.94 kB / 4.865 GB, free: 133.3 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006805/11.02, allocations: 319.5 kB / 4.865 GB, free: 133 MB / 1.167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001106/11.02, allocations: 186.1 kB / 4.866 GB, free: 132.8 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000952/11.02, allocations: 135.9 kB / 4.866 GB, free: 132.7 MB / 1.167 GB Notification: Performance of sorting global known variables: time 0.007331/11.03, allocations: 2.657 MB / 4.868 GB, free: 130.1 MB / 1.167 GB Notification: Performance of sort global known variables: time 7.32e-07/11.03, allocations: 0 / 4.868 GB, free: 130.1 MB / 1.167 GB Notification: Performance of remove unused functions: time 0.01659/11.04, allocations: 2.751 MB / 4.871 GB, free: 127.3 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.0259/11.07, allocations: 8.92 MB / 4.88 GB, free: 118.7 MB / 1.167 GB Notification: Performance of simCode: created initialization part: time 0.01738/11.09, allocations: 6.34 MB / 4.886 GB, free: 112.3 MB / 1.167 GB Notification: Performance of simCode: created event and clocks part: time 2.069e-05/11.09, allocations: 4.562 kB / 4.886 GB, free: 112.3 MB / 1.167 GB Notification: Performance of simCode: created simulation system equations: time 0.006129/11.09, allocations: 2.156 MB / 4.888 GB, free: 110.1 MB / 1.167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01243/11.11, allocations: 1.94 MB / 4.89 GB, free: 108.3 MB / 1.167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05139/11.16, allocations: 25.28 MB / 4.915 GB, free: 81.92 MB / 1.167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0073/11.17, allocations: 3.172 MB / 4.918 GB, free: 78.71 MB / 1.167 GB Notification: Performance of simCode: alias equations: time 0.01152/11.18, allocations: 2.367 MB / 4.92 GB, free: 76.45 MB / 1.167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005193/11.18, allocations: 1.978 MB / 4.922 GB, free: 74.48 MB / 1.167 GB Notification: Performance of SimCode: time 1.156e-05/11.18, allocations: 0 / 4.922 GB, free: 74.48 MB / 1.167 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9211/12.1, allocations: 131 MB / 5.05 GB, free: 236.2 MB / 1.182 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002368/12.1, allocations: 253.8 kB / 5.05 GB, free: 235.8 MB / 1.182 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.319/18.42, allocations: 1.781 kB / 5.05 GB, free: 235.8 MB / 1.182 GB (rm -f Buildings_9_Buildings.Fluid.SolarCollectors.Examples.FlatPlate.pipe ; mkfifo Buildings_9_Buildings.Fluid.SolarCollectors.Examples.FlatPlate.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.SolarCollectors.Examples.FlatPlate.pipe >> ../files/Buildings_9_Buildings.Fluid.SolarCollectors.Examples.FlatPlate.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.SolarCollectors.Examples.FlatPlate_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_SolarCollectors_Examples_FlatPlate_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_SolarCollectors_Examples_FlatPlate.fmu > Buildings_9_Buildings.Fluid.SolarCollectors.Examples.FlatPlate.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Fluid.SolarCollectors.Examples.FlatPlate_res.mat does not exist to compare? outputFormat=mat