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.178/2.178, allocations: 387.1 MB / 399.7 MB, free: 9.512 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.001148/0.001148, allocations: 165 kB / 492.3 MB, free: 0.6328 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.466/1.466, allocations: 221.3 MB / 0.7871 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.001052/0.001052, allocations: 97.73 kB / 0.9267 GB, free: 13.96 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.416e-05/3.418e-05, allocations: 7.984 kB / 1.073 GB, free: 180.3 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2812/0.2812, allocations: 142.3 MB / 1.212 GB, free: 38.44 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 5.604/5.886, allocations: 2.12 GB / 3.333 GB, free: 153.2 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003159/5.886, allocations: 94.25 kB / 3.333 GB, free: 153.2 MB / 1.151 GB Notification: Performance of FrontEnd - DAE generated: time 5.062/10.95, allocations: 1.388 GB / 4.721 GB, free: 92.66 MB / 1.151 GB Notification: Performance of FrontEnd: time 1.372e-06/10.95, allocations: 4 kB / 4.721 GB, free: 92.66 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.0007589/10.95, allocations: 139.8 kB / 4.721 GB, free: 92.52 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: 993 * Number of variables: 993 Notification: Performance of Generate backend data structure: time 0.01482/10.96, allocations: 4.843 MB / 4.725 GB, free: 87.62 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.502e-05/10.96, allocations: 11.97 kB / 4.725 GB, free: 87.61 MB / 1.151 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001577/10.96, allocations: 0.5268 MB / 4.726 GB, free: 87.07 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01169/10.98, allocations: 1.633 MB / 4.728 GB, free: 85.43 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01438/10.99, allocations: 5.828 MB / 4.733 GB, free: 79.54 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002717/10.99, allocations: 291.6 kB / 4.734 GB, free: 79.25 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001425/10.99, allocations: 372 kB / 4.734 GB, free: 78.89 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009216/11, allocations: 5.197 MB / 4.739 GB, free: 73.53 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.68e-05/11, allocations: 3.938 kB / 4.739 GB, free: 73.52 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005982/11, allocations: 164 kB / 4.739 GB, free: 73.36 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001104/11, allocations: 159.4 kB / 4.739 GB, free: 73.21 MB / 1.151 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00991/11.01, allocations: 4.796 MB / 4.744 GB, free: 68.41 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.03418/11.05, allocations: 19.23 MB / 4.763 GB, free: 48.73 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005095/11.05, allocations: 3.43 MB / 4.766 GB, free: 45.3 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002261/11.05, allocations: 1.71 MB / 4.768 GB, free: 43.59 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002057/11.06, allocations: 2.831 MB / 4.771 GB, free: 40.15 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003222/11.06, allocations: 1.929 MB / 4.772 GB, free: 38.17 MB / 1.151 GB Notification: Performance of pre-optimization done (n=285): time 5.23e-06/11.06, allocations: 0 / 4.772 GB, free: 38.17 MB / 1.151 GB Notification: Performance of matching and sorting (n=285): time 0.008526/11.07, allocations: 3.79 MB / 4.776 GB, free: 34.3 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001073/11.07, allocations: 291.3 kB / 4.776 GB, free: 33.95 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006253/11.07, allocations: 3.329 MB / 4.78 GB, free: 30.64 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 0.001035/11.08, allocations: 81.64 kB / 4.78 GB, free: 30.56 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.002038/11.08, allocations: 1.973 MB / 4.782 GB, free: 28.57 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.001762/11.08, allocations: 0.9704 MB / 4.783 GB, free: 27.58 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002474/11.08, allocations: 60 kB / 4.783 GB, free: 27.52 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 0.0002247/11.08, allocations: 432.1 kB / 4.783 GB, free: 27.09 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002505/11.08, allocations: 1.4 MB / 4.784 GB, free: 25.69 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003062/11.09, allocations: 2.047 MB / 4.786 GB, free: 23.4 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003103/11.09, allocations: 1.749 MB / 4.788 GB, free: 21.63 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.271e-05/11.09, allocations: 4 kB / 4.788 GB, free: 21.63 MB / 1.151 GB Notification: Performance of matching and sorting (n=381) (initialization): time 0.007751/11.1, allocations: 4.074 MB / 4.792 GB, free: 17.51 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.001074/11.1, allocations: 6.588 MB / 4.799 GB, free: 10.4 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.196e-05/11.1, allocations: 16 kB / 4.799 GB, free: 10.39 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006139/11.1, allocations: 112.8 kB / 4.799 GB, free: 10.27 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004138/11.1, allocations: 0.8034 MB / 4.799 GB, free: 9.469 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001858/11.1, allocations: 2.152 MB / 4.802 GB, free: 7.152 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005871/11.11, allocations: 0.5121 MB / 4.802 GB, free: 6.637 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008304/11.11, allocations: 159.9 kB / 4.802 GB, free: 6.48 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.215e-05/11.11, allocations: 5.094 kB / 4.802 GB, free: 6.477 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006492/11.12, allocations: 3.734 MB / 4.806 GB, free: 2.707 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.523e-05/11.12, allocations: 16 kB / 4.806 GB, free: 2.691 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000511/11.12, allocations: 112.9 kB / 4.806 GB, free: 2.578 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003558/11.12, allocations: 0.7917 MB / 4.807 GB, free: 1.785 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001603/11.12, allocations: 1.577 MB / 4.808 GB, free: 76 kB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.6942/11.82, allocations: 491 kB / 4.809 GB, free: 218.1 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009475/11.82, allocations: 157.4 kB / 4.809 GB, free: 218.1 MB / 1.151 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 () * 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.0009144/11.82, allocations: 281.7 kB / 4.809 GB, free: 218 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001146/11.82, allocations: 396.1 kB / 4.81 GB, free: 218 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01054/11.83, allocations: 4.705 MB / 4.814 GB, free: 217.7 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.294e-05/11.83, allocations: 33.84 kB / 4.814 GB, free: 217.7 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.296e-05/11.83, allocations: 3.375 kB / 4.814 GB, free: 217.7 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006929/11.84, allocations: 3.658 MB / 4.818 GB, free: 217.3 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01877/11.86, allocations: 9.504 MB / 4.827 GB, free: 216.7 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.124e-05/11.86, allocations: 4.531 kB / 4.827 GB, free: 216.7 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003368/11.86, allocations: 0.6199 MB / 4.828 GB, free: 216.7 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003026/11.86, allocations: 0.6405 MB / 4.828 GB, free: 216.6 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005201/11.86, allocations: 97.2 kB / 4.828 GB, free: 216.6 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004973/11.87, allocations: 7.49 MB / 4.836 GB, free: 210.1 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.485e-06/11.87, allocations: 1.219 kB / 4.836 GB, free: 210.1 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0155/11.88, allocations: 6.21 MB / 4.842 GB, free: 209.5 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003583/11.89, allocations: 1.1 MB / 4.843 GB, free: 209.2 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001158/11.89, allocations: 63.39 kB / 4.843 GB, free: 209.2 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004261/11.89, allocations: 323.2 kB / 4.843 GB, free: 209.2 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004717/11.89, allocations: 189.6 kB / 4.843 GB, free: 209.2 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003766/11.89, allocations: 137.3 kB / 4.844 GB, free: 209.2 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.005274/11.9, allocations: 2.621 MB / 4.846 GB, free: 209 MB / 1.151 GB Notification: Performance of sort global known variables: time 2.9e-07/11.9, allocations: 0.7188 kB / 4.846 GB, free: 209 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.01052/11.91, allocations: 2.742 MB / 4.849 GB, free: 208.9 MB / 1.151 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) * 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.01416/11.92, allocations: 8.238 MB / 4.857 GB, free: 207.5 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.009183/11.93, allocations: 5.83 MB / 4.862 GB, free: 207.2 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 1.067e-05/11.93, allocations: 2.75 kB / 4.862 GB, free: 207.2 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.003433/11.94, allocations: 1.938 MB / 4.864 GB, free: 207.1 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009622/11.95, allocations: 1.941 MB / 4.866 GB, free: 207 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02038/11.97, allocations: 9.483 MB / 4.876 GB, free: 205.4 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002298/11.97, allocations: 3.189 MB / 4.879 GB, free: 204.6 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.0113/11.98, allocations: 3.56 MB / 4.882 GB, free: 204.6 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00319/11.98, allocations: 1.905 MB / 4.884 GB, free: 204.6 MB / 1.151 GB Notification: Performance of SimCode: time 7.62e-07/11.98, allocations: 0 / 4.884 GB, free: 204.6 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1958/12.18, allocations: 139.6 MB / 5.02 GB, free: 182.3 MB / 1.151 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001483/12.18, allocations: 230.3 kB / 5.021 GB, free: 182.1 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.217/18.4, allocations: 0 / 5.021 GB, free: 182.1 MB / 1.151 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